IB/hfi1: class_name_user() should be static
authorGeliang Tang <geliangtang@163.com>
Mon, 21 Sep 2015 14:18:14 +0000 (22:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:42:27 +0000 (03:42 +0200)
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 <geliangtang@163.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/device.c

index bc26a5392712d848ecd6df16676788790a8eb50b..58472e5ac4e575dbf6b6a7880a9923358839e573 100644 (file)
@@ -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;
 }