The comment mentions it creates autoksyms.h in case it is missing, but the actual code touches it when it does exists. The build system creates it anyway because <linux/export.h> and <asm-generic/export.h> need it. The code would not have worked as intended, and people have not noticed it. This is a proof that we can simply remove it.
Unified · Split
| @@ -48,9 +48,6 @@ case "${KCONFIG_CONFIG}" in · 47 unmodified lines | ||
| 48 | 48 | . "./${KCONFIG_CONFIG}" |
| 49 | 49 | esac |
| 50 | 50 | |
| 51 | −# In case it doesn't exist yet... | |
| 52 | −if [ -e "$cur_ksyms_file" ]; then touch "$cur_ksyms_file"; fi | |
| 53 | − | |
| 54 | 51 | # Generate a new ksym list file with symbols needed by the current |
| 55 | 52 | # set of modules. |
| 56 | 53 | cat > "$new_ksyms_file" << EOT |