LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/3] ncpfs: add prototypes to ncp_fs.h
@ 2008-02-15 20:02 Harvey Harrison
2008-02-16 13:11 ` Adrian Bunk
0 siblings, 1 reply; 2+ messages in thread
From: Harvey Harrison @ 2008-02-15 20:02 UTC (permalink / raw)
To: Petr Vandrovec, Andrew Morton; +Cc: LKML
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>
---
fs/ncpfs/inode.c | 6 ------
include/linux/ncp_fs.h | 7 +++++++
2 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c
index fbbb9f7..2e5ab12 100644
--- a/fs/ncpfs/inode.c
+++ b/fs/ncpfs/inode.c
@@ -107,12 +107,6 @@ static const struct super_operations ncp_sops =
.show_options = ncp_show_options,
};
-extern struct dentry_operations ncp_root_dentry_operations;
-#if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS)
-extern const struct address_space_operations ncp_symlink_aops;
-extern int ncp_symlink(struct inode*, struct dentry*, const char*);
-#endif
-
/*
* Fill in the ncpfs-specific information in the inode.
*/
diff --git a/include/linux/ncp_fs.h b/include/linux/ncp_fs.h
index 88766e4..9f2d763 100644
--- a/include/linux/ncp_fs.h
+++ b/include/linux/ncp_fs.h
@@ -204,6 +204,7 @@ void ncp_update_inode2(struct inode *, struct ncp_entry_info *);
/* linux/fs/ncpfs/dir.c */
extern const struct inode_operations ncp_dir_inode_operations;
extern const struct file_operations ncp_dir_operations;
+extern struct dentry_operations ncp_root_dentry_operations;
int ncp_conn_logged_in(struct super_block *);
int ncp_date_dos2unix(__le16 time, __le16 date);
void ncp_date_unix2dos(int unix_date, __le16 * time, __le16 * date);
@@ -223,6 +224,12 @@ int ncp_disconnect(struct ncp_server *server);
void ncp_lock_server(struct ncp_server *server);
void ncp_unlock_server(struct ncp_server *server);
+/* linux/fs/ncpfs/symlink.c */
+#if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS)
+extern const struct address_space_operations ncp_symlink_aops;
+int ncp_symlink(struct inode*, struct dentry*, const char*);
+#endif
+
/* linux/fs/ncpfs/file.c */
extern const struct inode_operations ncp_file_inode_operations;
extern const struct file_operations ncp_file_operations;
--
1.5.4.1.1278.gc75be
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/3] ncpfs: add prototypes to ncp_fs.h
2008-02-15 20:02 [PATCH 1/3] ncpfs: add prototypes to ncp_fs.h Harvey Harrison
@ 2008-02-16 13:11 ` Adrian Bunk
0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2008-02-16 13:11 UTC (permalink / raw)
To: Harvey Harrison; +Cc: Petr Vandrovec, Andrew Morton, LKML
On Fri, Feb 15, 2008 at 12:02:25PM -0800, Harvey Harrison wrote:
> 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>
> ---
> fs/ncpfs/inode.c | 6 ------
> include/linux/ncp_fs.h | 7 +++++++
> 2 files changed, 7 insertions(+), 6 deletions(-)
>
> diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c
> index fbbb9f7..2e5ab12 100644
> --- a/fs/ncpfs/inode.c
> +++ b/fs/ncpfs/inode.c
> @@ -107,12 +107,6 @@ static const struct super_operations ncp_sops =
> .show_options = ncp_show_options,
> };
>
> -extern struct dentry_operations ncp_root_dentry_operations;
> -#if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS)
> -extern const struct address_space_operations ncp_symlink_aops;
> -extern int ncp_symlink(struct inode*, struct dentry*, const char*);
> -#endif
> -
> /*
> * Fill in the ncpfs-specific information in the inode.
> */
> diff --git a/include/linux/ncp_fs.h b/include/linux/ncp_fs.h
> index 88766e4..9f2d763 100644
> --- a/include/linux/ncp_fs.h
> +++ b/include/linux/ncp_fs.h
> @@ -204,6 +204,7 @@ void ncp_update_inode2(struct inode *, struct ncp_entry_info *);
> /* linux/fs/ncpfs/dir.c */
> extern const struct inode_operations ncp_dir_inode_operations;
> extern const struct file_operations ncp_dir_operations;
> +extern struct dentry_operations ncp_root_dentry_operations;
> int ncp_conn_logged_in(struct super_block *);
> int ncp_date_dos2unix(__le16 time, __le16 date);
> void ncp_date_unix2dos(int unix_date, __le16 * time, __le16 * date);
> @@ -223,6 +224,12 @@ int ncp_disconnect(struct ncp_server *server);
> void ncp_lock_server(struct ncp_server *server);
> void ncp_unlock_server(struct ncp_server *server);
>
> +/* linux/fs/ncpfs/symlink.c */
> +#if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS)
> +extern const struct address_space_operations ncp_symlink_aops;
> +int ncp_symlink(struct inode*, struct dentry*, const char*);
> +#endif
>...
The prototype for ncp_symlink() fom fs/ncpfs/dir.c should also be
removed and it's NULL dummy added here.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-16 13:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-15 20:02 [PATCH 1/3] ncpfs: add prototypes to ncp_fs.h Harvey Harrison
2008-02-16 13:11 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).