Re: [PATCH 0/4] Remove problematic include in <asm/set_memory.h>

From: Kevin Brodsky
Date: Wed Dec 11 2024 - 03:14:19 EST


On 11/12/2024 06:04, Christoph Hellwig wrote:
> On Tue, Dec 10, 2024 at 06:46:06PM +0000, Kevin Brodsky wrote:
>> The need for this series arose from a completely unrelated series [1].
>> Long story short, that series causes <linux/mm.h> to include
>> <linux/set_memory.h>, which doesn't feel too unreasonable.
> It is entirely unreasoable. <linux/mm.h> is inclued just about
> everywhere and should not grow more fringe includes.

Understood, I did wonder about that. Then I suppose the best course of
action for the problematic patch in that other series [3] is to move
pagetable_{alloc,free} out of linux/mm.h.

- Kevin

[3]
https://lore.kernel.org/linux-hardening/20241206101110.1646108-11-kevin.brodsky@xxxxxxx/