From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932734AbeCPCYf (ORCPT ); Thu, 15 Mar 2018 22:24:35 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:35679 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752244AbeCPCYe (ORCPT ); Thu, 15 Mar 2018 22:24:34 -0400 X-Google-Smtp-Source: AG47ELsRQUB7IEIPfponno4T1tYaAXrr+gBUXgwaGg9c9i/rR2Za01BbdDUU170ETs/uOdfM4WOK6g== Date: Thu, 15 Mar 2018 22:24:32 -0400 (EDT) From: Nicolas Pitre To: Masahiro Yamada cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/7] kbuild: remove wrong 'touch' in adjust_autoksyms.sh In-Reply-To: <1521166725-24157-3-git-send-email-yamada.masahiro@socionext.com> Message-ID: References: <1521166725-24157-1-git-send-email-yamada.masahiro@socionext.com> <1521166725-24157-3-git-send-email-yamada.masahiro@socionext.com> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 16 Mar 2018, Masahiro Yamada wrote: > 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 > --- > > Changes in v2: > - Remove the code instead of fixing it > > scripts/adjust_autoksyms.sh | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/scripts/adjust_autoksyms.sh b/scripts/adjust_autoksyms.sh > index a162258..e0dd0d5 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 > -- > 2.7.4 > >