On 18.01.2022 13:26, Andrew Cooper wrote: > On 17/01/2022 09:48, Roger Pau Monne wrote: >> +#define x86_cpuid_get_leaf(p, l, s) \ >> + ((__typeof__(&(p)->basic.raw[0]))x86_cpuid_get_leaf_const(p, l, s)) > > You can drop the outermost brackets.
How that? While people aren't expected to write x86_cpuid_get_leaf(p, l, s)[0], such a case shouldn't result in misleading compiler diagnostics. Afaict omitting outermost parentheses is only ever safe on postfix expressions. Jan