Re: [PATCH] loongarch/pgtable.h: move {dmw,tlb}_virt_to_page() to page.h

From: Huacai Chen
Date: Sun Mar 10 2024 - 10:03:53 EST


Hi, Max,

On Sun, Mar 10, 2024 at 6:22 PM Max Kellermann <max.kellermann@xxxxxxxxx> wrote:
>
> On Sun, Mar 10, 2024 at 2:14 AM Huacai Chen <chenhuacai@xxxxxxxxxx> wrote:
> > Could you please share what kind of configuration will cause a build error?
>
> With the current kernel, I found none; the problem is masked currently
> due to the current order of include directives, but it caused problems
> during my attempts to clean up linux/mm.h - see
> https://lore.kernel.org/lkml/20240305085919.1601395-1-max.kellermann@xxxxxxxxx/
> for the most recent submission; a later (not-yet-submitted) version of
> the series which reproduces the problem can be found here:
> https://github.com/MaxKellermann/linux/commits/mm.h/
OK, I will apply this patch if no one has objections.

Huacai

>
> I saw this problem with "randconfig KCONFIG_SEED=0x5D8A9172" - config attached.
>
> Max