From: Geliang Tang Date: Mon, 21 Sep 2015 14:18:14 +0000 (+0800) Subject: IB/hfi1: class_name_user() should be static X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=96a660d70699fc5decb381b15fd0a62a27001fe4;p=openwrt%2Fstaging%2Fblogic.git IB/hfi1: class_name_user() should be static Fixes the following sparse warning: drivers/staging/rdma/hfi1/device.c:127:12: warning: symbol 'class_name_user' was not declared. Should it be static? Signed-off-by: Geliang Tang Acked-by: Mike Marciniszyn Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rdma/hfi1/device.c b/drivers/staging/rdma/hfi1/device.c index bc26a5392712..58472e5ac4e5 100644 --- a/drivers/staging/rdma/hfi1/device.c +++ b/drivers/staging/rdma/hfi1/device.c @@ -124,7 +124,7 @@ static char *hfi1_devnode(struct device *dev, umode_t *mode) } static const char *hfi1_class_name_user = "hfi1_user"; -const char *class_name_user(void) +static const char *class_name_user(void) { return hfi1_class_name_user; }