mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
powerpc/perf: Fix symbol undeclared warning
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? Those symbols are used only in the files that define them so we declare them as static to fix the warnings. Signed-off-by: Wang Wensheng <wangwensheng4@huawei.com> Reviewed-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200923071453.2540-1-wangwensheng4@huawei.com
This commit is contained in:
parent
634a0b8fb8
commit
cacaeb0c23
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ extern u64 PERF_REG_EXTENDED_MASK;
|
||||||
/* PowerISA v2.07 format attribute structure*/
|
/* PowerISA v2.07 format attribute structure*/
|
||||||
extern const struct attribute_group isa207_pmu_format_group;
|
extern const struct attribute_group isa207_pmu_format_group;
|
||||||
|
|
||||||
int p9_dd21_bl_ev[] = {
|
static int p9_dd21_bl_ev[] = {
|
||||||
PM_MRK_ST_DONE_L2,
|
PM_MRK_ST_DONE_L2,
|
||||||
PM_RADIX_PWC_L1_HIT,
|
PM_RADIX_PWC_L1_HIT,
|
||||||
PM_FLOP_CMPL,
|
PM_FLOP_CMPL,
|
||||||
|
@ -112,7 +112,7 @@ int p9_dd21_bl_ev[] = {
|
||||||
PM_DISP_HELD_SYNC_HOLD,
|
PM_DISP_HELD_SYNC_HOLD,
|
||||||
};
|
};
|
||||||
|
|
||||||
int p9_dd22_bl_ev[] = {
|
static int p9_dd22_bl_ev[] = {
|
||||||
PM_DTLB_MISS_16G,
|
PM_DTLB_MISS_16G,
|
||||||
PM_DERAT_MISS_2M,
|
PM_DERAT_MISS_2M,
|
||||||
PM_DTLB_MISS_2M,
|
PM_DTLB_MISS_2M,
|
||||||
|
|
Loading…
Reference in a new issue