Re: [PATCH v2 2/2] x86/mm: Remove unnecessary include in set_memory.h
From: Ingo Molnar
Date: Fri Feb 28 2025 - 12:14:46 EST
* Kevin Brodsky <kevin.brodsky@xxxxxxx> wrote:
> On 27/02/2025 14:03, Ingo Molnar wrote:
> > * Ingo Molnar <mingo@xxxxxxxxxx> wrote:
> >
> >> So I tried to pick up this patch belatedly, but there's more places
> >> that mistakenly learned to rely on the stray <linux/mm.h> inclusion,
> >> for example on x86 defconfig-ish kernels:
> >>
> >>
> >> In file included from drivers/gpu/drm/i915/gt/intel_ggtt.c:6:
> >> ./arch/x86/include/asm/set_memory.h:40:57: error: unknown type name ‘pgprot_t’
> >> 40 | int __set_memory_prot(unsigned long addr, int numpages, pgprot_t prot);
> >> | ^~~~~~~~
>
> This patch relies on patch 1 in this series, which removes
> __set_memory_prot(). I seem to be able to build x86_64_defconfig
> without issue with both patches applies on the latest mainline.
Oh, the 1/2 patch was missing from my mailbox (my mbox's fault, not yours),
and apparently the 'PATCH 2/2' tag wasn't a big enough of a clue for me
that there's a dependent patch. ;-)
Anyway, I re-tested it with both patches applied and it's all looking
good now, and I have applied them to tip:x86/headers.
Thanks,
Ingo