public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: lustre: obdclass: fix macro coding style issue in uuid.c
@ 2015-06-27  4:44 Vasiliy Korchagin
  2015-06-27  4:53 ` Joe Perches
  0 siblings, 1 reply; 7+ messages in thread
From: Vasiliy Korchagin @ 2015-06-27  4:44 UTC (permalink / raw)
  To: oleg.drokin, andreas.dilger
  Cc: HPDD-discuss, devel, linux-kernel, Vasiliy Korchagin

This patch fixes the checkpatch.pl error:

ERROR: Macros with complex values should be enclosed in parentheses
+#define CONSUME(val, ptr) (val) = consume(sizeof(val), (ptr))

Signed-off-by: Vasiliy Korchagin <vasiliy.korchagin@gmail.com>
---
 drivers/staging/lustre/lustre/obdclass/uuid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/lustre/lustre/obdclass/uuid.c b/drivers/staging/lustre/lustre/obdclass/uuid.c
index ff0a01b..8d00882 100644
--- a/drivers/staging/lustre/lustre/obdclass/uuid.c
+++ b/drivers/staging/lustre/lustre/obdclass/uuid.c
@@ -55,7 +55,7 @@ static inline __u32 consume(int nob, __u8 **ptr)
 	return value;
 }
 
-#define CONSUME(val, ptr) (val) = consume(sizeof(val), (ptr))
+#define CONSUME(val, ptr) ((val) = consume(sizeof(val), (ptr)))
 
 static void uuid_unpack(class_uuid_t in, __u16 *uu, int nr)
 {
-- 
2.4.4


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

end of thread, other threads:[~2015-07-14 23:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-27  4:44 [PATCH] staging: lustre: obdclass: fix macro coding style issue in uuid.c Vasiliy Korchagin
2015-06-27  4:53 ` Joe Perches
2015-06-27  5:36   ` Vasiliy Korchagin
2015-06-27  6:04     ` Joe Perches
2015-07-07  2:36       ` Greg KH
2015-07-07  5:01         ` Joe Perches
2015-07-15  0:40           ` [PATCH] staging: lustre: obdclass: simplify class_uuid_unparse Vasiliy Korchagin

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