diff options
author | Masahiro Yamada <[email protected]> | 2024-12-13 00:46:15 +0900 |
---|---|---|
committer | Masahiro Yamada <[email protected]> | 2024-12-21 12:42:10 +0900 |
commit | 9435dc77a33fa20afec7cd35ceaae5f7f42dbbe2 (patch) | |
tree | 5accec61e47581deaf44034f77d5be31e5eccf29 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 54956567a055345d17438f08c895c68aff3f4cf2 (diff) |
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 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions