* [PATCH] NFS: nfs4_fs.h: Fix for checkpatch warnings
@ 2014-12-27 11:30 Koshy George
2014-12-27 16:19 ` Sudip Mukherjee
2014-12-27 18:34 ` Trond Myklebust
0 siblings, 2 replies; 3+ messages in thread
From: Koshy George @ 2014-12-27 11:30 UTC (permalink / raw)
To: trond.myklebust; +Cc: linux-nfs, linux-kernel, Koshy George
This patch fix checkpatch warning for nfs4_fs.h
fs/nfs/nfs4_fs.h:134: ERROR: "foo * bar" should be "foo *bar"
fs/nfs/nfs4_fs.h:416: ERROR: "foo * bar" should be "foo *bar"
Signed-off-by: Koshy George <koshygp@gmail.com>
[Being first patch, need some assistance]
---
fs/nfs/nfs4_fs.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index a081787..ae336c7 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -131,7 +131,7 @@ enum {
struct nfs4_lock_state {
struct list_head ls_locks; /* Other lock stateids */
- struct nfs4_state * ls_state; /* Pointer to open state */
+ struct nfs4_state *ls_state; /* Pointer to open state */
#define NFS_LOCK_INITIALIZED 0
#define NFS_LOCK_LOST 1
unsigned long ls_flags;
@@ -413,7 +413,7 @@ static inline void nfs4_schedule_session_recovery(struct nfs4_session *session,
extern struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *, struct rpc_cred *, gfp_t);
extern void nfs4_put_state_owner(struct nfs4_state_owner *);
extern void nfs4_purge_state_owners(struct nfs_server *);
-extern struct nfs4_state * nfs4_get_open_state(struct inode *, struct nfs4_state_owner *);
+extern struct nfs4_state *nfs4_get_open_state(struct inode *, struct nfs4_state_owner *);
extern void nfs4_put_open_state(struct nfs4_state *);
extern void nfs4_close_state(struct nfs4_state *, fmode_t);
extern void nfs4_close_sync(struct nfs4_state *, fmode_t);
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] NFS: nfs4_fs.h: Fix for checkpatch warnings
2014-12-27 11:30 [PATCH] NFS: nfs4_fs.h: Fix for checkpatch warnings Koshy George
@ 2014-12-27 16:19 ` Sudip Mukherjee
2014-12-27 18:34 ` Trond Myklebust
1 sibling, 0 replies; 3+ messages in thread
From: Sudip Mukherjee @ 2014-12-27 16:19 UTC (permalink / raw)
To: Koshy George; +Cc: trond.myklebust, linux-nfs, linux-kernel
On Sat, Dec 27, 2014 at 04:30:57AM -0700, Koshy George wrote:
> This patch fix checkpatch warning for nfs4_fs.h
>
> fs/nfs/nfs4_fs.h:134: ERROR: "foo * bar" should be "foo *bar"
> fs/nfs/nfs4_fs.h:416: ERROR: "foo * bar" should be "foo *bar"
>
> Signed-off-by: Koshy George <koshygp@gmail.com>
> [Being first patch, need some assistance]
this should not come here. any comment like this you can place below the ---
And actually its better to try generate your first patch on staging. There are lots of things to fix there.
thanks
sudip
> ---
> fs/nfs/nfs4_fs.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
> index a081787..ae336c7 100644
> --- a/fs/nfs/nfs4_fs.h
> +++ b/fs/nfs/nfs4_fs.h
> @@ -131,7 +131,7 @@ enum {
>
> struct nfs4_lock_state {
> struct list_head ls_locks; /* Other lock stateids */
> - struct nfs4_state * ls_state; /* Pointer to open state */
> + struct nfs4_state *ls_state; /* Pointer to open state */
> #define NFS_LOCK_INITIALIZED 0
> #define NFS_LOCK_LOST 1
> unsigned long ls_flags;
> @@ -413,7 +413,7 @@ static inline void nfs4_schedule_session_recovery(struct nfs4_session *session,
> extern struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *, struct rpc_cred *, gfp_t);
> extern void nfs4_put_state_owner(struct nfs4_state_owner *);
> extern void nfs4_purge_state_owners(struct nfs_server *);
> -extern struct nfs4_state * nfs4_get_open_state(struct inode *, struct nfs4_state_owner *);
> +extern struct nfs4_state *nfs4_get_open_state(struct inode *, struct nfs4_state_owner *);
> extern void nfs4_put_open_state(struct nfs4_state *);
> extern void nfs4_close_state(struct nfs4_state *, fmode_t);
> extern void nfs4_close_sync(struct nfs4_state *, fmode_t);
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] NFS: nfs4_fs.h: Fix for checkpatch warnings
2014-12-27 11:30 [PATCH] NFS: nfs4_fs.h: Fix for checkpatch warnings Koshy George
2014-12-27 16:19 ` Sudip Mukherjee
@ 2014-12-27 18:34 ` Trond Myklebust
1 sibling, 0 replies; 3+ messages in thread
From: Trond Myklebust @ 2014-12-27 18:34 UTC (permalink / raw)
To: Koshy George; +Cc: Linux NFS Mailing List, Linux Kernel mailing list
On Sat, Dec 27, 2014 at 6:30 AM, Koshy George <koshygp@gmail.com> wrote:
> This patch fix checkpatch warning for nfs4_fs.h
>
> fs/nfs/nfs4_fs.h:134: ERROR: "foo * bar" should be "foo *bar"
> fs/nfs/nfs4_fs.h:416: ERROR: "foo * bar" should be "foo *bar"
>
> Signed-off-by: Koshy George <koshygp@gmail.com>
> [Being first patch, need some assistance]
> ---
> fs/nfs/nfs4_fs.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
> index a081787..ae336c7 100644
> --- a/fs/nfs/nfs4_fs.h
> +++ b/fs/nfs/nfs4_fs.h
> @@ -131,7 +131,7 @@ enum {
>
> struct nfs4_lock_state {
> struct list_head ls_locks; /* Other lock stateids */
> - struct nfs4_state * ls_state; /* Pointer to open state */
> + struct nfs4_state *ls_state; /* Pointer to open state */
> #define NFS_LOCK_INITIALIZED 0
> #define NFS_LOCK_LOST 1
> unsigned long ls_flags;
> @@ -413,7 +413,7 @@ static inline void nfs4_schedule_session_recovery(struct nfs4_session *session,
> extern struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *, struct rpc_cred *, gfp_t);
> extern void nfs4_put_state_owner(struct nfs4_state_owner *);
> extern void nfs4_purge_state_owners(struct nfs_server *);
> -extern struct nfs4_state * nfs4_get_open_state(struct inode *, struct nfs4_state_owner *);
> +extern struct nfs4_state *nfs4_get_open_state(struct inode *, struct nfs4_state_owner *);
> extern void nfs4_put_open_state(struct nfs4_state *);
> extern void nfs4_close_state(struct nfs4_state *, fmode_t);
> extern void nfs4_close_sync(struct nfs4_state *, fmode_t);
> --
> 1.9.1
Sorry, but I'm not applying this kind of patch.
--
Trond Myklebust
Linux NFS client maintainer, PrimaryData
trond.myklebust@primarydata.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-27 18:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-27 11:30 [PATCH] NFS: nfs4_fs.h: Fix for checkpatch warnings Koshy George
2014-12-27 16:19 ` Sudip Mukherjee
2014-12-27 18:34 ` Trond Myklebust
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox