diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2020-09-16 13:56:37 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-09-18 11:59:43 +0200 |
commit | d10ebe79dfae7dc59b6cf77ffa615f0b8dae21bf (patch) | |
tree | 53d1f671e30924c9ad7bde29859d6ad94e41390c /arch/powerpc/perf/ppc970-pmu.c | |
parent | powerpc/mm/64s: Fix slb_setup_new_exec() sparse warning (diff) | |
download | linux-d10ebe79dfae7dc59b6cf77ffa615f0b8dae21bf.tar.xz linux-d10ebe79dfae7dc59b6cf77ffa615f0b8dae21bf.zip |
powerpc/perf: Add declarations to fix sparse warnings
Sparse warns about all the init functions:
symbol init_ppc970_pmu was not declared. Should it be static?
symbol init_power5p_pmu was not declared. Should it be static?
symbol init_power5_pmu was not declared. Should it be static?
symbol init_power6_pmu was not declared. Should it be static?
symbol init_power7_pmu was not declared. Should it be static?
symbol init_power9_pmu was not declared. Should it be static?
symbol init_power8_pmu was not declared. Should it be static?
symbol init_generic_compat_pmu was not declared. Should it be static?
They're already declared in internal.h, so just make sure all the C
files include that directly or indirectly.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://lore.kernel.org/r/20200916115637.3100484-2-mpe@ellerman.id.au
Diffstat (limited to 'arch/powerpc/perf/ppc970-pmu.c')
-rw-r--r-- | arch/powerpc/perf/ppc970-pmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/perf/ppc970-pmu.c b/arch/powerpc/perf/ppc970-pmu.c index d35223fb112c..7d78df97f272 100644 --- a/arch/powerpc/perf/ppc970-pmu.c +++ b/arch/powerpc/perf/ppc970-pmu.c @@ -9,6 +9,8 @@ #include <asm/reg.h> #include <asm/cputable.h> +#include "internal.h" + /* * Bits in event code for PPC970 */ |