powerpc/pseries/pmem: Make symbol 'drc_pmem_match' static
Subsystems (2)
PATCH 1/1 powerpc/pseries/pmem: Make symbol 'drc_pmem_match' static
The sparse tool complains as follows:
arch/powerpc/platforms/pseries/pmem.c:142:27: warning:
symbol 'drc_pmem_match' was not declared. Should it be static?
This symbol is not used outside of pmem.c, so this commit marks it static.
Reported-by Hulk Robot <[email protected]>
Signed-off-by Bixuan Cui <[email protected]>
--- arch/powerpc/platforms/pseries/pmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/platforms/pseries/pmem.c +1 -1
@@ -139,7 +139,7 @@ int dlpar_hp_pmem(struct pseries_hp_errorlog *hp_elog)return rc; } -const struct of_device_id drc_pmem_match[] = { +static const struct of_device_id drc_pmem_match[] = { { .type ="ibm,persistent-memory" , }, {} };
Michael Ellerman
AppliedQuoted 7 lines · Bixuan Cui
The sparse tool complains as follows:
arch/powerpc/platforms/pseries/pmem.c:142:27: warning:
symbol 'drc_pmem_match' was not declared. Should it be static?This symbol is not used outside of
pmem.c, so this commit marks it static.
Applied to powerpc/next.
[1/1] powerpc/pseries/pmem: Make symbol 'drc_pmem_match' static
https://git.kernel.org/powerpc/c/2235dea17d56238642121a8085b71d68598534bb
cheers