Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp851373rwb; Fri, 28 Jul 2023 00:15:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlE+cF/IZfKwIM/niOZNtKHAG/z3JEdRlxzLYk1IhIJ8pwMMrrylJuy4S2b64UoRKdlEyn9u X-Received: by 2002:a05:6a00:ad4:b0:681:c372:5aa4 with SMTP id c20-20020a056a000ad400b00681c3725aa4mr1355169pfl.27.1690528539557; Fri, 28 Jul 2023 00:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690528539; cv=none; d=google.com; s=arc-20160816; b=eFWYhpPlguAtJca+sGzBC99rksICm564FPBP0L8YAakPV5oYBKtEAO6O0mNpdkRGQM NFc+hL8tX1PWmdRBu5y78A5xLV4uFalNEniVHMcJGd/9E2fFtjUgF1xjxrFG8XSpVK6s 2cswjmXMd2VJdhmKtERpgEzj1LeB3wNrOG+78HBgGEpITTPVmwYVhtlx1aE+OSzLvcsT SydHV10TEemZVJ/+spd61N1icQC1wkT8VeGqLpj8/s13u1xkWxWsAu52dzOiKlRpXD9/ /vrOoNEDtdOy+zDqERZCkejF5kZp/5UiGdsHjYAruUGryWkTCHBrNi+hRRPeLJfgnbVR DhUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:mime-version:message-id:date :dkim-signature; bh=JSRNyTgH2RQM+IopPYAVHpRofqMWho9ANhQe7NRcfyI=; fh=AR39VCoLgN4ugVEXyHpHAllbgzR9AE0gjQCmVObZNbM=; b=BH82DPexfY32Kp2I5voE8iaLkhu/PdXDtqXvtp/SKCswTpfph7XYU6cMFurF/IwRyL sIOc2vvp76V0M9ZGrEKFvZjL5HsctEWwbXgWCKoVUB5QZ1ECl5xP+EIew1btx8XUxD+f 4MalgD5c6Mps+ns+DTUMxsibphYDWpADEHBdrkpMF4MG0FeYLHdHTZxhR1rqBufYcVj0 7XaxpCzt5mi5wXxkaeHq/KEYSlrMdYrmnZn5J7iicLv9Wq61Xzx3FnHAdzWOs+P4NARP Yfj+KhNV8cOcCFrcxalVmOXUx0BFDjgjog5yRl4NO5uA3o3h42ytIgAicOljwHop4Jnu b22Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=nRXi1Z1x; 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 d15-20020a056a00244f00b00686dff503e4si2776679pfj.97.2023.07.28.00.15.27; Fri, 28 Jul 2023 00:15:39 -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=nRXi1Z1x; 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 S233342AbjG1Gtr (ORCPT + 99 others); Fri, 28 Jul 2023 02:49:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233157AbjG1Gtq (ORCPT ); Fri, 28 Jul 2023 02:49:46 -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 6D5AA3598 for ; Thu, 27 Jul 2023 23:49:43 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-bc68c4e046aso1655126276.0 for ; Thu, 27 Jul 2023 23:49:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690526982; x=1691131782; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=JSRNyTgH2RQM+IopPYAVHpRofqMWho9ANhQe7NRcfyI=; b=nRXi1Z1xCu+ny9dJx+xC1ohGfwhMrbNXm3ILlxZ3d8TaGL1vQWN1Y8b119HfJeOH+L sYKDJmVsp9CBS2egYSkyBlP6MXSlJmcM60reg1cTMtzo3s2yoXU4YF41uTIre8F6TBak IV7uqTL1PElSoXiUNzEsLMQ6Vt12zexPCG/AQVo9mBnI5/+IJYT5zRffhRstt5aFptQH aa98iwrlnIVy5+oVyhwnEV9xk0Uv4CWqfHV05vOOSjVxW3uJfPyTFTd2hQjYpTDrkTEW 4vf0idf827w3L+2/4kRyak9lzmfRYrBeTuZj9mxJJxnARn3FrgPJ9mNUgA+HPLxu9GCS 4tpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690526982; x=1691131782; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JSRNyTgH2RQM+IopPYAVHpRofqMWho9ANhQe7NRcfyI=; b=OSFKeNQaPMWy8jzuGLG6ejzTyYa+f2dPZozsgNA0oblhOzXxGt0HDIyh75QLJf9UbP /9SrkiZpfdemeBadJ3UCX8suVFoHLG3+hRnh6QFjn6oZs26OF7MaFGbkmDcswAYe5WBf vAneYoLluSQT42eWlPiZ0/F4RN7eFQ8B/pWNUQGfA5tYae5MP8+b0Xt2LSRFtA5yzs1o dPH2Q8pyyNYbSbA4F3G0uIbTLgh2sv8iY2dajrzYtXrxN7IUoeoYAN+u0E9qPYVss1zA adnOeIHkCbBwMjwnnYEgjIq2Os67gxX9HVEq99IcFLWPqOXtQ1srza068JeOipu9M6sp GhmA== X-Gm-Message-State: ABy/qLbsg3TjAKc9KK3yOYh1rIfc+M2JTncAl/cJDfqokSVimzPklyjI QLPbx8IdeeaGbPLgWE3OSrkyFPlSr7Ei X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:3d03:ff18:af30:2dad]) (user=irogers job=sendgmr) by 2002:a25:ab47:0:b0:d08:8cf5:c5d8 with SMTP id u65-20020a25ab47000000b00d088cf5c5d8mr4845ybi.5.1690526982027; Thu, 27 Jul 2023 23:49:42 -0700 (PDT) Date: Thu, 27 Jul 2023 23:49:11 -0700 Message-Id: <20230728064917.767761-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog Subject: [PATCH v1 0/6] Simplify C/C++ compiler flags 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 Some compiler flags have been brought forward in the perf build but without any explicit need, for example -ggdb3. Some warnings were disabled but the underlying warning could be addressed. Try to reduce the number of compiler options used in the perf build, to enable Wextra for C++, and to disable fewer compiler warnings. Ian Rogers (6): perf bpf-loader: Remove unneeded diagnostic pragma perf build: Don't always set -funwind-tables and -ggdb3 perf build: Add Wextra for C++ compilation perf build: Disable fewer flex warnings perf build: Disable fewer bison warnings perf build: Remove -Wno-redundant-decls in 2 cases tools/perf/Makefile.config | 9 ++++----- tools/perf/util/Build | 18 ++++++------------ tools/perf/util/bpf-filter.y | 2 ++ tools/perf/util/bpf-loader.c | 3 --- tools/perf/util/c++/Build | 3 +++ tools/perf/util/expr.y | 4 +++- tools/perf/util/parse-events.c | 1 - tools/perf/util/parse-events.y | 1 + tools/perf/util/pmu.y | 3 +++ 9 files changed, 22 insertions(+), 22 deletions(-) -- 2.41.0.487.g6d72f3e995-goog