Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp864075rwb; Fri, 28 Jul 2023 00:32:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlE6ZvhMT+TBqi2ABLpjd1AlAaYJ0RjHrsQORRDDh6LIMkQcvo5f12/4MKvpU+LnOlFIJ9gB X-Received: by 2002:a05:6a00:2d07:b0:686:5e0d:bd4f with SMTP id fa7-20020a056a002d0700b006865e0dbd4fmr1044938pfb.0.1690529524030; Fri, 28 Jul 2023 00:32:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690529524; cv=none; d=google.com; s=arc-20160816; b=v4sGZn+stjaOsck1sV+UWfcGxooILhOfvd9W0EwBHWRuxKv6oE/aSbah0Io6H+VFol dEO0UDokfYa7RhHZQfY4cuRQlKrS40EY2CSXyTQ42p2Vut7UGhE2s/RVRugnN7paBYhL DZpicxex22/ugMUHMwVsx3omGLb1U0AO6kCaPn5oECMJO22qR7DU7E3SPhFvGDQhyZxK 9qRgV3Kpy776S25TRejEyVF51t8NXbPk/Ybgmx9AUl2EfeMJegW+1i7gJopFD4bVreue A8h8A6IVbSwWOAoitItTr+gatZRH4JVNwz5XW5nuXK7NymKpLi1eoI66Kb/4FPiULaUk Pt/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=yvpEokk/Mu+ZE+CJyBkDreLaqziwX68WuK1LqhXECqc=; fh=AR39VCoLgN4ugVEXyHpHAllbgzR9AE0gjQCmVObZNbM=; b=BAaXianR1O6eQ0jKam/KytZpapC0bWfTlQ0mgYc5Dd5g3UlPsDPbLwFkRJ6tkWLjv4 TDoUZmJXKH6EfWt7+K6frhOk9i1zM0tg3291cf+yN+5LuILxDZgVxGVQSo7SvduxmBz7 29p/66sBdfLad/9xOJg+v94av7RY5UKJroZ0JeJwro77p9pUieD6XIKjFIy1V7TCEeI3 mQlcNafq/qq0o6rOOfqmamHGtQuxDZk0dRoezmQLCRGA9OOiTJr5A3/WfeWmH5KnYRSG VOVfD8XONvJ0mYZfWflD39D2q+YNKujW+sJ/lTyqj8QOQTx/N9svOB2U1lDk5PJ3tT0d MQrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=hVmuTBJ1; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a056a00158300b00676cd4f7c1esi530773pfk.390.2023.07.28.00.31.50; Fri, 28 Jul 2023 00:32:03 -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=@google.com header.s=20221208 header.b=hVmuTBJ1; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232939AbjG1GuP (ORCPT + 99 others); Fri, 28 Jul 2023 02:50:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233618AbjG1GuA (ORCPT ); Fri, 28 Jul 2023 02:50:00 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E3453AA0 for ; Thu, 27 Jul 2023 23:49:52 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d27ac992539so366172276.3 for ; Thu, 27 Jul 2023 23:49:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690526991; x=1691131791; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=yvpEokk/Mu+ZE+CJyBkDreLaqziwX68WuK1LqhXECqc=; b=hVmuTBJ1Yox9HBREo2lnQL3+qmpioV9r5UsFkBpcTMWs9ujPbivpL62+ixWzmxYbld 2oj5+aaUkdI7MiXvfOBbiXL6vzkchIAT7sgf/1xEqv1qyiVTkUXz46qqAzkz8YE7IjAc a7dAw3ZtkKE0Hdi0zukSamMUV+hxfnGCH1q0cA12gs0ILJz3moGg3LylCmSfm5vhIZ0H 1nxyLuWhnWNjY6730d+R+507i6pKyHJOqb1BFoQMRvynVEhaUkfZy+JvYJdFIeA3lhV3 fjl0oWJqm5kdcfw2zmcGWXuqcb300wHWC8naQmdWY1IonPToG6OaTflMjrpM9bqM63Bd F1/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690526991; x=1691131791; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yvpEokk/Mu+ZE+CJyBkDreLaqziwX68WuK1LqhXECqc=; b=JBnibWSYFpXAjdLbffNsT70ZBRQSt1hFZWuxa0JbXiBlZILd5YP5fMfpKBKlEGskXK 9oPyVzDD6dYtiFPcTCZPGcGmi82LShWT14sKVH4fEEL2I6jfpVNrKr+pVCPDueAn+xq/ P/h7S5NQwB9EqwyMtmanvcl0ESHBOCcuDJMWNU3f0qeCGBRMxXAOuTUEKVLh2WfJZGe2 ecrKDMeI/KvJY6gFiMBix+a34e5QlrTYo14P+xSfJimy+GjtpjHes0gQwbIaWBQ+fNCd K1TVO0vqW5oWx7cCi/yZkC0pL7D2cAAR1FL+CfaDRUSNgec8IotrENEbxE40auIyep0B ohpQ== X-Gm-Message-State: ABy/qLacD8pmGlhpFS2TSEqjuEm5GeZKI2AeLnvIfUg8wNVotapnWBp4 JSY78gUBptr6sIaLUD2xwT1JhWvMK37G X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:3d03:ff18:af30:2dad]) (user=irogers job=sendgmr) by 2002:a25:2311:0:b0:d0c:e71d:fab with SMTP id j17-20020a252311000000b00d0ce71d0fabmr5532ybj.0.1690526991697; Thu, 27 Jul 2023 23:49:51 -0700 (PDT) Date: Thu, 27 Jul 2023 23:49:15 -0700 In-Reply-To: <20230728064917.767761-1-irogers@google.com> Message-Id: <20230728064917.767761-5-irogers@google.com> Mime-Version: 1.0 References: <20230728064917.767761-1-irogers@google.com> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Subject: [PATCH v1 4/6] perf build: Disable fewer flex warnings From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable 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 If flex is version 2.6.4, reduce the number of flex C warnings disabled. Earlier flex versions have all C warnings disabled. 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 -- 2.41.0.487.g6d72f3e995-goog