History

kbuild: remove wrong 'touch' in adjust_autoksyms.sh

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.

Masahiro Yamada committed 8 years ago

Commit baa16681 parent ce99d0b1 file · +0 −3Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/adjust_autoksyms.sh+0−3
@@ -48,9 +48,6 @@ case "${KCONFIG_CONFIG}" in · 47 unmodified lines
4848 . "./${KCONFIG_CONFIG}"
4949 esac
5050
51−# In case it doesn't exist yet...
52−if [ -e "$cur_ksyms_file" ]; then touch "$cur_ksyms_file"; fi
53−
5451 # Generate a new ksym list file with symbols needed by the current
5552 # set of modules.
5653 cat > "$new_ksyms_file" << EOT