[PATCH] lustre: obdclass: fix sparse warning

Greg KH gregkh at linuxfoundation.org
Sun Oct 25 01:57:30 UTC 2015


On Sat, Oct 24, 2015 at 12:58:20PM +0530, Paul Davies C wrote:
> This patch fixes the following warnings given by the sparse:
> 
> drivers/staging/lustre/lustre/obdclass/linux/linux-module.c:424:5: warning: symbol 'class_procfs_init' was not declared. Should it be static?
> drivers/staging/lustre/lustre/obdclass/linux/linux-module.c:460:5: warning: symbol 'class_procfs_clean' was not declared. Should it be static?
> drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c:161:5: warning: symbol 'obd_sysctl_init' was not declared. Should it be static?
> drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c:166:6: warning: symbol 'obd_sysctl_clean' was not declared. Should it be static?
> 
> Signed-off-by: Paul Davies C <pauldaviesc at gmail.com>
> ---
>  drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 4 ++--
>  drivers/staging/lustre/lustre/obdclass/linux/linux-sysctl.c | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)

This doesn't apply to my staging-testing branch of staging.git.

Please rebase and resend, if it is still needed.

thanks,

greg k-h


More information about the devel mailing list