Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6538476pxu; Thu, 24 Dec 2020 05:15:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXFTBZ2ppBAmSizu8eWR0T7FSX/DRGr5L/TyBRyBcnni6XjTFVemqE/52eqxJce1Pt8XNY X-Received: by 2002:a17:906:410e:: with SMTP id j14mr28157308ejk.253.1608815737638; Thu, 24 Dec 2020 05:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608815737; cv=none; d=google.com; s=arc-20160816; b=PsY27G8U5iVnPNNj+/qH4KngNmK6hyShTwD+6mI7y+7RXHwV30sB09KzjNONkx3Jij Z1xapORsm0O/e2L0JOqneovgMgQduxKjv9YPL44cqFKuQLFgsMLbz68CjlLMgk13Hvqm v5uIYmXUuzvc13qnyzv/LqSyalRhCwQ4ZXsvP8kA05KOCaItMFujui88ShzMISrQTDiI 924g1RXl8OQljRuOZLjqE35GA96JEaLw2xno71xiWmUsu4iUPveo6+CpwnG/tkVJ1zPP hGEsDbos09GVky/oQX65gxTVrMHgLqo/5kmMPyX3dcui+GUadblV4l6DTIDt3ekl+xE6 UXuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=blF7XQ9nnmZAa6HTNMtifWtcvLyzJe/gSc4tJHlgdcE=; b=AB6EXTcAwpkZ4SRGNqruX8ahYHDban+YXD4RIracCHdOcHdR1hOvDLSrw6HLQhN1yI MacJn5Xmfi4I6zF5xBnDLEICqCPcovlR3cAJQXj7Atny864lWNvdIhkUJLg8z9BDExmY 5poenUCrXCBXxlONG9cglB45S2g6TmsJ/mB+PgMNChnIbhej0ayT7X7d6fmgd/fvVrYs qNQ231mhL1AsNAkAkjXsLdybbPWwSsSIQGOBrIGTIay1/gzEZIQGXdVki6iMY16ecrV7 OPnwJUiYAtEJLIBoaHTxSJG/TT5r1N2vxQx0baxzddo+Yb5wFbppyJI+zcbaSoDKXYnk ZPPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RJurApUP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si14996932edg.55.2020.12.24.05.15.15; Thu, 24 Dec 2020 05:15:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RJurApUP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728762AbgLXNNN (ORCPT + 99 others); Thu, 24 Dec 2020 08:13:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:45380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728033AbgLXNNM (ORCPT ); Thu, 24 Dec 2020 08:13:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 717EA22287; Thu, 24 Dec 2020 13:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608815551; bh=wZSUMjWJQbOHjVbsHANA5eOCKDCLkNM7NT0tcxPNeHg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RJurApUPRZAJfoHeepGJ8D1MKD/isTWyL6APu2pGUAEuM34tRL1sCINaV+7Hddszw mXNe0nEDwEVd87xYhHdT7Kf1G/gv5BgLRKGsHXMK0t4D7iTg0QZZcBCOv4EaN/dskX z4MgvIhedhUvsdf0J4ax0injf4ljcCwNrNciGhI2kzDGHmVZldsl4BNI7Yiv3nZZQ3 UjbMm/vQgY2KQ4BoNSXsmPVtx1EOqSQklOcgKjQYdcmwgUU2Upv9olq+R8f1Q0TOZB CQtZIaJlYsAXd3qttZDnyaQbL6VtexBcrvxBYHxf7WbqT/lvkzQvPmLMI8cNbc92uk d+gqn+dy/dMPw== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 2834E411E9; Thu, 24 Dec 2020 10:12:45 -0300 (-03) Date: Thu, 24 Dec 2020 10:12:45 -0300 From: Arnaldo Carvalho de Melo To: Tian Tao Cc: peterz@infradead.org, mingo@redhat.com, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf build: remove -Wnested-externs Message-ID: <20201224131245.GD477817@kernel.org> References: <1608812646-23489-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1608812646-23489-1-git-send-email-tiantao6@hisilicon.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Thu, Dec 24, 2020 at 08:24:06PM +0800, Tian Tao escreveu: > since commit c93e4aeed1be > ("Makefile.extrawarn: remove -Wnested-externs warning") > has removed this check, so it's not needed here. But the above commit is for the kernel, scripts/Makefile.extrawarn isn't included in tools/perf/ This is the one used: [acme@five perf]$ grep nested-externs tools/scripts/Makefile.include EXTRA_WARNINGS += -Wnested-externs [acme@five perf]$ But since you're looking at this, you could consider adding tools/scripts/Makefile.extrawarn out of tools/scripts/Makefile.include, etc, to better mimic what is in the kernel sources :-) Thanks, - Arnaldo > Signed-off-by: Tian Tao > --- > tools/perf/Makefile.config | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config > index ce8516e..b9e8634 100644 > --- a/tools/perf/Makefile.config > +++ b/tools/perf/Makefile.config > @@ -16,7 +16,7 @@ $(shell printf "" > $(OUTPUT).config-detected) > detected = $(shell echo "$(1)=y" >> $(OUTPUT).config-detected) > detected_var = $(shell echo "$(1)=$($(1))" >> $(OUTPUT).config-detected) > > -CFLAGS := $(EXTRA_CFLAGS) $(filter-out -Wnested-externs,$(EXTRA_WARNINGS)) > +CFLAGS := $(EXTRA_CFLAGS) $(EXTRA_WARNINGS) > > include $(srctree)/tools/scripts/Makefile.arch > > -- > 2.7.4 > -- - Arnaldo