Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp91932pxk; Tue, 22 Sep 2020 20:00:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWAhNSCimdGNpaltX92EZ6UW07lygNY0HeFPPG5xwa5SIGKYWyYorAimYDndbJnbncctec X-Received: by 2002:a17:906:f6c9:: with SMTP id jo9mr8053873ejb.233.1600830016355; Tue, 22 Sep 2020 20:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600830016; cv=none; d=google.com; s=arc-20160816; b=GgO2oyZ4akd1H27WhAVC3Ju+vogS2ceIjiuJ0bdutRRkfQCPWUTIFalQBKMWEM6IGI RIXPe6BS493MajnnZM9FXBRVRUIb7Ma8pSan8DjobSobenklC2tOphUWI/2AyLvKW76P m7JEY6uXGmX0G3XML7JF+LORUnw/Qrpcqjnf1EKBnbrq/iGGVAuMsGiQo3a1l0rroumt vxhegAlsAyj70hnMSHBlKhe4l0b/vIJOvw7/kn4RHibTDZONhxznxwLlFTrjIt/qtX5d F9v+zE0pKbmKsh0XmvNZtRn21YgVGogfwjLB4x1ep87fjtH4Q+kDLTtUdSnKe2z3w8er kEJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=R2pKAg/axVd/E/0hSB/v+MTIdnTq6p/mXulo9Rktldc=; b=uFAQA+kKrRLN9z+e8nUAereGc0tLCj/bqtVrfI9saPMOtneYQRPAt2h/hOXOsn409D Hb0OvBoeETWEZ6+J1MHqsuVtst1qdDOzPchRDOSsyg4rco3NRv+TaXeh32TNcSs/9xX3 skj7tJGm0ql3ZpAWuf6R6rjNHZizTyQ+z2GSWYOvRo6Qr5y+1k011NFxczS0jaFYBqvx AJkGJ70qIcwnAaK68SSXPo0afImH9Do1oG1fUEGZpjCi01HzKCienTuIA/TpRNrNlP51 kncj1IZp5guz5C4mET0oUPVYRiF/yMZgBgJAA3dzZlO5BSxnQJ8vjw9+mE4QUKzrBE2X ofQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="n10/zlOX"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id md20si11879721ejb.439.2020.09.22.19.59.52; Tue, 22 Sep 2020 20:00:16 -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; dkim=pass header.i=@ibm.com header.s=pp1 header.b="n10/zlOX"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727117AbgIWCTF (ORCPT + 99 others); Tue, 22 Sep 2020 22:19:05 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:52232 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727032AbgIWCTF (ORCPT ); Tue, 22 Sep 2020 22:19:05 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08N21QIv141657; Tue, 22 Sep 2020 22:18:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=pp1; bh=R2pKAg/axVd/E/0hSB/v+MTIdnTq6p/mXulo9Rktldc=; b=n10/zlOXEzLx08aoP308cJGillji3l817oM5jxAGUnltZEZ7O0H6t9xrHRDoyT9x5oCE 04zZSe/LRcZryuF7c0vBaeCvkgOtrl+bQonDVccxlpqzDIVtmEAcsi5biOVtZqb3n3K4 b9vxxgy8gAgtY/gfFETNY0aOIn4xsOz2HPO80o6Vh8SrPLJEvWoEfAxwAlfiddPAuCAw NR517WHVHnislaYXL2kUqyoupjUYijKp9jT7UrtJDbeqWZUTJxMRmV5eOq9uSkQUiqvn EecuxrDWewla9PnFVjOchrkCanTad6vB0KewznnqAW93TmtBZqkJg6wWNfLMgMxjkFzb uQ== Received: from ppma03fra.de.ibm.com (6b.4a.5195.ip4.static.sl-reverse.com [149.81.74.107]) by mx0b-001b2d01.pphosted.com with ESMTP id 33qw0wrkkb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Sep 2020 22:18:32 -0400 Received: from pps.filterd (ppma03fra.de.ibm.com [127.0.0.1]) by ppma03fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 08N2IURh002069; Wed, 23 Sep 2020 02:18:30 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma03fra.de.ibm.com with ESMTP id 33p1f3sec9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Sep 2020 02:18:30 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 08N2GqTD32506208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Sep 2020 02:16:52 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9C1664203F; Wed, 23 Sep 2020 02:18:27 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2EC1442041; Wed, 23 Sep 2020 02:18:25 +0000 (GMT) Received: from [9.79.221.51] (unknown [9.79.221.51]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 23 Sep 2020 02:18:24 +0000 (GMT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: [PATCH -next] powerpc/perf: Fix symbol undeclared warning From: Athira Rajeev In-Reply-To: <20200921112557.85471-1-wangwensheng4@huawei.com> Date: Wed, 23 Sep 2020 07:48:22 +0530 Cc: Michael Ellerman , benh@kernel.crashing.org, paulus@samba.org, Madhavan Srinivasan , kajoljain , "anju@linux.vnet.ibm.com" , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <931F16F9-CE90-40B8-A69D-B75E80BF5DE5@linux.vnet.ibm.com> References: <20200921112557.85471-1-wangwensheng4@huawei.com> To: Wang Wensheng X-Mailer: Apple Mail (2.3608.120.23.2.1) X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-23_02:2020-09-21,2020-09-23 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 mlxscore=0 bulkscore=0 adultscore=0 clxscore=1011 priorityscore=1501 spamscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009230007 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 21-Sep-2020, at 4:55 PM, Wang Wensheng = wrote: >=20 > Build kernel with `C=3D2`: > 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? Hi,=20 It will be good to include a comment in the commit message saying what = is the fix here.=20 ex, declare p9_dd21_bl_ev/p9_dd22_bl_ev as static variable. Thanks Athira >=20 > 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(-) >=20 > 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"); >=20 > -struct attribute *isa207_pmu_format_attr[] =3D { > +static struct attribute *isa207_pmu_format_attr[] =3D { > &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; >=20 > -int p9_dd21_bl_ev[] =3D { > +static int p9_dd21_bl_ev[] =3D { > PM_MRK_ST_DONE_L2, > PM_RADIX_PWC_L1_HIT, > PM_FLOP_CMPL, > @@ -112,7 +112,7 @@ int p9_dd21_bl_ev[] =3D { > PM_DISP_HELD_SYNC_HOLD, > }; >=20 > -int p9_dd22_bl_ev[] =3D { > +static int p9_dd22_bl_ev[] =3D { > PM_DTLB_MISS_16G, > PM_DERAT_MISS_2M, > PM_DTLB_MISS_2M, > --=20 > 2.25.0 >=20