On Mon, Jun 14, 2021 at 01:51:09PM +0800, Lecopzer Chen wrote: > When building modules(CONFIG_...=m), I found some of module versions > are incorrect and set to 0. > This can be found in build log for first clean build which shows > > WARNING: EXPORT symbol "XXXX" [drivers/XXX/XXX.ko] version generation failed, symbol will not be versioned. I'm doing this, and I don't see the problem: $ make LLVM=1 LLVM_IAS=1 distclean $ make LLVM=1 LLVM_IAS=1 menuconfig *enable LTO* *enable a module* $ make LLVM=1 LLVM_IAS=1 -j... What series of commands (and .config) shows this for you? -- Kees Cook