staging: lustre: fix comparisons should place the constant on the right side
authorAastha Gupta <aastha.gupta4104@gmail.com>
Wed, 18 Oct 2017 12:14:22 +0000 (17:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 13:34:46 +0000 (15:34 +0200)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lu_object.h

index 4f213c408cfa49af9ba5d598accff39f1eb65d1f..a3c0481ca56ff39b1a4ad16a8ff4b068caf1bb0b 100644 (file)
@@ -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)                             \