On Wed, Oct 31, 2018 at 10:35:36AM +0100, Martin Schwidefsky wrote: > > Maybe > > return __is_defined(__PAGETABLE_P4D_FOLDED); > > > > ? > > I have tried that, doesn't work. The reason is that the > __PAGETABLE_xxx_FOLDED defines to not have a value. > > #define __PAGETABLE_P4D_FOLDED > #define __PAGETABLE_PMD_FOLDED > #define __PAGETABLE_PUD_FOLDED > > While the definition of CONFIG_xxx symbols looks like this > > #define CONFIG_xxx 1 > > The __is_defined needs the value for the __take_second_arg trick. I guess this is easily fixable :) -- Kirill A. Shutemov