Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1341912ybb; Sat, 4 Apr 2020 01:45:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKfqSR8w/fjoOqfZejgx7YMnkTGHTjoPY5mj/qIRKhFxYw7dvRlGmCHOMwLjzel6QemrWsF X-Received: by 2002:aca:57d6:: with SMTP id l205mr5787904oib.20.1585989910665; Sat, 04 Apr 2020 01:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585989910; cv=none; d=google.com; s=arc-20160816; b=tvdiqYV3brz9R8DEeh1H4+lLPvXro0RHkGcT/Badh7my/oP1Kxr1mAhy3c2DXM2lgw vDaTrTt5hE9jlFwGsh4rqhorHWlYP/qZjd7VVBv0drhfBkIAJJKICeB/tqWtNIqWpt+S OfEEQGM3gSn0P2A6WvetcBmBtF3OVkuYt5DpjOgxu8Vjax/I0UCG4B6Z3Ztsz4+dK+LZ uq2yTAJsRgxRwsPmBWJfVNen4qv+Bo1HHJkitty1GurX2WvQtzUiB4iMMgfhGrT+sqqZ hE+v+v9J5kW/A4xefxjgv7e8ljjJhk+lEOiZ+5QFGZLgEqZ/8Z1c7fhTu255kh5yZT0B /j4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=VHfWv2hYt4LOr014mjakyUWiIR9RMp+1PpUZ9MjS8UY=; b=fC1brdnbJH0/rH96h2gPf0wsSwp7gAOcJy15S6aBjNClVjlOocXHrEoCkM9rDrOCK1 72r8YIdxp7fAzL9ndAP6jxUsG/kidhsqCLGc161IxCOpmiwZwrk5lQ/r2AB3xJi7JKOi Kb4mm765di/6MRcF+3fBku53VnGDVU1FV5eSNNfi2OYL0o2MhTPGWkvAdmGF+tbGTx1r plFKaIOgJaAvCFSQHww+hHngBC8mqebjKvb6NG2ymHFz4llZiRIT2t6FJR3qleyXXpXk Ord6h605hwqoe6TuS0szi80pXyKyVSP+4oELwHD6U2t0myqiWHrPDjjxRbYH2aSOIzJI 2neA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si2872601oix.264.2020.04.04.01.44.59; Sat, 04 Apr 2020 01:45:10 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726922AbgDDIoG (ORCPT + 99 others); Sat, 4 Apr 2020 04:44:06 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:41581 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726428AbgDDImE (ORCPT ); Sat, 4 Apr 2020 04:42:04 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jKeNH-00016A-QV; Sat, 04 Apr 2020 10:41:56 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 0C42C1C0493; Sat, 4 Apr 2020 10:41:52 +0200 (CEST) Date: Sat, 04 Apr 2020 08:41:51 -0000 From: "tip-bot2 for He Zhe" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/urgent] perf: Normalize gcc parameter when generating arch errno table Cc: He Zhe , Alexander Shishkin , Jiri Olsa , Mark Rutland , Namhyung Kim , Peter Zijlstra , Arnaldo Carvalho de Melo , x86 , LKML In-Reply-To: <1581618066-187262-2-git-send-email-zhe.he@windriver.com> References: <1581618066-187262-2-git-send-email-zhe.he@windriver.com> MIME-Version: 1.0 Message-ID: <158598971157.28353.2501769243855333551.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/urgent branch of tip: Commit-ID: e4ffd066ff440a57097e9140fa9e16ceef905de8 Gitweb: https://git.kernel.org/tip/e4ffd066ff440a57097e9140fa9e16ceef905de8 Author: He Zhe AuthorDate: Fri, 14 Feb 2020 02:21:06 +08:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Thu, 26 Mar 2020 11:04:01 -03:00 perf: Normalize gcc parameter when generating arch errno table The $(CC) passed to arch_errno_names.sh may include a series of parameters along with gcc itself. To avoid overwriting the following parameters of arch_errno_names.sh and break the build like below, we just pick up the first word of the $(CC). find: unknown predicate `-m64/arch' x86_64-wrs-linux-gcc: warning: '-x c' after last input file has no effect x86_64-wrs-linux-gcc: error: unrecognized command line option '-m64/include/uapi/asm-generic/errno.h' x86_64-wrs-linux-gcc: fatal error: no input files Signed-off-by: He Zhe Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lore.kernel.org/lkml/1581618066-187262-2-git-send-email-zhe.he@windriver.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.perf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index a02aca9..d15a311 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -574,7 +574,7 @@ arch_errno_hdr_dir := $(srctree)/tools arch_errno_tbl := $(srctree)/tools/perf/trace/beauty/arch_errno_names.sh $(arch_errno_name_array): $(arch_errno_tbl) - $(Q)$(SHELL) '$(arch_errno_tbl)' $(CC) $(arch_errno_hdr_dir) > $@ + $(Q)$(SHELL) '$(arch_errno_tbl)' $(firstword $(CC)) $(arch_errno_hdr_dir) > $@ sync_file_range_arrays := $(beauty_outdir)/sync_file_range_arrays.c sync_file_range_tbls := $(srctree)/tools/perf/trace/beauty/sync_file_range.sh