Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755457AbdCKNSA (ORCPT ); Sat, 11 Mar 2017 08:18:00 -0500 Received: from o1682455x182.outbound-mail.sendgrid.net ([168.245.5.182]:6020 "EHLO o1682455x182.outbound-mail.sendgrid.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755625AbdCKNRy (ORCPT ); Sat, 11 Mar 2017 08:17:54 -0500 X-Greylist: delayed 529 seconds by postgrey-1.27 at vger.kernel.org; Sat, 11 Mar 2017 08:17:53 EST From: Craig Inches To: oleg.drokin@intel.com, andreas.dilger@intel.com, jsimmons@infradead.org, gregkh@linuxfoundation.org Cc: lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Craig Inches Subject: [PATCH] staging: lustre fix constant comparision style issue in lu_object.h Date: Sat, 11 Mar 2017 13:07:40 +0000 Message-Id: <20170311130740.11488-1-Craig@craiginches.com> X-Mailer: git-send-email 2.10.2 X-SG-EID: UsLXQ589HNP4HLBydmD9pgHURQozLYm9XliudupI8Yv3EQm+/Xund6ncuc+imgWMpyMMcrRg0PepUM ZAPmO9esM53ZwczEI7x0aKvaTJ2jD02M/UCus5y2jCGWIRWjyLoCjjZU84SKc6h7+dSFxxhMavmE6p TUBi2IXxSTCvl3fCM3RPafm1ACw+eU0pdq7BFf2JqwFqKnUSO3I8sljdoxKUim64KRquJtXs//WEir Q= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 841 Lines: 23 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 --- 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