On Tue, Jul 22, 2025 at 4:56 PM Jan Beulich <jbeul...@suse.com> wrote: > Hmm, using IS_ENABLED() would certainly be preferred.
Why? Very similar usage is a few lines above, with #ifdef CONFIG_MEM_PAGING and CONFIG_MEM_SHARING. > That would apparently require ... > ... the declaration to be generally visible (likely also outside of x86). With all the other changes in this series, it seems like it only makes sense to guard p2m_altp2m_check with CONFIG_ALTP2M. "Having the declaration to be generally visible" is exactly what I was trying to avoid. P.