OpenVZ Forum - RDF feed
type: channel
items: [PATCH 0/5] nfs: few cleanup patches inspired by sparse
items: [PATCH 1/5] nfs: include NFSv4 header in netns.h
items: [PATCH 2/5] nfs: declare nfs_callback_tcp_port in header
items: [PATCH 3/5] nfs: declare nfs_xdev_mount as static
items: [PATCH 4/5] nfs: include nfs4_fh.h in nfs4sysctl.c
items: [PATCH 5/5] nfs: include internah.h in getroot.h

[PATCH 0/5] nfs: few cleanup patches inspired by sparse
type: item
description: First two patched fixes problems reported by Fengguang Wu <fengguang.wu@intel.com>. The following series implements... --- Stanislav Kinsbursky (5): nfs: include NFSv4 header in netns.h nfs: declare nfs_callback_tcp_port in header nfs: declare nfs_xdev_mount as static nfs: include nfs4_fh.h in nfs4sysctl.c nfs: include internah.h in getroot.h fs/nfs/callback.h | 1 + fs/nfs/getroot.c | 2 ++ fs/nfs/netns.h | 1 + fs/nfs/nfs4sysctl.c | 1 + fs/nfs/super.c | 2 +- 5 files changed, 6 insertions(+), 1 deletions(-)
creator: Stanislav Kinsbursky
date: 2012-10-02T10:18:43-00:00

[PATCH 1/5] nfs: include NFSv4 header in netns.h
type: item
description: Build error: fs/nfs/netns.h:27:15: error: 'NFS4_MAX_MINOR_VERSION' undeclared here (not in a function) Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> --- fs/nfs/netns.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/nfs/netns.h b/fs/nfs/netns.h index b9c7f9b..8ee1fab 100644 --- a/fs/nfs/netns.h +++ b/fs/nfs/netns.h @@ -5,6 +5,7 @@ #ifndef __NFS_NETNS_H__ #define __NFS_NETNS_H__ +#include <linux/nfs4.h> #include <net/net_namespace.h> #include <net/netns/generic.h>
creator: Stanislav Kinsbursky
date: 2012-10-02T10:18:54-00:00

[PATCH 2/5] nfs: declare nfs_callback_tcp_port in header
type: item
description: Sparse warning: fs/nfs/super.c:2638:16: sparse: symbol 'nfs_callback_tcpport' was not declared. Should it be static? Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> --- fs/nfs/callback.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/nfs/callback.h b/fs/nfs/callback.h index c07a8d4..4251c2a 100644 --- a/fs/nfs/callback.h +++ b/fs/nfs/callback.h @@ -208,5 +208,6 @@ extern int nfs4_set_callback_sessionid(struct nfs_client *clp); #define NFS41_BC_MAX_CALLBACKS 1 extern unsigned int nfs_callback_set_tcpport; +extern unsigned short nfs_callback_tcpport; #endif /* __LINUX_FS_NFS_CALLBACK_H */
creator: Stanislav Kinsbursky
date: 2012-10-02T10:18:59-00:00

[PATCH 3/5] nfs: declare nfs_xdev_mount as static
type: item
description: Sparse warning: fs/nfs/super.c:2517:15: warning: symbol 'nfs_xdev_mount' was not declared. Should it be static? Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> --- fs/nfs/super.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/nfs/super.c b/fs/nfs/super.c index a719bc0..b4079bb 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -2514,7 +2514,7 @@ EXPORT_SYMBOL_GPL(nfs_kill_super); /* * Clone an NFS2/3/4 server record on xdev traversal (FSID-change) */ -struct dentry * +static struct dentry * nfs_xdev_mount(struct file_system_type *fs_type, int flags, const char *dev_name, void *raw_data) {
creator: Stanislav Kinsbursky
date: 2012-10-02T10:19:04-00:00

[PATCH 4/5] nfs: include nfs4_fh.h in nfs4sysctl.c
type: item
description: Sparse warnings: fs/nfs/nfs4sysctl.c:56:5: warning: symbol 'nfs4_register_sysctl' was not declared. Should it be static? fs/nfs/nfs4sysctl.c:64:6: warning: symbol 'nfs4_unregister_sysctl' was not declared. Should it be static? Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> --- fs/nfs/nfs4sysctl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/nfs/nfs4sysctl.c b/fs/nfs/nfs4sysctl.c index 5729bc8..2628d92 100644 --- a/fs/nfs/nfs4sysctl.c +++ b/fs/nfs/nfs4sysctl.c @@ -9,6 +9,7 @@ #include <linux/nfs_idmap.h> #include <linux/nfs_fs.h> +#include "nfs4_fs.h" #include "callback.h" static const int nfs_set_port_min = 0;
creator: Stanislav Kinsbursky
date: 2012-10-02T10:19:09-00:00

[PATCH 5/5] nfs: include internah.h in getroot.h
type: item
description: Sparse warning: fs/nfs/nfs4getroot.c:11:5: warning: symbol 'nfs4_get_rootfh' was not declared. Should it be static? Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> --- fs/nfs/getroot.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/fs/nfs/getroot.c b/fs/nfs/getroot.c index 4654ced..033803c 100644 --- a/fs/nfs/getroot.c +++ b/fs/nfs/getroot.c @@ -32,6 +32,8 @@ #include <asm/uaccess.h> +#include "internal.h" + #define NFSDBG_FACILITY NFSDBG_CLIENT /*
creator: Stanislav Kinsbursky
date: 2012-10-02T10:19:14-00:00