On 17.08.21 15:39, Kuppuswamy, Sathyanarayanan wrote: > > > On 8/17/21 6:28 AM, Juergen Gross wrote: >> I guess you have been lucky and all users of arch_safe_halt() and halt() >> are directly or indirectly including asm/paravirt.h by other means. >> >> There might be configs where this is not true, though. >> >> In any case I believe you should fix your patch to let asm/irqflags.h >> include asm/paravirt.h for the CONFIG_PARAVIRT case. > > Ok. I will include it. > > #if defined(CONFIG_PARAVIRT) && !defined(CONFIG_PARAVIRT_XXL) > #include > #endif > I don't see a reason to have two "#include " lines in one file. Why don't you use: #ifdef CONFIG_PARAVIRT #include #else #ifndef __ASSEMBLY___ ... #endif #endif #ifndef CONFIG_PARAVIRT_XXL ... #endif Juergen