[PATCH] powerpc/mm: export symbols for lazy_mmu_mode KUnit tests
Kevin Brodsky
kevin.brodsky at arm.com
Thu Dec 18 04:37:46 AEDT 2025
On 17/12/2025 18:30, Andrew Morton wrote:
> 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>
Ha strange it built fine for me without it... Maybe different config
options.
> Yeah, I already added Ritesh's patch which had this include, so I
> think we're all good now.
Great thanks both!
- Kevin
More information about the Linuxppc-dev
mailing list