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.
Unified · Split
| @@ -56,4 +56,7 @@ EOT · 55 unmodified lines | |||
| 56 | # point addresses. | 56 | # point addresses. |
| 57 | sed -e 's/^\.//' | | 57 | sed -e 's/^\.//' | |
| 58 | sort -u | | 58 | 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$' | | ||
| 59 | sed -e 's/\(.*\)/#define __KSYM_\1 1/' >> "$output_file" | 62 | sed -e 's/\(.*\)/#define __KSYM_\1 1/' >> "$output_file" |