staging: lustre: obdclass: obd_mount: Declare function as static
PATCH 1/1 staging: lustre: obdclass: obd_mount: Declare function as static
Declare lustre_mount() function static since it is defined and called in this file only.
This fixes the following sparse warning:drivers/staging/lustre/lustre/obdclass/obd_mount.c:1169:15: warning:
symbol 'lustre_mount' was not declared. Should it be static?
Signed-off-by Amitoj Kaur Chawla <[email protected]>
--- drivers/staging/lustre/lustre/obdclass/obd_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/obdclass/obd_mount.c +1 -1
@@ -1166,7 +1166,7 @@ void lustre_register_kill_super_cb(void (*cfs)(struct super_block *sb))EXPORT_SYMBOL (lustre_register_kill_super_cb);/***************** FS registration ******************/ -struct dentry *lustre_mount (struct file_system_type *fs_type,int flags, +static struct dentry *lustre_mount (struct file_system_type *fs_type,int flags,const char *devname,void *data) {struct lustre_mount_data2 lmd2 = {
Signature · 1 line
1.9.1
Quoted 9 lines · On Tuesday 16 February 2016 17:19:35 Amitoj Kaur Chawla wrote:
Declare
lustre_mount()function static since it is defined and called in this file only.This fixes the following sparse warning:
drivers/staging/lustre/lustre/obdclass/obd_mount.c:1169:15: warning:
symbol 'lustre_mount' was not declared. Should it be static?Signed-off-by Amitoj Kaur Chawla <[email protected]>
Reviewed-by Arnd Bergmann <[email protected]>