From: Aastha Gupta Date: Wed, 18 Oct 2017 12:14:22 +0000 (+0530) Subject: staging: lustre: fix comparisons should place the constant on the right side X-Git-Tag: v4.19~2226^2~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0bb73711b7dd65f101413338ae8f2e566c5946d4;p=platform%2Fkernel%2Flinux-rpi.git staging: lustre: fix comparisons should place the constant on the right side This patch fixes checkpatch.pl warning: WARNING: Comparisons should place the constant on the right side of the test Signed-off-by: Aastha Gupta Signed-off-by: Greg Kroah-Hartman --- 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) \