On 5/31/2022 3:53 PM, Andy Shevchenko wrote: > On Tue, May 31, 2022 at 02:13:20PM +0530, Basavaraj Natikar wrote: >> AMD pingroup can be extended to support multi-function pins. >> Hence define and use a macro "AMD_PINS" to represent larger >> number of pins. > ... > >> +#define AMD_PINS(...) ((const unsigned int []){__VA_ARGS__}) > Do you need to have it as GCC expression? yes, or else I will hit the checkpatch error as below ---------------------------------------------------- ERROR: Macros with complex values should be enclosed in parentheses #31: FILE: drivers/pinctrl/pinctrl-amd.h:285: +#define AMD_PINS(...) (const unsigned int []){__VA_ARGS__}