OSDN Git Service

powerpc/perf: Make symbol 'isa207_pmu_format_attr' static
authorBixuan Cui <cuibixuan@huawei.com>
Fri, 9 Apr 2021 09:01:19 +0000 (17:01 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Apr 2021 13:04:17 +0000 (23:04 +1000)
commit107dadb046178173dea18e0a78ff8ea3cc27c213
treecb09ccdb526e87bff6fc684026029692cb12e03a
parent2235dea17d56238642121a8085b71d68598534bb
powerpc/perf: Make symbol 'isa207_pmu_format_attr' static

The sparse tool complains as follows:

arch/powerpc/perf/isa207-common.c:24:18: warning:
 symbol 'isa207_pmu_format_attr' was not declared. Should it be static?

This symbol is not used outside of isa207-common.c, so this
commit marks it static.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210409090119.59444-1-cuibixuan@huawei.com
arch/powerpc/perf/isa207-common.c