False positive in checkpatch.pl ?

From: Aseda Aboagye
Date: Fri Jun 05 2015 - 13:21:37 EST


Hello CHECKPATCH maintainers,

I encountered this error when using the checkpatch.pl script
complaining about my macro.

Errors:
* checkpatch.pl errors/warnings

ERROR: Macros with complex values should be enclosed in parenthesis
#92: FILE: include/libsharedobjs.h:28:
+#define SHAREDLIB(...) __attribute__
((section(".roshared"))) __VA_ARGS__

total: 1 errors, 0 warnings, 45 lines checked

Since it's really an attribute, adding the parens wouldn't work. Just
thought I'd send this your way. Perhaps make an exception for cases
like these?

Thanks,

--
Aseda Aboagye
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/