]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/papr_scm: Make some symbols static
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 25 Jul 2020 09:19:49 +0000 (17:19 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 26 Jul 2020 14:01:30 +0000 (00:01 +1000)
commitf4848cb5d0a5bde2f0b0dececfaeeabe49cbaefa
treece8beb8aff023392dee937a3685f60dbb14ba9a9
parent03346279d1bf3a75f114ba1abbf4c9cc5a3fe977
powerpc/papr_scm: Make some symbols static

The sparse tool complains as follows:

arch/powerpc/platforms/pseries/papr_scm.c:97:1: warning:
 symbol 'papr_nd_regions' was not declared. Should it be static?
arch/powerpc/platforms/pseries/papr_scm.c:98:1: warning:
 symbol 'papr_ndr_lock' was not declared. Should it be static?

Those variables are not used outside of papr_scm.c, so this
commit marks them static.

Fixes: bb2cdf73fd54 ("powerpc/papr/scm: Add bad memory ranges to nvdimm bad ranges")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200725091949.75234-1-weiyongjun1@huawei.com
arch/powerpc/platforms/pseries/papr_scm.c