From: Bixuan Cui Date: Fri, 9 Apr 2021 09:01:14 +0000 (+0800) Subject: powerpc/pseries/pmem: Make symbol 'drc_pmem_match' static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2235dea17d56238642121a8085b71d68598534bb;p=linux.git 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 Signed-off-by: Bixuan Cui Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20210409090114.59396-1-cuibixuan@huawei.com --- diff --git a/arch/powerpc/platforms/pseries/pmem.c b/arch/powerpc/platforms/pseries/pmem.c index e1dc5d3254df9..439ac72c24708 100644 --- a/arch/powerpc/platforms/pseries/pmem.c +++ b/arch/powerpc/platforms/pseries/pmem.c @@ -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", }, {} };