Re: WARNING: modpost: EXPORT symbol "…" [vmlinux] version generation failed, symbol will not be versioned./"…" […] has no CRC!

From: Uros Bizjak
Date: Sun Apr 06 2025 - 02:48:32 EST


On Sat, Apr 5, 2025 at 11:00 AM Paul Menzel <pmenzel@xxxxxxxxxxxxx> wrote:
>
> #regzbot introduced: 6a367577153acd9b432a5340fb10891eeb7e10f1
>
>
> Dear Linux folks,
>
>
> If I didn’t screw up `git bisect`, then commit 6a367577153a (percpu/x86:
> enable strict percpu checks via named AS qualifiers) [1] causes the
> build warnings below:
>
> $ make olddefconfig && make -j128
> […]
> WARNING: modpost: EXPORT symbol "xen_vcpu_id" [vmlinux] version
> generation failed, symbol will not be versioned.
> Is "xen_vcpu_id" prototyped in <asm/asm-prototypes.h>?
> WARNING: modpost: EXPORT symbol "irq_stat" [vmlinux] version
> generation failed, symbol will not be versioned.
> Is "irq_stat" prototyped in <asm/asm-prototypes.h>?
> […]
> WARNING: modpost: EXPORT symbol "__irq_regs" [vmlinux] version
> generation failed, symbol will not be versioned.
> Is "__irq_regs" prototyped in <asm/asm-prototypes.h>?
> WARNING: modpost: EXPORT symbol "radix_tree_preloads" [vmlinux]
> version generation failed, symbol will not be versioned.
> Is "radix_tree_preloads" prototyped in <asm/asm-prototypes.h>?
> WARNING: modpost: "pcpu_hot"
> [arch/x86/events/intel/intel-uncore.ko] has no CRC!
> WARNING: modpost: "numa_node"
> [arch/x86/events/intel/intel-uncore.ko] has no CRC!
> […]

The patch at [1] also fixes this issue. Actually, this warning is the
root cause of your previous report [2] and is due to genksyms not
being prepared for new keywords.

So, either genksyms should be enhanced or a workaround [1] should be used..

[1] https://lore.kernel.org/lkml/20250404102535.705090-1-ubizjak@xxxxxxxxx/
[2] https://lore.kernel.org/lkml/81a25a60-de78-43fb-b56a-131151e1c035@xxxxxxxxxxxxx/

Uros.