History

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.

Sami Tolvanen committed 4 years ago

Commit ff139761 parent 53632ba1 file · +3 −0Browse files

Unified · Split

scripts/gen_autoksyms.sh+3−0
@@ -56,4 +56,7 @@ EOT · 55 unmodified lines
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"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t