diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2022-06-16 19:57:59 +0000 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-06-26 06:15:05 +0900 |
commit | ff139766764675b9df12bcbc8928a02149b7ba95 (patch) | |
tree | 7cc9f1dec4cb10f138cb6be88c618f2a6982c93d /scripts | |
parent | 53632ba87d9f302a8d97a11ec2f4f4eec7bb75ea (diff) | |
download | linux-rpi-ff139766764675b9df12bcbc8928a02149b7ba95.tar.gz linux-rpi-ff139766764675b9df12bcbc8928a02149b7ba95.tar.bz2 linux-rpi-ff139766764675b9df12bcbc8928a02149b7ba95.zip |
kbuild: Ignore __this_module in gen_autoksyms.sh
Module object files can contain an undefined reference to __this_module,
which isn't resolved until we link the final .ko. The kernel doesn't
export this symbol, so ignore it in gen_autoksyms.sh.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Tested-by: Steve Muckle <smuckle@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Ramji Jiyani <ramjiyani@google.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen_autoksyms.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gen_autoksyms.sh b/scripts/gen_autoksyms.sh index faacf7062122..653fadbad302 100755 --- a/scripts/gen_autoksyms.sh +++ b/scripts/gen_autoksyms.sh @@ -56,4 +56,7 @@ EOT # point addresses. sed -e 's/^\.//' | sort -u | +# Ignore __this_module. It's not an exported symbol, and will be resolved +# when the final .ko's are linked. +grep -v '^__this_module$' | sed -e 's/\(.*\)/#define __KSYM_\1 1/' >> "$output_file" |