diff options
author | Geliang Tang <geliangtang@163.com> | 2015-09-21 14:18:14 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 01:42:27 (GMT) |
commit | 96a660d70699fc5decb381b15fd0a62a27001fe4 (patch) | |
tree | 6da8e4cf0da7c90625de69be26d1200fb4723f3e /drivers/staging/rdma/hfi1 | |
parent | 60f57ec2da398a7c1f56dc2ac690ef75b17d2399 (diff) | |
download | linux-96a660d70699fc5decb381b15fd0a62a27001fe4.tar.xz |
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 <geliangtang@163.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rdma/hfi1')
-rw-r--r-- | drivers/staging/rdma/hfi1/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rdma/hfi1/device.c b/drivers/staging/rdma/hfi1/device.c index bc26a53..58472e5 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; } |