[PATCH] powerpc/44x: Declare primary_uic static in uic.c

Christophe Leroy posted 1 patch 11 months, 2 weeks ago
arch/powerpc/platforms/44x/uic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] powerpc/44x: Declare primary_uic static in uic.c
Posted by Christophe Leroy 11 months, 2 weeks ago
primary_uic is not used outside uic.c, declare it static.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202411101746.lD8YdVzY-lkp@intel.com/
Fixes: e58923ed1437 ("[POWERPC] Add arch/powerpc driver for UIC, PPC4xx interrupt controller")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
---
 arch/powerpc/platforms/44x/uic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/platforms/44x/uic.c b/arch/powerpc/platforms/44x/uic.c
index e3e148b9dd18..8b03ae4cb3f6 100644
--- a/arch/powerpc/platforms/44x/uic.c
+++ b/arch/powerpc/platforms/44x/uic.c
@@ -37,7 +37,7 @@
 #define UIC_VR		0x7
 #define UIC_VCR		0x8
 
-struct uic *primary_uic;
+static struct uic *primary_uic;
 
 struct uic {
 	int index;
-- 
2.47.0
Re: [PATCH] powerpc/44x: Declare primary_uic static in uic.c
Posted by Madhavan Srinivasan 9 months, 3 weeks ago
On Wed, 08 Jan 2025 11:24:54 +0100, Christophe Leroy wrote:
> primary_uic is not used outside uic.c, declare it static.
> 
> 

Applied to powerpc/next.

[1/1] powerpc/44x: Declare primary_uic static in uic.c
      https://git.kernel.org/powerpc/c/779c501cab14ba0b441a3c802c56be46a24f5c3b

Thanks