[PATCH v3 2/9] ARM: tlbflush: Make TLB flushes into static inlines

Sami Tolvanen samitolvanen at google.com
Mon Mar 11 15:28:00 PDT 2024


On Mon, Mar 11, 2024 at 3:17 PM Linus Walleij <linus.walleij at linaro.org> wrote:
>
>   LD      .tmp_vmlinux.kallsyms1
> ld.lld: error: undefined symbol: __kcfi_typeid_v7wbi_flush_user_tlb_range
> >>> referenced by arch/arm/mm/tlb-v7.o:(.text+0x0) in archive vmlinux.a
>
> ld.lld: error: undefined symbol: __kcfi_typeid_v7wbi_flush_kern_tlb_range
> >>> referenced by tlb-v7.S:60 (/mnt/storage/linus/linux-integrator/build-vexpress/../arch/arm/mm/tlb-v7.S:60)
> >>>               arch/arm/mm/tlb-v7.o:(.text+0x40) in archive vmlinux.a
>
> ld.lld: error: undefined symbol: __kcfi_typeid_v7wbi_tlb_fns
> >>> referenced by arch/arm/mm/tlb-v7.o:(.init.text+0x0) in archive vmlinux.a

Clang only emits __kcfi_typeid symbols for functions that are
address-taken in C code. You need to add __ADDRESSABLE(function)
references to a C file somewhere for functions that otherwise are not
address-taken.

Sami



More information about the linux-arm-kernel mailing list