[PATCH -next v2] powerpc/perf: Fix symbol undeclared warning

2020-09-23 Thread Wang Wensheng
f/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 --- arch/powerpc/perf/isa207-common.c | 2 +- arch/powerpc/pe

[PATCH -next] powerpc/security: Fix symbol undeclared warning

2020-09-21 Thread Wang Wensheng
Build kernel with `C=2`: arch/powerpc/kernel/security.c:253:6: warning: symbol 'stf_barrier' was not declared. Should it be static? Signed-off-by: Wang Wensheng --- arch/powerpc/kernel/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/

[PATCH -next] powerpc/perf: Fix symbol undeclared warning

2020-09-21 Thread Wang Wensheng
f/power9-pmu.c:115:5: warning: symbol 'p9_dd22_bl_ev' was not declared. Should it be static? Signed-off-by: Wang Wensheng --- arch/powerpc/perf/isa207-common.c | 2 +- arch/powerpc/perf/power9-pmu.c| 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/perf/i

[PATCH -next] powerpc/opalcore: Fix symbol undeclared warning

2020-09-21 Thread Wang Wensheng
Build kernel with `C=2`: arch/powerpc/platforms/powernv/opal-core.c:74:16: warning: symbol 'mpipl_kobj' was not declared. Should it be static? Signed-off-by: Wang Wensheng --- arch/powerpc/platforms/powernv/opal-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH -next] powerpc/kvm/books: Fix symbol undeclared warnings

2020-09-21 Thread Wang Wensheng
d. Should it be static? Those symbols are used only in the files that define them so make them static to fix the warnings. Signed-off-by: Wang Wensheng --- arch/powerpc/kvm/book3s_64_mmu_radix.c | 2 +- arch/powerpc/kvm/book3s_64_vio.c | 2 +- arch/powerpc/kvm/book3s_64_vio_hv.c|

[PATCH -next] powerpc/papr_scm: Fix warnings about undeclared variable

2020-09-18 Thread Wang Wensheng
Build the kernel with 'make C=2': arch/powerpc/platforms/pseries/papr_scm.c:825:1: warning: symbol 'dev_attr_perf_stats' was not declared. Should it be static? Signed-off-by: Wang Wensheng --- arch/powerpc/platforms/pseries/papr_scm.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH -next] ide: Fix symbol undeclared warnings

2020-09-16 Thread Wang Wensheng
a_timings' was not declared. Should it be static? drivers/ide/pmac.c:1418:12: warning: symbol 'pmac_ide_probe' was not declared. Should it be static? Signed-off-by: Wang Wensheng --- drivers/ide/pmac.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --g

[PATCH -next] drivers/macintosh/smu.c: Fix undeclared symbol warning

2020-09-14 Thread Wang Wensheng
Make kernel with `C=2`: drivers/macintosh/smu.c:1018:30: warning: symbol '__smu_get_sdb_partition' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Wang Wensheng --- drivers/macintosh/smu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git