All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] Staging: lustre: Move export_symbol below its function
@ 2015-02-21 11:44 aybuke ozdemir
  2015-02-21 11:44 ` [PATCH 2/5] Staging: lustre: Added blank line after declarations aybuke ozdemir
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: aybuke ozdemir @ 2015-02-21 11:44 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: aybuke ozdemir

This patch fixes "EXPORT_SYMBOL(foo); should immediately follow its
function/variable" checkpatch.pl warning in file.c

Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
---
 drivers/staging/lustre/lustre/llite/file.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index 7c7ef7e..40bb11e 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -3233,6 +3233,7 @@ void *ll_iocontrol_register(llioc_callback_t cb, int count, unsigned int *cmd)
 
 	return in_data;
 }
+EXPORT_SYMBOL(ll_iocontrol_register);
 
 void ll_iocontrol_unregister(void *magic)
 {
@@ -3257,8 +3258,6 @@ void ll_iocontrol_unregister(void *magic)
 
 	CWARN("didn't find iocontrol register block with magic: %p\n", magic);
 }
-
-EXPORT_SYMBOL(ll_iocontrol_register);
 EXPORT_SYMBOL(ll_iocontrol_unregister);
 
 static enum llioc_iter
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/5] Staging: lustre: Added blank line after declarations
  2015-02-21 11:44 [PATCH 1/5] Staging: lustre: Move export_symbol below its function aybuke ozdemir
@ 2015-02-21 11:44 ` aybuke ozdemir
  2015-02-21 11:44 ` [PATCH 3/5] Staging: lustre: Corrected code indentation aybuke ozdemir
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: aybuke ozdemir @ 2015-02-21 11:44 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: aybuke ozdemir

This patch fixes "Missing a blank line after declarations"
checkpatch.pl warning in file.c

Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
---
 drivers/staging/lustre/lustre/llite/file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index 40bb11e..845589f 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -197,6 +197,7 @@ static int ll_close_inode_openhandle(struct obd_export *md_exp,
 	}
 	if (rc == 0 && op_data->op_bias & MDS_HSM_RELEASE) {
 		struct mdt_body *body;
+
 		body = req_capsule_server_get(&req->rq_pill, &RMF_MDT_BODY);
 		if (!(body->valid & OBD_MD_FLRELEASED))
 			rc = -EBUSY;
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 3/5] Staging: lustre: Corrected code indentation
  2015-02-21 11:44 [PATCH 1/5] Staging: lustre: Move export_symbol below its function aybuke ozdemir
  2015-02-21 11:44 ` [PATCH 2/5] Staging: lustre: Added blank line after declarations aybuke ozdemir
@ 2015-02-21 11:44 ` aybuke ozdemir
  2015-02-21 14:57   ` [Outreachy kernel] " Julia Lawall
  2015-02-21 11:44 ` [PATCH 4/5] Staging: lustre: Added spaces around '=' aybuke ozdemir
  2015-02-21 11:44 ` [PATCH 5/5] Staging: lustre: Remove space after the name of that function aybuke ozdemir
  3 siblings, 1 reply; 7+ messages in thread
From: aybuke ozdemir @ 2015-02-21 11:44 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: aybuke ozdemir

This patch fixes these warning messages found by checkpatch.pl:
WARNING: suspect code indent for conditional statements(8,15)

Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
---
 drivers/staging/lustre/lustre/llite/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index 845589f..9a7ab65 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -2822,7 +2822,7 @@ int ll_have_md_lock(struct inode *inode, __u64 *bits,  ldlm_mode_t l_req_mode)
 	int i;
 
 	if (!inode)
-	       return 0;
+		return 0;
 
 	fid = &ll_i2info(inode)->lli_fid;
 	CDEBUG(D_INFO, "trying to match res "DFID" mode %s\n", PFID(fid),
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 4/5] Staging: lustre: Added spaces around '='
  2015-02-21 11:44 [PATCH 1/5] Staging: lustre: Move export_symbol below its function aybuke ozdemir
  2015-02-21 11:44 ` [PATCH 2/5] Staging: lustre: Added blank line after declarations aybuke ozdemir
  2015-02-21 11:44 ` [PATCH 3/5] Staging: lustre: Corrected code indentation aybuke ozdemir
@ 2015-02-21 11:44 ` aybuke ozdemir
  2015-02-21 14:57   ` [Outreachy kernel] " Julia Lawall
  2015-02-21 11:44 ` [PATCH 5/5] Staging: lustre: Remove space after the name of that function aybuke ozdemir
  3 siblings, 1 reply; 7+ messages in thread
From: aybuke ozdemir @ 2015-02-21 11:44 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: aybuke ozdemir

This patch fixes "spaces required around that '=' (ctx:VxV)"
checkpatch.pl error in file.c

Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
---
 drivers/staging/lustre/lustre/llite/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index 9a7ab65..2dd6a8d 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -270,7 +270,7 @@ static int ll_md_close(struct obd_export *md_exp, struct inode *inode,
 	int lockmode;
 	__u64 flags = LDLM_FL_BLOCK_GRANTED | LDLM_FL_TEST_LOCK;
 	struct lustre_handle lockh;
-	ldlm_policy_data_t policy = {.l_inodebits={MDS_INODELOCK_OPEN}};
+	ldlm_policy_data_t policy = {.l_inodebits = {MDS_INODELOCK_OPEN}};
 	int rc = 0;
 
 	/* clear group lock, if present */
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 5/5] Staging: lustre: Remove space after the name of that function
  2015-02-21 11:44 [PATCH 1/5] Staging: lustre: Move export_symbol below its function aybuke ozdemir
                   ` (2 preceding siblings ...)
  2015-02-21 11:44 ` [PATCH 4/5] Staging: lustre: Added spaces around '=' aybuke ozdemir
@ 2015-02-21 11:44 ` aybuke ozdemir
  3 siblings, 0 replies; 7+ messages in thread
From: aybuke ozdemir @ 2015-02-21 11:44 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: aybuke ozdemir

Fix checkpatch.pl issues with "space prohibited between function name and
open parenthesis" in file.c

Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
---
 drivers/staging/lustre/lustre/llite/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
index 2dd6a8d..16e3045 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -693,7 +693,7 @@ restart:
 out_och_free:
 	if (rc) {
 		if (och_p && *och_p) {
-			OBD_FREE(*och_p, sizeof (struct obd_client_handle));
+			OBD_FREE(*och_p, sizeof(struct obd_client_handle));
 			*och_p = NULL; /* OBD_FREE writes some magic there */
 			(*och_usecount)--;
 		}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [Outreachy kernel] [PATCH 3/5] Staging: lustre: Corrected code indentation
  2015-02-21 11:44 ` [PATCH 3/5] Staging: lustre: Corrected code indentation aybuke ozdemir
@ 2015-02-21 14:57   ` Julia Lawall
  0 siblings, 0 replies; 7+ messages in thread
From: Julia Lawall @ 2015-02-21 14:57 UTC (permalink / raw)
  To: aybuke ozdemir; +Cc: outreachy-kernel

On Sat, 21 Feb 2015, aybuke ozdemir wrote:

> This patch fixes these warning messages found by checkpatch.pl:
> WARNING: suspect code indent for conditional statements(8,15)

It would be good to say what you have done, rather than just that you have
fixed something.  In this case I suspect that you converted spaces to
tabs?

julia

> Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
> ---
>  drivers/staging/lustre/lustre/llite/file.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
> index 845589f..9a7ab65 100644
> --- a/drivers/staging/lustre/lustre/llite/file.c
> +++ b/drivers/staging/lustre/lustre/llite/file.c
> @@ -2822,7 +2822,7 @@ int ll_have_md_lock(struct inode *inode, __u64 *bits,  ldlm_mode_t l_req_mode)
>  	int i;
>
>  	if (!inode)
> -	       return 0;
> +		return 0;
>
>  	fid = &ll_i2info(inode)->lli_fid;
>  	CDEBUG(D_INFO, "trying to match res "DFID" mode %s\n", PFID(fid),
> --
> 1.9.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424519075-4378-3-git-send-email-aybuke.147%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Outreachy kernel] [PATCH 4/5] Staging: lustre: Added spaces around '='
  2015-02-21 11:44 ` [PATCH 4/5] Staging: lustre: Added spaces around '=' aybuke ozdemir
@ 2015-02-21 14:57   ` Julia Lawall
  0 siblings, 0 replies; 7+ messages in thread
From: Julia Lawall @ 2015-02-21 14:57 UTC (permalink / raw)
  To: aybuke ozdemir; +Cc: outreachy-kernel

On Sat, 21 Feb 2015, aybuke ozdemir wrote:

> This patch fixes "spaces required around that '=' (ctx:VxV)"
> checkpatch.pl error in file.c

Likewise, here you can say "Add spaces around =, to conform to kernel
coding type.  This problem was found by checkpatch."  That says what you
have done and why.

julia

> Signed-off-by: aybuke ozdemir <aybuke.147@gmail.com>
> ---
>  drivers/staging/lustre/lustre/llite/file.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/lustre/lustre/llite/file.c b/drivers/staging/lustre/lustre/llite/file.c
> index 9a7ab65..2dd6a8d 100644
> --- a/drivers/staging/lustre/lustre/llite/file.c
> +++ b/drivers/staging/lustre/lustre/llite/file.c
> @@ -270,7 +270,7 @@ static int ll_md_close(struct obd_export *md_exp, struct inode *inode,
>  	int lockmode;
>  	__u64 flags = LDLM_FL_BLOCK_GRANTED | LDLM_FL_TEST_LOCK;
>  	struct lustre_handle lockh;
> -	ldlm_policy_data_t policy = {.l_inodebits={MDS_INODELOCK_OPEN}};
> +	ldlm_policy_data_t policy = {.l_inodebits = {MDS_INODELOCK_OPEN}};
>  	int rc = 0;
>
>  	/* clear group lock, if present */
> --
> 1.9.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424519075-4378-4-git-send-email-aybuke.147%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-02-21 14:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-21 11:44 [PATCH 1/5] Staging: lustre: Move export_symbol below its function aybuke ozdemir
2015-02-21 11:44 ` [PATCH 2/5] Staging: lustre: Added blank line after declarations aybuke ozdemir
2015-02-21 11:44 ` [PATCH 3/5] Staging: lustre: Corrected code indentation aybuke ozdemir
2015-02-21 14:57   ` [Outreachy kernel] " Julia Lawall
2015-02-21 11:44 ` [PATCH 4/5] Staging: lustre: Added spaces around '=' aybuke ozdemir
2015-02-21 14:57   ` [Outreachy kernel] " Julia Lawall
2015-02-21 11:44 ` [PATCH 5/5] Staging: lustre: Remove space after the name of that function aybuke ozdemir

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.