Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp889421rwb; Fri, 28 Jul 2023 01:04:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlFpdaWU6cd878AhlLpZB9tuvgiRcqElVjjTWWpew3Hn5QhPHCwK89WFcLhKMnH8w+f5nipn X-Received: by 2002:a17:902:cecb:b0:1bb:7996:b267 with SMTP id d11-20020a170902cecb00b001bb7996b267mr601602plg.17.1690531483588; Fri, 28 Jul 2023 01:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690531483; cv=none; d=google.com; s=arc-20160816; b=eGe8JlYkPLJz2XQgf3bha32pohy9GRKH74pWAsFZ6ZpFqiWnwSsQ61DQ2ki0T2Fiqm TMl9RwmLRq3KSL/PK+R2i4eizFfGAhmnClsu/Za5PCeCsUavweE2+HOgIy58AznUCrGu 03gNMrFtYDqNdohHsPQO2A01Ur3pVCwJFrCruFG6nuj8WnzZWGQxJW11IUx6kBgFnZU+ kzTBj2oZJjWkztIi8Tdp6Cew332zNc5uNWb9cib3twRPWON3TpYkeqVQKBLdUq/m4w5+ 7gsnecpR5QFo04gqIaf5YDJmLMqyjAEr/TqsgkoOFwoVsgXXYPVf6qB7yH2yiS9e0wMs RLsg== 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=o+NuSN9XkT+qsQuvKgJBdNq4nk4vcI3JH0hFT1DVHgI=; fh=AR39VCoLgN4ugVEXyHpHAllbgzR9AE0gjQCmVObZNbM=; b=UxbQSNfJImh1abmVDcmCRg4wydimbk65OueOU1QuRqEgGoG4X3pRPxLXZgn/80L2af 5h+su0t+G/AWW9N1kphecIzgOp/5o7vGQ6G20VIszkl+rbU3jSj4yUG7KOi5V90f+e0A xWa7qED+jyhRgEpRotywLFKMKJnd+G9kS/+EeZg/thefG6Fdx8m56i+EVlKJ9+XhTz6l Ta4lZd1XIFCutdQPLH+Xbil5tThemmim4HSBp5iGZYhNns98EIUAfoxmx7gw2i9ZFCd+ imZyrs6trxOiGVWGy4+XcAX/OQF/HV1MKnRVWx80Wabh9K0HY9OFh5PVNLSkPK5ZkjCN KYyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=dBWfagtH; 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 e4-20020a170902e0c400b001a51368b098si2604413pla.209.2023.07.28.01.04.31; Fri, 28 Jul 2023 01:04:43 -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=dBWfagtH; 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 S233688AbjG1GuL (ORCPT + 99 others); Fri, 28 Jul 2023 02:50:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233560AbjG1Gt4 (ORCPT ); Fri, 28 Jul 2023 02:49:56 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8EA035AB for ; Thu, 27 Jul 2023 23:49:49 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d052f58b7deso1759311276.2 for ; Thu, 27 Jul 2023 23:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690526989; x=1691131789; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=o+NuSN9XkT+qsQuvKgJBdNq4nk4vcI3JH0hFT1DVHgI=; b=dBWfagtHD8/GX5CfSM0USkliKrcgjg7HFq51oTJfadYnvK2v3CXXfjwoGKERNpv3cI 4AUh0LL57JfZLlBfahYZs7188BkkTzaC6XOahh1G7K6UlM+Ll8rC86zWvjSKyi7LhZP5 M7RMyGdKmtrbQ8AI3nAe18nKyqLPfckUcaMM3nVyHIue/AQSImE85rbc2i4MXRJmHCN9 TNXXK0CuMC8RLg39DqApn3XqceSzf0vyA3QhKs3XLbwDbUmTT6bLYabPOh73nfBhDH1H oH9n2bueV+aOOiThlR2LuT0Qa+Dq1E2g02ybR//9V6PXxgIS5SzcAGGaW5wpHjsLXWuT gI0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690526989; x=1691131789; 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=o+NuSN9XkT+qsQuvKgJBdNq4nk4vcI3JH0hFT1DVHgI=; b=QkgNFebNSzhxKNXAy8Jv/rnGY32rOLMbkgC5JHKNfJYA7xyqixuiV7l954GTDu3sBC MFPC72VNWfV1F6dz5JJ4RiDnUPCbZSpEp1lUaiUtTb9e3WFGNAhinCa3fcKmY3sA6KiE 41D8enOxh+3p3YKWEyqla+Ex0iTyWkNvYwLsux7PSiPwinPmlIiIHrROCKmBfVYYqFbs z4jlW8BsuFc0BpvcKjBsfBxZSEBWMBPUqZha0SarQltSghIU0/G8aqxePtF7igCDr8j4 DXWMwXKVwU+oCsAHf4fyrqPtgw2JSriTR4eChsHoYvi+tO0XT6OAeaPeb3R8e59946FR oQvw== X-Gm-Message-State: ABy/qLa7HbXee3MT3aVBtHpHfLTNDFMR1rscwyP2Qll0qsAVE4VFwccE u5NZx6B1IlqqNsQ7WPVjFWIyEkoGn8/V X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:3d03:ff18:af30:2dad]) (user=irogers job=sendgmr) by 2002:a25:37d8:0:b0:c64:2bcd:a451 with SMTP id e207-20020a2537d8000000b00c642bcda451mr4280yba.7.1690526989081; Thu, 27 Jul 2023 23:49:49 -0700 (PDT) Date: Thu, 27 Jul 2023 23:49:14 -0700 In-Reply-To: <20230728064917.767761-1-irogers@google.com> Message-Id: <20230728064917.767761-4-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 3/6] perf build: Add Wextra for C++ compilation 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 Commit d58ac0bf8d1e ("perf build: Add clang and llvm compile and linking support") added -Wall and -Wno-strict-aliasing for CXXFLAGS, but not -Wextra. -Wno-strict-aliasing is no longer necessary, adding -Wextra for CXXFLAGS requires adding -Wno-unused-parameter clang.cpp and clang-test.cpp for LIBCLANGLLVM=1 to build. Signed-off-by: Ian Rogers --- tools/perf/Makefile.config | 2 +- tools/perf/util/c++/Build | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 14709a6bd622..fe7afe6d8529 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -333,8 +333,8 @@ CORE_CFLAGS += -std=gnu11 CXXFLAGS += -std=gnu++14 -fno-exceptions -fno-rtti CXXFLAGS += -Wall +CXXFLAGS += -Wextra CXXFLAGS += -fno-omit-frame-pointer -CXXFLAGS += -Wno-strict-aliasing HOSTCFLAGS += -Wall HOSTCFLAGS += -Wextra diff --git a/tools/perf/util/c++/Build b/tools/perf/util/c++/Build index 613ecfd76527..8610d032ac19 100644 --- a/tools/perf/util/c++/Build +++ b/tools/perf/util/c++/Build @@ -1,2 +1,5 @@ perf-$(CONFIG_CLANGLLVM) += clang.o perf-$(CONFIG_CLANGLLVM) += clang-test.o + +CXXFLAGS_clang.o += -Wno-unused-parameter +CXXFLAGS_clang-test.o += -Wno-unused-parameter -- 2.41.0.487.g6d72f3e995-goog