public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: lustre fix constant comparision style issue in lu_object.h
@ 2017-03-11 13:07 Craig Inches
  2017-03-12 13:37 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Craig Inches @ 2017-03-11 13:07 UTC (permalink / raw)
  To: oleg.drokin, andreas.dilger, jsimmons, gregkh
  Cc: lustre-devel, devel, linux-kernel, Craig Inches

This patch resolves the "Comparisons should place the constant on
the right side of the test" found with checkpatch tool.

Signed-off-by: Craig Inches <Craig@craiginches.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 7a4f412..02be805 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.10.2

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

end of thread, other threads:[~2017-03-13 13:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-11 13:07 [PATCH] staging: lustre fix constant comparision style issue in lu_object.h Craig Inches
2017-03-12 13:37 ` Greg KH
2017-03-13 12:11   ` Dan Carpenter
2017-03-13 13:13     ` Craig Inches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox