aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorBreno Leitao <[email protected]>2018-10-22 11:54:19 -0300
committerMichael Ellerman <[email protected]>2018-11-25 17:11:21 +1100
commit4851f75098bc9cb2feb44c8168b99ab78b60961d (patch)
treee7d853499988e83bb38aeaf280087d17f8038503 /tools/perf/scripts/python/mem-phys-addr.py
parent3347c9f691bf23c65375c51f904c848b36b6f8fb (diff)
powerpc/perf: Declare static identifier a such
There are three symbols (two variables and a function) that are being used solely in the same file (imc-pmu.c), thus, these symbols should be static, but they are not. This was detected by sparse: arch/powerpc/perf/imc-pmu.c:31:20: warning: symbol 'nest_imc_refc' was not declared. Should it be static? arch/powerpc/perf/imc-pmu.c:37:20: warning: symbol 'core_imc_refc' was not declared. Should it be static? arch/powerpc/perf/imc-pmu.c:46:16: warning: symbol 'imc_event_to_pmu' was not declared. Should it be static? This patch simply adds the 'static' storage-class definition to these symbols, thus, restricting their usage only in the imc-pmu.c file. Signed-off-by: Breno Leitao <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions