From: Masahiro Yamada Date: Fri, 16 Mar 2018 07:37:10 +0000 (+0900) Subject: kbuild: remove wrong 'touch' in adjust_autoksyms.sh X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=baa16684b0eb4e590c7e0e65fff4d348c877bc4e;p=linux.git 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 and 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. Signed-off-by: Masahiro Yamada Acked-by: Nicolas Pitre --- diff --git a/scripts/adjust_autoksyms.sh b/scripts/adjust_autoksyms.sh index a162258ab6063..e0dd0d5148ecc 100755 --- a/scripts/adjust_autoksyms.sh +++ b/scripts/adjust_autoksyms.sh @@ -48,9 +48,6 @@ case "${KCONFIG_CONFIG}" in . "./${KCONFIG_CONFIG}" esac -# In case it doesn't exist yet... -if [ -e "$cur_ksyms_file" ]; then touch "$cur_ksyms_file"; fi - # Generate a new ksym list file with symbols needed by the current # set of modules. cat > "$new_ksyms_file" << EOT