mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
Since commit13b25489b6("kbuild: change working directory to external module directory with M="), module paths are always relative to the top of the external module tree. The module paths recorded in Module.symvers are no longer globally unique when they are passed via KBUILD_EXTRA_SYMBOLS for building other external modules, which may result in false-positive "exported twice" errors. Such errors should not occur because external modules should be able to override in-tree modules. To address this, record the dump file path in struct module and check it when searching for a module. Fixes:13b25489b6("kbuild: change working directory to external module directory with M=") Reported-by: Jon Hunter <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Masahiro Yamada <[email protected]> Tested-by: Jon Hunter <[email protected]>