powerpc/fadump: Fix sparse warnings
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 21 Apr 2021 12:54:01 +0000 (22:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Apr 2021 10:59:04 +0000 (20:59 +1000)
commit2e341f56a16a71f240c87ec69711aad0d95a704c
treeffd04e5fb7c61ebf16529c1bcffb65a93a80097f
parent39352430aaa05fbe4ba710231c70b334513078f2
powerpc/fadump: Fix sparse warnings

Sparse says:
  arch/powerpc/kernel/fadump.c:48:16: warning: symbol 'fadump_kobj' was not declared. Should it be static?
  arch/powerpc/kernel/fadump.c:55:27: warning: symbol 'crash_mrange_info' was not declared. Should it be static?
  arch/powerpc/kernel/fadump.c:61:27: warning: symbol 'reserved_mrange_info' was not declared. Should it be static?
  arch/powerpc/kernel/fadump.c:83:12: warning: symbol 'fadump_cma_init' was not declared. Should it be static?

And indeed none of them are used outside this file, they can all be made
static. Also fadump_kobj needs to be moved inside the ifdef where it's
used.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210421125402.1955013-1-mpe@ellerman.id.au
arch/powerpc/kernel/fadump.c