From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0064945573137088439==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] bpf: lbr: __pcpu_scope_bpf_lbr_entries can be static Date: Wed, 18 Aug 2021 16:43:59 +0800 Message-ID: <20210818084358.GA33727@6f3de74ad095> In-Reply-To: <20210818012937.2522409-1-songliubraving@fb.com> List-Id: --===============0064945573137088439== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable arch/x86/events/intel/lbr.c:1866:1: warning: symbol '__pcpu_scope_bpf_lbr_e= ntries' was not declared. Should it be static? arch/x86/events/intel/lbr.c:1867:1: warning: symbol '__pcpu_scope_bpf_lbr_c= nt' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- lbr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lbr.c index e4e863f6fb93d..e3116c10c3b7e 100644 --- a/arch/x86/events/intel/lbr.c +++ b/arch/x86/events/intel/lbr.c @@ -1863,8 +1863,8 @@ struct event_constraint vlbr_constraint =3D __EVENT_CONSTRAINT(INTEL_FIXED_VLBR_EVENT, (1ULL << INTEL_PMC_IDX_FIXED_V= LBR), FIXED_EVENT_FLAGS, 1, 0, PERF_X86_EVENT_LBR_SELECT); = -DEFINE_PER_CPU(struct perf_branch_entry, bpf_lbr_entries[MAX_LBR_ENTRIES]); -DEFINE_PER_CPU(int, bpf_lbr_cnt); +static DEFINE_PER_CPU(struct perf_branch_entry, bpf_lbr_entries[MAX_LBR_EN= TRIES]); +static DEFINE_PER_CPU(int, bpf_lbr_cnt); = int bpf_branch_record_read(void) { --===============0064945573137088439==--