[PATCH] powerpc/mm: export symbols for lazy_mmu_mode KUnit tests
Andrew Morton
akpm at linux-foundation.org
Thu Dec 18 04:30:36 AEDT 2025
On Wed, 17 Dec 2025 22:15:16 +0530 Ritesh Harjani (IBM) <ritesh.list at gmail.com> wrote:
> ../arch/powerpc/mm/book3s64/hash_tlb.c:158:1: error: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_IF_KUNIT’ [-Werror=implicit-int]
> ../arch/powerpc/mm/book3s64/hash_tlb.c:158:1: error: parameter names (without types) in function declaration [-Werror]
> AR init/built-in.a
> cc1: all warnings being treated as errors
> make[6]: *** [../scripts/Makefile.build:287: arch/powerpc/mm/book3s64/hash_tlb.o] Error 1
> make[5]: *** [../scripts/Makefile.build:556: arch/powerpc/mm/book3s64] Error 2
>
>
> IMO, we will need the following header in hash_tlb.c
>
> +#include <kunit/visibility.h>
Yeah, I already added Ritesh's patch which had this include, so I
think we're all good now.
More information about the Linuxppc-dev
mailing list