Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp827496ybc; Tue, 12 Nov 2019 09:47:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwRE2gork1pVd405QmA4Z5pbNN+OmWKL2MXnvz9AYco8UY0vbTZ3tzd8JQ8It9qycXMLE2N X-Received: by 2002:aa7:de92:: with SMTP id j18mr34691336edv.119.1573580831944; Tue, 12 Nov 2019 09:47:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573580831; cv=none; d=google.com; s=arc-20160816; b=QZhvI1IwKLkr4YjsN3wZpkfOffc2hOW4c8NuQ/O29T4Zf/qgxA3G1id0uqeowke8iW wmUWz9xuHv2L1Njvxsj4YhsrH0hcYD6FZvdwlCSr864hLkEXQwwjShqhvqo8ddsDJG6X lTbJvnbG2R34Un5vJTLEoAXBZx1TperKH0a3JWGd//Br/13mPjjgXEj/+XNWhaZ8mw9G 4BCvR5C3/YoTd4AQJK5bG3QPjOxOHHMW9xwq1XX1tXS/8Ufyho5tfTyQGG2IgypfQJWB z88Bn1D7CERj8+ks6wAKppiDcpbsouJ9+wSh/q/sVFKyvIQpZPp4qJApA0O5//B2v9IX pi4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=w7MsKAbnhTOI/PwrqDE4qAaT5Rd571pVr2jNCX1vMLU=; b=1F8zoIy60NknnFg1Hk7ImxDtR09SFMG/c4cRnITHNTnNSl5IsarB+SmACO7LlWv+TP NLdXmzZ194vEuuaugFhRTk07WeNDfOr1HP2cMC2iWCzmK4idywsPc+j/S3eq6Ab0oLsd KcpVr5LTNwFjQYnM70ccZjB3V6fjw2p82W3VrEIhUJ+vKR8pxi7oUbq9aiW24XO7ZMgj X0eKnez71mGXRRTIsIftsrqxQMSC3KEcuhUJKmnydM5Zs+VwfLmfRrz2tfLnfxFKk+36 uQnSj3OF0fmTGmJBDtMakOX3TrPxvUq91VMelrL+1jW09GvBL3Vo10NuMpqcMJmIHE5c DWsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cNd0enXk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x26si449504ejc.17.2019.11.12.09.46.47; Tue, 12 Nov 2019 09:47:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=cNd0enXk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727129AbfKLRnT (ORCPT + 99 others); Tue, 12 Nov 2019 12:43:19 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42089 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbfKLRnS (ORCPT ); Tue, 12 Nov 2019 12:43:18 -0500 Received: by mail-pg1-f195.google.com with SMTP id q17so12302690pgt.9 for ; Tue, 12 Nov 2019 09:43:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w7MsKAbnhTOI/PwrqDE4qAaT5Rd571pVr2jNCX1vMLU=; b=cNd0enXkHOlBT1RG/B0zjwD+dSmow8c5nRzzi8wByRqtyyGRqlP/90puPVUHT2bUvK mQbcgkMcKJEggwR6BNgwUe1k3iHRcU9Nv+09wp+5mSHD85bbCwFpPmC1Bq/N6KycgvLc ktBjH+xZqmnKF96hvkiWDDnKXCucxoU7OZ2iPuTzsZieGoXXvmVO8nkdSVmcKoQ0Sag5 1wb5p1gG2njNuZjWDs23kq4PuD0d3VD2P6xrsZEftYQbFuKC9dq5RM4h98lnbR6yHj+6 V3hTuXYKq51KvsQAjJmhlCEiu8IU0QIfTP+HvBkhjozUwwD6bX/8o2pKUCVaRPm4q9kZ e6Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w7MsKAbnhTOI/PwrqDE4qAaT5Rd571pVr2jNCX1vMLU=; b=A0ygOng5SveYuwvLcXdrtNK0szAH5VKADpjJ8/j6N21EHFYuAcY23UDCALbxD+h9Uj jTurzHydjbGpH2Pyg2VQWLQmOdyt+7SD/FjoZZJM4HN/sD+/d92wi+32fM1UNCa7H4hD Ns7iUIFuLzQNjw3ktGK3PGTfDhZvukJf9wlUaCTvZV5lMLuP+KMp5VRrMQNs76ZLdfUd 96NBNawHKrhdf4qHeIdyh7sQ3cblBA5Fjdt5Z2/XsgJ/w2VOLdNf4om6jq6GfZ6Paj5i X5lCqkiuE6v09EK/Zz7clraPUFIvOSTtuL0yBejLzXYHHc38/kCndxmlMPZfeLyyLrmc +bOA== X-Gm-Message-State: APjAAAU+LeN/CDmqMzXRpPXd2UgXn1g1svt+8CCxfvUcoEU4zXZ+Zpry N7FRjA9sskrJApTZXDHR7/z9aEi7jpmQr/etkM953g== X-Received: by 2002:a63:5a03:: with SMTP id o3mr36165069pgb.381.1573580597463; Tue, 12 Nov 2019 09:43:17 -0800 (PST) MIME-Version: 1.0 References: <20191110153043.111710-1-dima@golovin.in> In-Reply-To: <20191110153043.111710-1-dima@golovin.in> From: Nick Desaulniers Date: Tue, 12 Nov 2019 09:43:05 -0800 Message-ID: Subject: Re: [PATCH] ARM: kbuild: use correct nm executable To: Dmitry Golovin Cc: Matthias Maennich , Russell King , Nicolas Pitre , Ard Biesheuvel , Stefan Agner , Masahiro Yamada , Nathan Chancellor , Linux ARM , LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 10, 2019 at 7:31 AM Dmitry Golovin wrote: > > Since $(NM) variable can be easily overridden for the whole build, it's > better to use it instead of $(CROSS_COMPILE)nm. The use of $(CROSS_COMPILE) > prefixed variables where their calculated equivalents can be used is > incorrect. This fixes issues with builds where $(NM) is set to llvm-nm. > > Link: https://github.com/ClangBuiltLinux/linux/issues/766 > Signed-off-by: Dmitry Golovin > Suggested-by: Nick Desaulniers > Cc: Matthias Maennich Thanks for the patch Dima. Reviewed-by: Nick Desaulniers You should wait a week from when you first sent this patch, then submit it to rmk's patch queue: https://www.armlinux.org.uk/developer/patches/section.php?section=0 You should create an account there. On https://www.armlinux.org.uk/developer/patches/add.php, Summary -> first line from commit Kernel version -> base repo you wrote the patch against, see examples https://www.armlinux.org.uk/developer/patches/section.php?section=0 Patch notes -> rest of commit body (with all these reviewed by tags added) More info: https://www.armlinux.org.uk/developer/ > --- > arch/arm/boot/compressed/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile > index 9219389bbe61..a1e883c5e5c4 100644 > --- a/arch/arm/boot/compressed/Makefile > +++ b/arch/arm/boot/compressed/Makefile > @@ -121,7 +121,7 @@ ccflags-y := -fpic $(call cc-option,-mno-single-pic-base,) -fno-builtin -I$(obj) > asflags-y := -DZIMAGE > > # Supply kernel BSS size to the decompressor via a linker symbol. > -KBSS_SZ = $(shell echo $$(($$($(CROSS_COMPILE)nm $(obj)/../../../../vmlinux | \ > +KBSS_SZ = $(shell echo $$(($$($(NM) $(obj)/../../../../vmlinux | \ > sed -n -e 's/^\([^ ]*\) [AB] __bss_start$$/-0x\1/p' \ > -e 's/^\([^ ]*\) [AB] __bss_stop$$/+0x\1/p') )) ) > LDFLAGS_vmlinux = --defsym _kernel_bss_size=$(KBSS_SZ) > @@ -165,7 +165,7 @@ $(obj)/bswapsdi2.S: $(srctree)/arch/$(SRCARCH)/lib/bswapsdi2.S > # The .data section is already discarded by the linker script so no need > # to bother about it here. > check_for_bad_syms = \ > -bad_syms=$$($(CROSS_COMPILE)nm $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \ > +bad_syms=$$($(NM) $@ | sed -n 's/^.\{8\} [bc] \(.*\)/\1/p') && \ > [ -z "$$bad_syms" ] || \ > ( echo "following symbols must have non local/private scope:" >&2; \ > echo "$$bad_syms" >&2; false ) > -- > 2.23.0 > -- Thanks, ~Nick Desaulniers