linux-next: build warning after merge of the ntb tree
Subsystems (2)
Hi all,
After merging the ntb tree, today's linux-next build (x86_64 allmodconfig) produced this warning:
WARNING: could not open /home/sfr/next/next/drivers/ntb/ntb.c: No such file or directory
The only thing I could see that might be relevant is commit
56dce8121e97 ("kbuild: split out *.mod out of {single,multi}-used-m rules")
and some others in the kbuild tree. Nothing has changed recently in the ntb tree ...
drievrs/ntb builds a module called ntb but there is no ntb.c file.
Any ideas?
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 9 lines · Stephen Rothwell
Hi all,
After merging the ntb tree, today's linux-next build (
x86_64allmodconfig) produced this warning:WARNING: could not open
/home/sfr/next/next/drivers/ntb/ntb.c: No such file or directoryThe only thing I could see that might be relevant is commit
Quoted 8 lines
56dce8121e97("kbuild: split out *.mod out of {single,multi}-used-m rules")and some others in the kbuild tree. Nothing has changed recently in the ntb tree ...
drievrs/ntb builds a module called ntb but there is no
ntb.cfile.Any ideas?
I renamed the ntb.c file to core.c so we could add more files to build ntb.ko. See [1].
Thanks,
Logan
Hi Logan,
Quoted 3 lines · On Mon, 15 Jul 2019 21:46:42 -0600 Logan Gunthorpe <[email protected]> wrote:
I renamed the
ntb.cfile tocore.cso we could add more files to build ntb.ko. See [1].
But that was last changed in June, so I assume that some change to the build system has caused this warning to be produced now.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 10 lines · Stephen Rothwell
Hi all,
After merging the ntb tree, today's linux-next build (
x86_64allmodconfig) produced this warning:WARNING: could not open
/home/sfr/next/next/drivers/ntb/ntb.c: No such file or directoryThe only thing I could see that might be relevant is commit
Quoted 8 lines
56dce8121e97("kbuild: split out *.mod out of {single,multi}-used-m rules")and some others in the kbuild tree. Nothing has changed recently in the ntb tree ...
drievrs/ntb builds a module called ntb but there is no
ntb.cfile.Any ideas?
commit 0539f970a8427138026d4738a7a32d869f1be300
Author: Masahiro Yamada <[email protected]> Date: Thu Jul 11 14:44:31 2019 +0900
kbuild: create *.mod with full directory path and remove MODVERDIR
is the first bad commit.
drivers/ntb/core.c defines MODULE_VERSION().
When CONFIG_DEBUG_SECTION_MISMATCH=y, scripts/mod/sum.c tries to open the non-existing old source based on the stale *.mod file
during the directory descending.
I will kill cmd_secanalysis for tomorrow's linux-next.
Thanks for catching various bugs!
Signature · 2 lines
Best Regards Masahiro Yamada