Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp431733pxb; Thu, 21 Oct 2021 02:24:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUci8myHzhd7HUTznzUCgJMndJLORy2Eo1/ZIUPObilbK3ID026yEvda2iy9ZpBBdmHRv7 X-Received: by 2002:a17:906:2412:: with SMTP id z18mr5825800eja.56.1634808261563; Thu, 21 Oct 2021 02:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634808261; cv=none; d=google.com; s=arc-20160816; b=saZGxUPVg4HDFyEeZbUKU8H7Z8F/Pg+K8pmmHwOl/+dXz1dnFxG/2SeDf8sVjk4fBw 5zq2nSJVbFe8PbMTb96MbyE5wPYBho3+6Cz98LaGTrNOxjh3uSNQJksHWuEaxoC01G0v HlSsHrVGklSZBFmNaxl2dkQHmKIGO6J4d070XtHMxysSkse0sI7T7aXLYX9UmLtK/O2G 1i9DtB6Dvz4WfVZGPTF3xmD7Pnbl+pcpzI4vRRsQNgOtWT13sn41AHRKdVLoltcEenyw RLbMSlsZD0ht9qukt0udcr4Vo4N78PcBME4AykuYg+z+YT3eUJyFWHgXZBGNH6DIsdwC Du9w== 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; bh=1rzM7Cjiyp1YJF6PZEUjkAJQvkYtrFO3dmiJskG1rdI=; b=pw6bjeuJIREG8IQ839DdhNpsBb6wcZaPNEzXpwBS+29/QkxYeAw7RQEYNzu1uq9FjC +Gfe/5XTNYjSZDkFjkFGUMSZGZuy4c7ZgUQPcaja3v6i9sl7NPAwu2jEre+bIql2FUPA 8KaLpMiBq+54twDAoanlhMGVUh2gEMX8ACib2MgtWLNP0AwJ7bV4ZnDH0YoSFUTP10y1 oeOZnyxZDZs4u/abvNThmnHHM9wbvsNGnnuisllMZZp/noHjyDgBl+gTeYtves44JFma cxhoKj+08wfCvtjG2hPJrlPM93CBWmD/2HSXVw/5Qc7Z12xYOOct+QvDpIOqGAhi7d06 5QzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si8544927edd.198.2021.10.21.02.23.58; Thu, 21 Oct 2021 02:24:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231510AbhJUJYQ (ORCPT + 99 others); Thu, 21 Oct 2021 05:24:16 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:4012 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbhJUJYP (ORCPT ); Thu, 21 Oct 2021 05:24:15 -0400 Received: from fraeml735-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4HZhj929fsz67gkm; Thu, 21 Oct 2021 17:18:05 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml735-chm.china.huawei.com (10.206.15.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 21 Oct 2021 11:21:57 +0200 Received: from localhost.localdomain (10.69.192.58) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 21 Oct 2021 10:21:54 +0100 From: John Garry To: , , , , , , CC: , , , , , John Garry Subject: [PATCH v2 0/2] perf jevents: Enable build warnings Date: Thu, 21 Oct 2021 17:16:43 +0800 Message-ID: <1634807805-40093-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently jevents builds without any complier warning flags enabled. So use newly-defined HOSTCFLAGS, which comes from EXTRA_WARNINGS. Changes for v2: - Add Werror, Wall, and Wextra (James Clark suggestion) Baseline is acme perf/core + mainline commit b94729919db2 ("perf jevents: Free the sys_event_tables list after processing entries"): 680453e63302 perf jevents: Free the sys_event_tables list after processing entries be8ecc57f180 (origin/perf/core) perf srcline: Use long-running addr2line per DSO 2b775152bbe8 perf tests vmlinux-kallsyms: Ignore hidden symbols John Garry (2): perf jevents: Fix some would-be warnings perf jevents: Enable warnings through HOSTCFLAGS tools/perf/Makefile.config | 5 +++++ tools/perf/Makefile.perf | 2 +- tools/perf/pmu-events/Build | 2 +- tools/perf/pmu-events/jevents.c | 10 ++++------ 4 files changed, 11 insertions(+), 8 deletions(-) -- 2.17.1