[PATCH -next] powerpc/powernv: make symbol 'mpipl_kobj' static

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE1932d LANDED

Landed in mainline as ff0b4155ae99 on 2021-04-14.

2 messages, 2 authors, 2021-04-19 · open the first message on its own page

[PATCH -next] powerpc/powernv: make symbol 'mpipl_kobj' static

From: Bixuan Cui <hidden>
Date: 2021-04-09 06:39:44

The sparse tool complains as follows:

arch/powerpc/platforms/powernv/opal-core.c:74:16: warning:
 symbol 'mpipl_kobj' was not declared.

This symbol is not used outside of opal-core.c, so marks it static.

Reported-by: Hulk Robot <redacted>
Signed-off-by: Bixuan Cui <redacted>
---
 arch/powerpc/platforms/powernv/opal-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/powernv/opal-core.c b/arch/powerpc/platforms/powernv/opal-core.c
index 0d9ba70f7251..5b9736bbc2aa 100644
--- a/arch/powerpc/platforms/powernv/opal-core.c
+++ b/arch/powerpc/platforms/powernv/opal-core.c
@@ -71,7 +71,7 @@ static LIST_HEAD(opalcore_list);
 static struct opalcore_config *oc_conf;
 static const struct opal_mpipl_fadump *opalc_metadata;
 static const struct opal_mpipl_fadump *opalc_cpu_metadata;
-struct kobject *mpipl_kobj;
+static struct kobject *mpipl_kobj;
 
 /*
  * Set crashing CPU's signal to SIGUSR1. if the kernel is triggered

Re: [PATCH -next] powerpc/powernv: make symbol 'mpipl_kobj' static

From: Michael Ellerman <hidden>
Date: 2021-04-19 04:04:41

On Fri, 9 Apr 2021 14:38:55 +0800, Bixuan Cui wrote:
The sparse tool complains as follows:

arch/powerpc/platforms/powernv/opal-core.c:74:16: warning:
 symbol 'mpipl_kobj' was not declared.

This symbol is not used outside of opal-core.c, so marks it static.
Applied to powerpc/next.

[1/1] powerpc/powernv: make symbol 'mpipl_kobj' static
      https://git.kernel.org/powerpc/c/ff0b4155ae9903539d1299a9a4c8717fb7eb6009

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help