* How to avoid "version generation failed" warning?
@ 2024-03-23 13:14 Sam Ravnborg
2024-03-23 15:03 ` Sam Ravnborg
0 siblings, 1 reply; 2+ messages in thread
From: Sam Ravnborg @ 2024-03-23 13:14 UTC (permalink / raw)
To: linux-kbuild
Hi all.
When building sparc32 allmodconfig I see a lot of warnings like these:
WARNING: modpost: EXPORT symbol "empty_zero_page" [vmlinux] version generation failed, symbol will not be versioned.
Is "empty_zero_page" prototyped in <asm/asm-prototypes.h>?
WARNING: modpost: EXPORT symbol "__udelay" [vmlinux] version generation failed, symbol will not be versioned.
Is "__udelay" prototyped in <asm/asm-prototypes.h>?
WARNING: modpost: EXPORT symbol "__ndelay" [vmlinux] version generation failed, symbol will not be versioned.
Is "__ndelay" prototyped in <asm/asm-prototypes.h>?
WARNING: modpost: EXPORT symbol "__ashldi3" [vmlinux] version generation failed, symbol will not be versioned.
Is "__ashldi3" prototyped in <asm/asm-prototypes.h>?
WARNING: modpost: EXPORT symbol "__ashrdi3" [vmlinux] version generation failed, symbol will not be versioned.
Is "__ashrdi3" prototyped in <asm/asm-prototypes.h>?
WARNING: modpost: EXPORT symbol "__lshrdi3" [vmlinux] version generation failed, symbol will not be versioned.
Is "__lshrdi3" prototyped in <asm/asm-prototypes.h>?
WARNING: modpost: "__udelay" [kernel/locking/locktorture.ko] has no CRC!
WARNING: modpost: "__udelay" [kernel/rcu/rcutorture.ko] has no CRC!
WARNING: modpost: "__udelay" [kernel/rcu/rcuscale.ko] has no CRC!
WARNING: modpost: "__udelay" [kernel/rcu/refscale.ko] has no CRC!
WARNING: modpost: "__ndelay" [kernel/rcu/refscale.ko] has no CRC!
WARNING: modpost: "__udelay" [kernel/time/test_udelay.ko] has no CRC!
WARNING: modpost: "__udelay" [kernel/scftorture.ko] has no CRC!
WARNING: modpost: "__ashrdi3" [fs/quota/quota_tree.ko] has no CRC!
WARNING: modpost: "__ashldi3" [fs/ext4/ext4.ko] has no CRC!
...
I already tried to add the prototypes to asm/asm-prototypes.h - but this
did not have any effect.
Module.symvers extract:
0x00000000 empty_zero_page vmlinux EXPORT_SYMBOL
0xf7370f56 system_state vmlinux EXPORT_SYMBOL
0xbea5ff1e static_key_initialized vmlinux EXPORT_SYMBOL_GPL
0xc2e587d1 reset_devices vmlinux EXPORT_SYMBOL
0xba497f13 loops_per_jiffy vmlinux EXPORT_SYMBOL
0x05cb9b5c init_uts_ns vmlinux EXPORT_SYMBOL_GPL
0xa2b7a1de init_task vmlinux EXPORT_SYMBOL
0x00000000 __udelay vmlinux EXPORT_SYMBOL
0x00000000 __ndelay vmlinux EXPORT_SYMBOL
Any hints what to do to fix these warnings would be appreciated.
My motivation to fix them is to get rid of the noise while doing
allmodconfig builds.
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to avoid "version generation failed" warning?
2024-03-23 13:14 How to avoid "version generation failed" warning? Sam Ravnborg
@ 2024-03-23 15:03 ` Sam Ravnborg
0 siblings, 0 replies; 2+ messages in thread
From: Sam Ravnborg @ 2024-03-23 15:03 UTC (permalink / raw)
To: linux-kbuild
Hi all.
On Sat, Mar 23, 2024 at 02:14:07PM +0100, Sam Ravnborg wrote:
> Hi all.
>
> When building sparc32 allmodconfig I see a lot of warnings like these:
>
> WARNING: modpost: EXPORT symbol "empty_zero_page" [vmlinux] version generation failed, symbol will not be versioned.
> Is "empty_zero_page" prototyped in <asm/asm-prototypes.h>?
> WARNING: modpost: EXPORT symbol "__udelay" [vmlinux] version generation failed, symbol will not be versioned.
> Is "__udelay" prototyped in <asm/asm-prototypes.h>?
> WARNING: modpost: EXPORT symbol "__ndelay" [vmlinux] version generation failed, symbol will not be versioned.
> Is "__ndelay" prototyped in <asm/asm-prototypes.h>?
> WARNING: modpost: EXPORT symbol "__ashldi3" [vmlinux] version generation failed, symbol will not be versioned.
> Is "__ashldi3" prototyped in <asm/asm-prototypes.h>?
> WARNING: modpost: EXPORT symbol "__ashrdi3" [vmlinux] version generation failed, symbol will not be versioned.
> Is "__ashrdi3" prototyped in <asm/asm-prototypes.h>?
> WARNING: modpost: EXPORT symbol "__lshrdi3" [vmlinux] version generation failed, symbol will not be versioned.
> Is "__lshrdi3" prototyped in <asm/asm-prototypes.h>?
> WARNING: modpost: "__udelay" [kernel/locking/locktorture.ko] has no CRC!
> WARNING: modpost: "__udelay" [kernel/rcu/rcutorture.ko] has no CRC!
> WARNING: modpost: "__udelay" [kernel/rcu/rcuscale.ko] has no CRC!
> WARNING: modpost: "__udelay" [kernel/rcu/refscale.ko] has no CRC!
> WARNING: modpost: "__ndelay" [kernel/rcu/refscale.ko] has no CRC!
> WARNING: modpost: "__udelay" [kernel/time/test_udelay.ko] has no CRC!
> WARNING: modpost: "__udelay" [kernel/scftorture.ko] has no CRC!
> WARNING: modpost: "__ashrdi3" [fs/quota/quota_tree.ko] has no CRC!
> WARNING: modpost: "__ashldi3" [fs/ext4/ext4.ko] has no CRC!
> ...
>
> I already tried to add the prototypes to asm/asm-prototypes.h - but this
> did not have any effect.
When I triggered a re-build of the affected .S files it worked.
(I am used to kbuild handle all dependencies so well...)
Solution seems simple:
- Add missing includes and missing prototypes.
- Include the asm-prototypes in the relevant .S files to trigger rebuild
when the asm-prototype file changes.
I will prepare a patch and submit it to the sparc list.
Sam
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-03-23 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-23 13:14 How to avoid "version generation failed" warning? Sam Ravnborg
2024-03-23 15:03 ` Sam Ravnborg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.