diff options
| author | Masahiro Yamada <[email protected]> | 2024-12-12 15:46:15 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2024-12-21 03:42:10 +0000 |
| commit | 9435dc77a33fa20afec7cd35ceaae5f7f42dbbe2 (patch) | |
| tree | 5accec61e47581deaf44034f77d5be31e5eccf29 /scripts/mod/file2alias.c | |
| parent | kbuild: deb-pkg: Do not install maint scripts for arch 'um' (diff) | |
| download | kernel-9435dc77a33fa20afec7cd35ceaae5f7f42dbbe2.tar.gz kernel-9435dc77a33fa20afec7cd35ceaae5f7f42dbbe2.zip | |
modpost: distinguish same module paths from different dump files
Since commit 13b25489b6f8 ("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: 13b25489b6f8 ("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]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions
