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

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.