diff --git a/scripts/gen_autoksyms.sh b/scripts/gen_autoksyms.sh index faacf706212211435d0a189880b63225f7044cd7..653fadbad302f12e11258ecbf0b4625283eed74d 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"