[PATCH] staging: lustre: obdclass: simplify class_uuid_unparse

2015-07-14 Thread Vasiliy Korchagin
This patch simplifies uuid unparse logic by using sprintf "%pU" extension. And eliminates the code with a coding style error: ERROR: Macros with complex values should be enclosed in parentheses +#define CONSUME(val, ptr) (val) = consume(sizeof(val), (ptr)) Signed-off-by: Vasiliy

[PATCH] staging: lustre: obdclass: fix macro coding style issue in uuid.c

2015-06-26 Thread 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)) by expanding it as this macro is used only once. Signed-off-by: Vasiliy Korchagin --- Notes: Here is another version

[PATCH] staging: lustre: obdclass: fix macro coding style issue in uuid.c

2015-06-26 Thread 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 --- drivers/staging/lustre/lustre/obdclass/uuid.c | 2 +- 1 file changed, 1 insertion