Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1912318ioo; Fri, 27 May 2022 22:47:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy6dBc//iKdUM9wESWIYIt0jtvr0+ktMuxKxpjxn/eLTBZORIhHRojunuLefdvPL2FUD4t X-Received: by 2002:a17:90b:4b88:b0:1e0:b38c:21f6 with SMTP id lr8-20020a17090b4b8800b001e0b38c21f6mr11944040pjb.109.1653716822409; Fri, 27 May 2022 22:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653716822; cv=none; d=google.com; s=arc-20160816; b=it/pSXhxeBUn8i8X2JTvZ8YwVYqhZQypPgH+C0TEnrx7K3ObWsjWF3X9VSa8BgcnAL 6w9r6Cl7egItFgDPFUVxr2dEdk/TRj/d5fPIAD+DvdtEpQCj5btOCPg3qmLuNIYdUTdu du5ipRjTetZfeqQZJ2o4TIN3vwwhY9HQS08ATd0Loylve90oC0JcV/bM2pfkPEUMRrZ1 LFzSht3tUeOdYle31K4gwZNKhMKv++IH2f1pdUyARnFMg+IaAfu62zjpT0H+9cU31YUF uDdRzwft1uuQ8uXb/98BSICgXRPPoiWPHcqB7m/LdqXhhTZNtk7ErZqiEct7rqg70gdd BL9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=nlb3I/G/aw3U2ecDcTKzYaw7pxT6S0mlrrovHTR3c6g=; b=yTYlNfva5WJSruKq51V8jXx9ASZRl1OepellZk4vc+yd+BdT7mJp4eauDdUeVTh0ah FUZ2ziCgACNF9sCSOifHsvwMu9H6IMxrJbBZTyMFZivUb1BvZl7KVR9rIWylaUrVBY31 ZUVKGC/1QhXrRfyN02rf8saHU+SfSJK+wWR7qeNQ1JbdDefncsMNZCxYHFHnAjo5+l6h n4FHGQcPCrNHH+V04IxP+047sNcO221lSu254+qHqlcY7fHfTHYNpXqIarANcH+UXTa/ NMxRr+JsiT1+9H28CcRdJzGjg6uzkLPKPaAbdGkiDVOlwt4uiNBklDvfDdNM//VwVLNl NB0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=AN6nJ7zz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb14-20020a17090b35ce00b001e299f85017si1800726pjb.63.2022.05.27.22.46.28; Fri, 27 May 2022 22:47:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=AN6nJ7zz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353642AbiE0PcP (ORCPT + 99 others); Fri, 27 May 2022 11:32:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345156AbiE0PcN (ORCPT ); Fri, 27 May 2022 11:32:13 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B6603135C; Fri, 27 May 2022 08:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1653665522; bh=fN1wYZy3lHxIJiNwWgRP1ApjPFsbIYaTQuKvY28Zwt8=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=AN6nJ7zzaYBcXaLAQn7DQST8hK/gMUZGb+pwpGVk70Zo+/TX7Dno+ZKZmxsEhsvhN pDFZcWzRc80QyCdCuC/tvFGIk2yCoxaMQ00j3OD/Nn3732xcMJCEkodjZ1hLbgWE7Z xnrDSaMATKBC+NVI56uCqeGzOE42hnMLom7STQZw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.153.1]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N63Ra-1njNXd46fI-016Nlv; Fri, 27 May 2022 17:32:02 +0200 Message-ID: <133bcb8b-2321-6acb-ea2d-3ab82af19dcb@gmx.de> Date: Fri, 27 May 2022 17:31:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] parisc: fix the exit status of arch/parisc/nm Content-Language: en-US To: Masahiro Yamada , linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, "James E.J. Bottomley" References: <20220527143931.2161635-1-masahiroy@kernel.org> From: Helge Deller In-Reply-To: <20220527143931.2161635-1-masahiroy@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:FLBQI4ghatwHNirJ8c0Hby2zOE78Lnu4VoJ2Xenyuztgzjr8bxU TnDBQBM/CktMZ8AunH+0IrDHra912U6C3a0OUK83i85XquC671hMIz/ccwjgA/E1yZZYH8+ RNU0nqgEXm2TFcZZ+CRLtTfyT5nn5LIKZqpFGc+InD3lIgkvhZ5Cp2xsX8/LTIVLZs9C+VO eHmmEebiLQeu2lDN7XUeQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:yP2dvxbRDes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2dc/HCoUR3OuTg/ZhCWdPluVGpWQc+OYJGbc6rSFl dJQ6w8++3H5ifna4h4YmlMrqkYonb5FQWtbvpmSWiSoWT2VEafuX4/YiA== X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/27/22 16:39, Masahiro Yamada wrote: > Parisc overrides 'nm' with a shell script. I was hit by a false-positive > error of $(NM) because this script returns the exit code of grep instead > of ${CROSS_COMPILE}nm. (grep exits with 1 if no lines were selected) > > I tried to fix it, but in the code review, Helge suggested to remove it > entirely. [1] > > This script was added in 2003. [2] > > Presumably, it was a workaround for old toolchains (but even the parisc > maintainer does not know the detail any more). > > Hopefully recent tools should work fine. > > [1]: https://lore.kernel.org/all/1c12cd26-d8aa-4498-f4c0-29478b9578fe@gm= x.de/ > [2]: https://git.kernel.org/pub/scm/linux/kernel/git/history/history.git= /commit/?id=3D36eaa6e4c0e0b6950136b956b72fd08155b92ca3 > > Suggested-by: Helge Deller > Signed-off-by: Masahiro Yamada Acked-by: Helge Deller Thank you! Helge > --- > > I want to apply this to kbuild tree with Helge's Ack > > arch/parisc/Makefile | 1 - > arch/parisc/nm | 6 ------ > 2 files changed, 7 deletions(-) > delete mode 100644 arch/parisc/nm > > diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile > index aca1710fd658..e38d993d87f2 100644 > --- a/arch/parisc/Makefile > +++ b/arch/parisc/Makefile > @@ -18,7 +18,6 @@ > boot :=3D arch/parisc/boot > KBUILD_IMAGE :=3D $(boot)/bzImage > > -NM =3D sh $(srctree)/arch/parisc/nm > CHECKFLAGS +=3D -D__hppa__=3D1 > > ifdef CONFIG_64BIT > diff --git a/arch/parisc/nm b/arch/parisc/nm > deleted file mode 100644 > index c788308de33f..000000000000 > --- a/arch/parisc/nm > +++ /dev/null > @@ -1,6 +0,0 @@ > -#!/bin/sh > -## > -# Hack to have an nm which removes the local symbols. We also rely > -# on this nm being hidden out of the ordinarily executable path > -## > -${CROSS_COMPILE}nm $* | grep -v '.LC*[0-9]*$'