mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
60f57ec2da
commit
96a660d706
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user