Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2200294rwb; Thu, 29 Sep 2022 07:22:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Hvd3c8tPh25po0Um7Fpb+UtZAPlqbyER/NgkF5qpCZUZAmTNnQeDzEGanEqFPyk+tcbqH X-Received: by 2002:aa7:db58:0:b0:457:30ce:bcaa with SMTP id n24-20020aa7db58000000b0045730cebcaamr3682199edt.20.1664461372185; Thu, 29 Sep 2022 07:22:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664461372; cv=none; d=google.com; s=arc-20160816; b=a0zxaGJHCItLNEbJ+1vpxC+pr/FzRtDjJSV610JU47QNsNh/c+L3jvvmk5kIUuObUu b3DQFgf/z/MUF7xFlRs3wG7ruJghJyJmTQtWwVu+26Z6xOKsMxTZt9lQsW1guylFGdku wvzWmVTjFbC+mCs/cQFv/0jkeqiKPNfBlThVzFKeG53knpVLWMfbu0lTAGvkrOsmeEHJ fqqlJkJAc/HDC5FllOghpVxu1nlal0ESaSbh5d9fe8HaxETjKUp5zyrRG9dlFdarXRAN ehPygVkXrgLoKBsEIs2NAdlx9atkIMuxHV9yTGZmdF5G7V8IMI1B2B0lZPHmYSYh/waI jDEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=cVKrM2WNMylTVjNXXag0sFBu64tyFdLVi2IZ/MiW5GQ=; b=L5ymEMue7iwLyVb49nA21p2RO7q1rQYFtBnl43KGC/88byI/f9XKYHLBx0pu0yDVng UwPMt4bHeNIcgWjwVJCrQXOp41A3aI5N/TAXQ/R50skgm0iWiDUQU/u0okrn+cQB8Ikb u1+5o15w4gxDMPQ1/pnqcs7xpQ5c57+E7avPuI1BVDQBWrWbd3DtAc1veXMJEnnuFcyD VVizgeIsFTe6r5HPm8wWrRhJT7SS6aXb8ofvIDJvh5F7SPMnKtReu7Azy2R+o2+xMjS4 fDJ7zxpHlfPuSMfNn9c+ADkD+rtSldwRepPDlz5VwwYYrTUlzbQiuRJBSKArt1pUWVZo 3DDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oZm1wCR7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv13-20020a17090760cd00b0077c2e4f3c39si7608621ejc.26.2022.09.29.07.22.25; Thu, 29 Sep 2022 07:22:52 -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=@kernel.org header.s=k20201202 header.b=oZm1wCR7; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230349AbiI2OFd (ORCPT + 99 others); Thu, 29 Sep 2022 10:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235535AbiI2OF0 (ORCPT ); Thu, 29 Sep 2022 10:05:26 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A881FF8C28; Thu, 29 Sep 2022 07:05:23 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E6C42B824A1; Thu, 29 Sep 2022 14:05:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C743EC433C1; Thu, 29 Sep 2022 14:05:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664460320; bh=Q4jJh5UBgm14/k0p0SQTp+6cg7BoIH9gQ1RlsvJZTlc=; h=From:To:Cc:Subject:Date:From; b=oZm1wCR7PN6MFLGVGZzCgYKo5/tKwNxb3kg4hfADgT5SIn/M9+cujiOYS6Bo3PgY8 6y0pUWNE6QKat2e9II7NBVmXVB9qOPolpDpAEKuHo3m8IvpzZkoBwZXfs5XOnNm/yB f/0P5qty6w20T7yayYD+L2CjMlDk4LMEt5OvEKIhtE9G1ZOaDZWQrfA0K3cRRDYIxO XZcMtJgG7+0EQPiYp1SRxqqVeTMYZyPiLHXcj5ticIXJg98wY6UrKWWf0bvDHrjd6o /CeP70tkxn3MYTzNGX8iZzm66ZDF0bUTwVEWEdzRohBjXVi7Lanyf37+uq3jesGC/c dKjvDaG/gWiGQ== From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: lkml , Peter Zijlstra , Ingo Molnar , Mark Rutland , Namhyung Kim , Alexander Shishkin , Ian Rogers , linux-perf-users@vger.kernel.org Subject: [PATCH 1/2] perf tools: Fix bison object compilation with clang 15 Date: Thu, 29 Sep 2022 16:05:13 +0200 Message-Id: <20220929140514.226807-1-jolsa@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Arnaldo reported compilation fail with clang 15: CC util/parse-events-bison.o util/parse-events-bison.c:1401:9: error: variable 'parse_events_nerrs' set but not used [-Werror,-Wunused-but-set-variable] int yynerrs = 0; ^ util/parse-events-bison.c:72:25: note: expanded from macro 'yynerrs' #define yynerrs parse_events_nerrs ^ 1 error generated. Disabling -Wunused-but-set-variable check for bison object compilation. Signed-off-by: Jiri Olsa --- tools/perf/util/Build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/Build b/tools/perf/util/Build index 8fd6dc8de521..d559c80559e3 100644 --- a/tools/perf/util/Build +++ b/tools/perf/util/Build @@ -270,7 +270,7 @@ CFLAGS_expr-flex.o += $(flex_flags) bison_flags := -DYYENABLE_NLS=0 BISON_GE_35 := $(shell expr $(shell $(BISON) --version | grep bison | sed -e 's/.\+ \([0-9]\+\).\([0-9]\+\)/\1\2/g') \>\= 35) ifeq ($(BISON_GE_35),1) - bison_flags += -Wno-unused-parameter -Wno-nested-externs -Wno-implicit-function-declaration -Wno-switch-enum + bison_flags += -Wno-unused-parameter -Wno-nested-externs -Wno-implicit-function-declaration -Wno-switch-enum -Wno-unused-but-set-variable else bison_flags += -w endif -- 2.37.3