On 5/22/25 10:33, Xin Li wrote:
arch/x86/include/asm/sighandling.h:44:21: error: 'struct pt_regs' has no member named 'fred_ss'
44 | regs->fred_ss.swevent = 0; | ^~
Hmm, this statement is under IS_ENABLED(CONFIG_X86_FRED), which should
The compiler still _compiles_ unreachable statements:
if (0) foo = bar.bar;
An #ifdef will keep the compiler out completely, of course. That's probably the best thing in this case, especially since it'll be tucked away in a header.