diff options
author | Matthias Maennich <[email protected]> | 2019-09-06 11:32:28 +0100 |
---|---|---|
committer | Jessica Yu <[email protected]> | 2019-09-10 10:30:21 +0200 |
commit | cb9b55d21fe06ca5e4ba244bb5aac0afeb745c8e (patch) | |
tree | 43ee0d936c54f40075397eaad10e26298115d988 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 8651ec01daedad26290f76beeb4736f9d2da4b87 (diff) |
modpost: add support for symbol namespaces
Add support for symbols that are exported into namespaces. For that,
extract any namespace suffix from the symbol name. In addition, emit a
warning whenever a module refers to an exported symbol without
explicitly importing the namespace that it is defined in. This patch
consistently adds the namespace suffix to symbol names exported into
Module.symvers.
Example warning emitted by modpost in case of the above violation:
WARNING: module ums-usbat uses symbol usb_stor_resume from namespace
USB_STORAGE, but does not import it.
Co-developed-by: Martijn Coenen <[email protected]>
Signed-off-by: Martijn Coenen <[email protected]>
Reviewed-by: Joel Fernandes (Google) <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Matthias Maennich <[email protected]>
Signed-off-by: Jessica Yu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions