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

Unified · Split

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