Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: smbfs building fix

Building error for smbfs:

drivers/staging/smbfs/dir.c:286: error: static declaration of 'smbfs_dentry_operations' follows non-static declaration
drivers/staging/smbfs/proto.h:42: error: previous declaration of 'smbfs_dentry_operations' was here
drivers/staging/smbfs/dir.c:294: error: static declaration of 'smbfs_dentry_operations_case' follows non-static declaration
drivers/staging/smbfs/proto.h:41: error: previous declaration of 'smbfs_dentry_operations_case' was here
make[3]: *** [drivers/staging/smbfs/dir.o] Error 1
make[2]: *** [drivers/staging/smbfs] Error 2
make[1]: *** [drivers/staging] Error 2
make[1]: *** Waiting for unfinished jobs....

Fix it by removing static keywords

Signed-off-by: Yang Ruirui <ruirui.r.yang@tieto.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by

Yang Ruirui and committed by
Al Viro
eb745dbc b1e75df4

+2 -2
+2 -2
drivers/staging/smbfs/dir.c
··· 283 283 unsigned int, const char *, const struct qstr *); 284 284 static int smb_delete_dentry(const struct dentry *); 285 285 286 - static const struct dentry_operations smbfs_dentry_operations = 286 + const struct dentry_operations smbfs_dentry_operations = 287 287 { 288 288 .d_revalidate = smb_lookup_validate, 289 289 .d_hash = smb_hash_dentry, ··· 291 291 .d_delete = smb_delete_dentry, 292 292 }; 293 293 294 - static const struct dentry_operations smbfs_dentry_operations_case = 294 + const struct dentry_operations smbfs_dentry_operations_case = 295 295 { 296 296 .d_revalidate = smb_lookup_validate, 297 297 .d_delete = smb_delete_dentry,