Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp948328rwb; Fri, 28 Jul 2023 02:16:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlHTclkSLT6vuJve41aBA3lkyl5IyfcPYHsSYMU0RjIhAPTUWKUPkERRIAhtGz2ThzgXDUOO X-Received: by 2002:a17:906:73d8:b0:993:d5bd:a757 with SMTP id n24-20020a17090673d800b00993d5bda757mr2015950ejl.19.1690535806160; Fri, 28 Jul 2023 02:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690535806; cv=none; d=google.com; s=arc-20160816; b=oeusDdJ3JM732myw96ixtWD/0o2rE3VvQkebU3UbPdS1mRK90zLictSw4Moa9GEbg2 suCjI7vA5QgPQxgDmaPBXnmj/5hUGJeJJNraFCU7Cd8oi85pVdU5ofrVKRfmVYg3zqRo z7DrxSSsiqfXg0hX62XbOwCHA+Q6izNAUb7Q64zEwIYA24msrvuT/Fbv8VVS6doCA53R RRlSQnmRv8RvQeexjab4wBjvKZVIILQKwacCbHM+FLpo1l2T2q5eY436x4VnO3bNUJaE XuEgypmSoExZ0F7dDLq3BjILVaAzdWZWF5qrGnxm0rRSZbYl0z1hZVAnwvwbZShoD+/R P1tg== 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:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=zGreDCbWChWDv9/wf+BkvBmueXb+SRSG4dV0CMF+K6w=; fh=IV2eg7m2u5JQ7fqTLeIvC5s8kjpEmjr80Fgc1Cpu4Zk=; b=oFHGGnWHobJ+f/F6j00dkKcaeTTVgpQ+Lmlii6wzO4AqxNgtNAfYpXkqTmB5N6ce3y 4ovE+nHCq8mDnePM2p4cbqaErDr3UxTCptcmLfwlO0ck5y2Q3MbvcywsyIenAlEfvNiJ LflLmWrtX1W8yOEcDEZNO+H5W33ampDQNpExmlgYR91NwAjWQf07yifHqSddZ45sdNHA IVev5HN239oMVekGKoh0bpgRLl9Ur06pI/N3L2p6scicY6JMglo9H48phpv4WJGi+Td/ 8yI+1DT6Sq5WKeGeT5KqjGbZ+2/WTGjiSXPPBi26/wvSlo8tyVYFXNgsRrrMTt3u9zYK 1TMg== ARC-Authentication-Results: i=1; mx.google.com; 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=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb10-20020a170906edca00b00993116b01f9si2305806ejb.120.2023.07.28.02.16.20; Fri, 28 Jul 2023 02:16:46 -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; 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=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234646AbjG1Ix0 (ORCPT + 99 others); Fri, 28 Jul 2023 04:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235201AbjG1Iwu (ORCPT ); Fri, 28 Jul 2023 04:52:50 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA6CC2728; Fri, 28 Jul 2023 01:51:03 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC5852F4; Fri, 28 Jul 2023 01:51:46 -0700 (PDT) Received: from [10.57.0.116] (unknown [10.57.0.116]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A1BF53F67D; Fri, 28 Jul 2023 01:51:00 -0700 (PDT) Message-ID: Date: Fri, 28 Jul 2023 09:50:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 4/6] perf build: Disable fewer flex warnings Content-Language: en-US To: Ian Rogers References: <20230728064917.767761-1-irogers@google.com> <20230728064917.767761-5-irogers@google.com> Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , Kan Liang , Eduard Zingerman , Andrii Nakryiko , Gaosheng Cui , Rob Herring , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, llvm@lists.linux.dev From: James Clark In-Reply-To: <20230728064917.767761-5-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,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 28/07/2023 07:49, Ian Rogers wrote: > If flex is version 2.6.4, reduce the number of flex C warnings > disabled. Earlier flex versions have all C warnings disabled. Hi Ian, I get a build error with either this one or the bison warning change: $ make LLVM=1 -C tools/perf NO_BPF_SKEL=1 DEBUG=1 util/pmu-bison.c:855:9: error: variable 'perf_pmu_nerrs' set but not used [-Werror,-Wunused-but-set-variable] int yynerrs = 0; I tried a clean build which normally fixes these kind of bison errors. Let me know if you need any version info. James > > Signed-off-by: Ian Rogers > --- > tools/perf/util/Build | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) > > diff --git a/tools/perf/util/Build b/tools/perf/util/Build > index 96f4ea1d45c5..32239c4b0393 100644 > --- a/tools/perf/util/Build > +++ b/tools/perf/util/Build > @@ -279,13 +279,9 @@ $(OUTPUT)util/bpf-filter-bison.c $(OUTPUT)util/bpf-filter-bison.h: util/bpf-filt > $(Q)$(call echo-cmd,bison)$(BISON) -v $< -d $(PARSER_DEBUG_BISON) $(BISON_FILE_PREFIX_MAP) \ > -o $(OUTPUT)util/bpf-filter-bison.c -p perf_bpf_filter_ > > -FLEX_GE_26 := $(shell expr $(shell $(FLEX) --version | sed -e 's/flex \([0-9]\+\).\([0-9]\+\)/\1\2/g') \>\= 26) > -ifeq ($(FLEX_GE_26),1) > - flex_flags := -Wno-switch-enum -Wno-switch-default -Wno-unused-function -Wno-redundant-decls -Wno-sign-compare -Wno-unused-parameter -Wno-missing-prototypes -Wno-missing-declarations > - CC_HASNT_MISLEADING_INDENTATION := $(shell echo "int main(void) { return 0 }" | $(CC) -Werror -Wno-misleading-indentation -o /dev/null -xc - 2>&1 | grep -q -- -Wno-misleading-indentation ; echo $$?) > - ifeq ($(CC_HASNT_MISLEADING_INDENTATION), 1) > - flex_flags += -Wno-misleading-indentation > - endif > +FLEX_GE_264 := $(shell expr $(shell $(FLEX) --version | sed -e 's/flex \([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1\2\3/g') \>\= 264) > +ifeq ($(FLEX_GE_264),1) > + flex_flags := -Wno-redundant-decls -Wno-switch-default -Wno-unused-function > else > flex_flags := -w > endif