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

ncpfs: add prototypes to ncp_fs.h

Removes some externs from C files, noticed from the sparse warnings:
fs/ncpfs/dir.c:90:26: warning: symbol 'ncp_root_dentry_operations' was not declared. Should it be static?
fs/ncpfs/symlink.c:107:5: warning: symbol 'ncp_symlink' was not declared. Should it be static?
fs/ncpfs/symlink.c:101:39: warning: symbol 'ncp_symlink_aops' was not declared. Should it be static?

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Petr Vandrovec <VANDROVE@vc.cvut.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Harvey Harrison and committed by
Linus Torvalds
cdf88037 5dc62b1b

+7 -6
-6
fs/ncpfs/inode.c
··· 107 107 .show_options = ncp_show_options, 108 108 }; 109 109 110 - extern struct dentry_operations ncp_root_dentry_operations; 111 - #if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS) 112 - extern const struct address_space_operations ncp_symlink_aops; 113 - extern int ncp_symlink(struct inode*, struct dentry*, const char*); 114 - #endif 115 - 116 110 /* 117 111 * Fill in the ncpfs-specific information in the inode. 118 112 */
+7
include/linux/ncp_fs.h
··· 204 204 /* linux/fs/ncpfs/dir.c */ 205 205 extern const struct inode_operations ncp_dir_inode_operations; 206 206 extern const struct file_operations ncp_dir_operations; 207 + extern struct dentry_operations ncp_root_dentry_operations; 207 208 int ncp_conn_logged_in(struct super_block *); 208 209 int ncp_date_dos2unix(__le16 time, __le16 date); 209 210 void ncp_date_unix2dos(int unix_date, __le16 * time, __le16 * date); ··· 223 222 int ncp_disconnect(struct ncp_server *server); 224 223 void ncp_lock_server(struct ncp_server *server); 225 224 void ncp_unlock_server(struct ncp_server *server); 225 + 226 + /* linux/fs/ncpfs/symlink.c */ 227 + #if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS) 228 + extern const struct address_space_operations ncp_symlink_aops; 229 + int ncp_symlink(struct inode*, struct dentry*, const char*); 230 + #endif 226 231 227 232 /* linux/fs/ncpfs/file.c */ 228 233 extern const struct inode_operations ncp_file_inode_operations;