Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3064597pxk; Mon, 21 Sep 2020 04:30:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdRs5KFLvBDSkYEZ233YkEi3BUPjkh5pLAGn5SA5BYX00anG4L9/fww1O5lpPGPFUVwuxw X-Received: by 2002:a17:906:cb98:: with SMTP id mf24mr51344794ejb.90.1600687818566; Mon, 21 Sep 2020 04:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600687818; cv=none; d=google.com; s=arc-20160816; b=OqKX8u/+4scVCNh/H0FYwQGnFseofOZfr8ObpX39S3d6ZbnTAc8c8cVzxf195jGJAB g8Ue8iPSuEE/bSVtaZf3cxcpO88wlt3TiPfC2T8ml2QSqT6MFXGp1GYIbOZ7QEwcBNGz ZLXf7KGILDEU1Jtd5MWzxuIAjePF3Tn7EQBdAJsAqHmg9vsdyrYQs5j1eiisic5kRpQb ACYCMPSrU2rBd/YegqRALQu+6EWwR7t2wFv8Lw8Eq3BKasO/PtAQCcLEjTPSKcETgvsO I9QlTk139TStLrCf6s6f9wiDCGNNyul8kJ2PHVLuA8XhvC9E9cWOlWaeGux9wcV8cD1I 7eSQ== 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:to:from; bh=iHUXxiRfXNjNv9a+Ae/0ttaQs7l5uAg5Ig+1LY0bfhc=; b=hqaype91Rur+d+pcJhH6TX9aqwJ6zBhvBU2v8/6vOpes6qW4kl1gOfOE4KzMNXVvaW 06VjAcDw22dNrKkKNmjx+h2nmT3AYu/VDV/S6vJMl4W2T3xiW61SO4fXJOEO3US3GDrk WoaQve20CLM82rlQzGryHRq4/24u8eYiV5Hh2JRCiI7adD/KOWe/p3P5NzTBQ0G8Fk30 STkDOJUFSu1bGOUbW5ENmTX5SOjZmdPg1gDr4PSRdxfYVQJUvt1tik8JvDvliEjV396F RC3N0hkRzzaLw/c3PECqlAENhHqXMdM2EhgYDYJlMQuZurwTV/lvR61sKH5Q9Mm0JfzM /7+g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si7558840eja.502.2020.09.21.04.29.55; Mon, 21 Sep 2020 04:30:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726821AbgIUL2u (ORCPT + 99 others); Mon, 21 Sep 2020 07:28:50 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:13746 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726578AbgIUL2u (ORCPT ); Mon, 21 Sep 2020 07:28:50 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 907C930B26541FB099A8; Mon, 21 Sep 2020 19:28:46 +0800 (CST) Received: from huawei.com (10.175.112.208) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 19:28:36 +0800 From: Wang Wensheng To: , , , , , , , , , Subject: [PATCH -next] powerpc/perf: Fix symbol undeclared warning Date: Mon, 21 Sep 2020 11:25:57 +0000 Message-ID: <20200921112557.85471-1-wangwensheng4@huawei.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.208] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Build kernel with `C=2`: arch/powerpc/perf/isa207-common.c:24:18: warning: symbol 'isa207_pmu_format_attr' was not declared. Should it be static? arch/powerpc/perf/power9-pmu.c:101:5: warning: symbol 'p9_dd21_bl_ev' was not declared. Should it be static? arch/powerpc/perf/power9-pmu.c:115:5: warning: symbol 'p9_dd22_bl_ev' was not declared. Should it be static? Signed-off-by: Wang Wensheng --- arch/powerpc/perf/isa207-common.c | 2 +- arch/powerpc/perf/power9-pmu.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/perf/isa207-common.c b/arch/powerpc/perf/isa207-common.c index 964437adec18..85dc860b265b 100644 --- a/arch/powerpc/perf/isa207-common.c +++ b/arch/powerpc/perf/isa207-common.c @@ -21,7 +21,7 @@ PMU_FORMAT_ATTR(thresh_stop, "config:32-35"); PMU_FORMAT_ATTR(thresh_start, "config:36-39"); PMU_FORMAT_ATTR(thresh_cmp, "config:40-49"); -struct attribute *isa207_pmu_format_attr[] = { +static struct attribute *isa207_pmu_format_attr[] = { &format_attr_event.attr, &format_attr_pmcxsel.attr, &format_attr_mark.attr, diff --git a/arch/powerpc/perf/power9-pmu.c b/arch/powerpc/perf/power9-pmu.c index 2a57e93a79dc..4a315fad1f99 100644 --- a/arch/powerpc/perf/power9-pmu.c +++ b/arch/powerpc/perf/power9-pmu.c @@ -98,7 +98,7 @@ extern u64 PERF_REG_EXTENDED_MASK; /* PowerISA v2.07 format attribute structure*/ extern struct attribute_group isa207_pmu_format_group; -int p9_dd21_bl_ev[] = { +static int p9_dd21_bl_ev[] = { PM_MRK_ST_DONE_L2, PM_RADIX_PWC_L1_HIT, PM_FLOP_CMPL, @@ -112,7 +112,7 @@ int p9_dd21_bl_ev[] = { PM_DISP_HELD_SYNC_HOLD, }; -int p9_dd22_bl_ev[] = { +static int p9_dd22_bl_ev[] = { PM_DTLB_MISS_16G, PM_DERAT_MISS_2M, PM_DTLB_MISS_2M, -- 2.25.0