Re: [PATCH] x86, mm: Reserver some memory for bootmem allocator for NO_BOOTMEM

From: Thomas Gleixner
Date: Sat Sep 15 2018 - 06:30:00 EST


On Tue, 11 Sep 2018, Feng Tang wrote:
> Thanks for the suggestion, and I have 2 patches: one adds a build warning,
> the other prepares fixmap page table on demand and doesn't need warning.

The latter please.

> But I met a problem, that the "__end_of_permanent_fixed_addresses" is
> defined in fixmap.h, which is protected by #ifndef __ASSEMBLY__, also
> fixmap.h reference many other header file, which makes it harder to
> extract the definition out. Any suggestion on this? thanks!

What prevents you from moving the enum out of the __ASSEMBLY__ protected
section aside of a bit of careful work?

Thanks,

tglx