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
56# point addresses.56# point addresses.
57sed -e 's/^\.//' |57sed -e 's/^\.//' |
58sort -u |58sort -u |
59# Ignore __this_module. It's not an exported symbol, and will be resolved
60# when the final .ko's are linked.
61grep -v '^__this_module$' |
59sed -e 's/\(.*\)/#define __KSYM_\1 1/' >> "$output_file"62sed -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