Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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/20210409090114.59396-1-cuibixuan@huawei.com

authored by

Bixuan Cui and committed by
Michael Ellerman
2235dea1 193e4cd8

+1 -1
+1 -1
arch/powerpc/platforms/pseries/pmem.c
··· 139 139 return rc; 140 140 } 141 141 142 - const struct of_device_id drc_pmem_match[] = { 142 + static const struct of_device_id drc_pmem_match[] = { 143 143 { .type = "ibm,persistent-memory", }, 144 144 {} 145 145 };