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:
Geliang Tang 2015-09-21 22:18:14 +08:00 committed by Greg Kroah-Hartman
parent 60f57ec2da
commit 96a660d706

View 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;
}