Re: Kunit: kernel/resource.c: In function 'gfr_start': include/linux/mm.h:101:35: error: 'MAX_PHYSMEM_BITS' undeclared (first use in this function)

From: Arnd Bergmann
Date: Mon Sep 09 2024 - 16:20:54 EST


On Mon, Sep 9, 2024, at 20:00, Naresh Kamboju wrote:
> The arm kunit builds failed on the Linux next-20240909 due to following
> build warnings / errors with gcc-13 and clang-19 with extra Kconfigs
>
> CONFIG_OF_KUNIT_TEST=y
> CONFIG_KASAN=y
> CONFIG_KUNIT=y
> CONFIG_KUNIT_ALL_TESTS=y
>
> First seen on next-20240909
> Good: next-20240906
> BAD: next-20240909
>
> Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
>

This patch below addresses the build regression, not sure if that
is what we want.

Arnd