Skip to content

Commit ff13976

Browse files
samitolvanenmasahir0y
authored andcommitted
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 <[email protected]> Tested-by: Steve Muckle <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Tested-by: Ramji Jiyani <[email protected]>
1 parent 53632ba commit ff13976

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/gen_autoksyms.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,7 @@ EOT
5656
# point addresses.
5757
sed -e 's/^\.//' |
5858
sort -u |
59+
# Ignore __this_module. It's not an exported symbol, and will be resolved
60+
# when the final .ko's are linked.
61+
grep -v '^__this_module$' |
5962
sed -e 's/\(.*\)/#define __KSYM_\1 1/' >> "$output_file"

0 commit comments

Comments
 (0)