All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: lustre: fix comparisons should place the constant on the right side
@ 2017-09-14 11:46 Aastha Gupta
  2017-09-14 11:51 ` [Outreachy kernel] " Julia Lawall
  2017-09-18  9:38 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 3+ messages in thread
From: Aastha Gupta @ 2017-09-14 11:46 UTC (permalink / raw)
  To: outreachy-kernel, Oleg Drokin, Andreas Dilger, James Simmons,
	Greg Kroah-Hartman
  Cc: Aastha Gupta

This patch fixes checkpatch.pl warning:

WARNING: Comparisons should place the constant on the right side of the test

Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>
---
 drivers/staging/lustre/lustre/include/lu_object.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/include/lu_object.h b/drivers/staging/lustre/lustre/include/lu_object.h
index 4f213c4..a3c0481 100644
--- a/drivers/staging/lustre/lustre/include/lu_object.h
+++ b/drivers/staging/lustre/lustre/include/lu_object.h
@@ -1130,7 +1130,7 @@ struct lu_context_key {
 	{							 \
 		type *value;				      \
 								  \
-		BUILD_BUG_ON(PAGE_SIZE < sizeof(*value));        \
+		BUILD_BUG_ON(sizeof(*value) > PAGE_SIZE);        \
 								  \
 		value = kzalloc(sizeof(*value), GFP_NOFS);	\
 		if (!value)				\
-- 
2.7.4



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

* Re: [Outreachy kernel] [PATCH] staging: lustre: fix comparisons should place the constant on the right side
  2017-09-14 11:46 [PATCH] staging: lustre: fix comparisons should place the constant on the right side Aastha Gupta
@ 2017-09-14 11:51 ` Julia Lawall
  2017-09-18  9:38 ` Greg Kroah-Hartman
  1 sibling, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2017-09-14 11:51 UTC (permalink / raw)
  To: Aastha Gupta
  Cc: outreachy-kernel, Oleg Drokin, Andreas Dilger, James Simmons,
	Greg Kroah-Hartman



On Thu, 14 Sep 2017, Aastha Gupta wrote:

> This patch fixes checkpatch.pl warning:
>
> WARNING: Comparisons should place the constant on the right side of the test
>
> Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>

Acked-by: Julia Lawall <julia.lawall@lip6.fr>

Technically, both sides are constants, but at least one side looks more
constant-like.

julia

> ---
>  drivers/staging/lustre/lustre/include/lu_object.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/lustre/lustre/include/lu_object.h b/drivers/staging/lustre/lustre/include/lu_object.h
> index 4f213c4..a3c0481 100644
> --- a/drivers/staging/lustre/lustre/include/lu_object.h
> +++ b/drivers/staging/lustre/lustre/include/lu_object.h
> @@ -1130,7 +1130,7 @@ struct lu_context_key {
>  	{							 \
>  		type *value;				      \
>  								  \
> -		BUILD_BUG_ON(PAGE_SIZE < sizeof(*value));        \
> +		BUILD_BUG_ON(sizeof(*value) > PAGE_SIZE);        \
>  								  \
>  		value = kzalloc(sizeof(*value), GFP_NOFS);	\
>  		if (!value)				\
> --
> 2.7.4
>
> --
> 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/1505389603-8642-1-git-send-email-aastha.gupta4104%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>


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

* Re: [PATCH] staging: lustre: fix comparisons should place the constant on the right side
  2017-09-14 11:46 [PATCH] staging: lustre: fix comparisons should place the constant on the right side Aastha Gupta
  2017-09-14 11:51 ` [Outreachy kernel] " Julia Lawall
@ 2017-09-18  9:38 ` Greg Kroah-Hartman
  1 sibling, 0 replies; 3+ messages in thread
From: Greg Kroah-Hartman @ 2017-09-18  9:38 UTC (permalink / raw)
  To: Aastha Gupta; +Cc: outreachy-kernel, Oleg Drokin, Andreas Dilger, James Simmons

On Thu, Sep 14, 2017 at 05:16:43PM +0530, Aastha Gupta wrote:
> This patch fixes checkpatch.pl warning:
> 
> WARNING: Comparisons should place the constant on the right side of the test
> 
> Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>
> Acked-by: Julia Lawall <julia.lawall@lip6.fr>
> ---
>  drivers/staging/lustre/lustre/include/lu_object.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

I see at least 11 different lustre patches from you that you have
recently sent out, but yet I have no idea what patch to apply in what
order :(

Please fix this up and resend all of them as a single patch series so I
have a chance to get this correct.

thanks,

greg k-h


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

end of thread, other threads:[~2017-09-18  9:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-14 11:46 [PATCH] staging: lustre: fix comparisons should place the constant on the right side Aastha Gupta
2017-09-14 11:51 ` [Outreachy kernel] " Julia Lawall
2017-09-18  9:38 ` Greg Kroah-Hartman

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.