Skip to contentSkip to conversation

ARM: iop32x: add prototype for iop_enable_cp6()

PATCH In review Souptick Joarder 2 participants 3 messages Feb 17, 2022 – Mar 1, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: iop32x: add prototype for iop_enable_cp6()

From: "Souptick Joarder (HPE)" <[email protected]>

Kernel test robot throws warning -> arch/arm/mach-iop32x/cp6.c:10:6: warning: no previous prototype for function 'iop_enable_cp6' [-Wmissing-prototypes]

Adding prototype by including header.

Fixes 6f5d248d05db ("ARM: iop32x: use GENERIC_IRQ_MULTI_HANDLER")
---
 arch/arm/mach-iop32x/cp6.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-iop32x/cp6.c +2 -0
index 2882674a1c39..7135a0ac9949 100644
@@ -7,6 +7,8 @@
 #include <asm/traps.h>
 #include <asm/ptrace.h>
 
+#include "iop3xx.h"
+
 void iop_enable_cp6(void)
 {
 	u32 temp;
Signature · 1 line
2.25.1
#1 lore raw
Quoted 8 lines · Souptick Joarder

From: "Souptick Joarder (HPE)" <[email protected]>

Kernel test robot throws warning -> arch/arm/mach-iop32x/cp6.c:10:6: warning: no previous prototype for function 'iop_enable_cp6' [-Wmissing-prototypes]

Adding prototype by including header.

Any comments on this patch ?

Quoted 24 lines
Fixes 6f5d248d05db ("ARM: iop32x: use GENERIC_IRQ_MULTI_HANDLER")
---
 arch/arm/mach-iop32x/cp6.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-iop32x/cp6.c +2 -1
index 2882674a1c39..7135a0ac9949 100644
@@ -7,6 +7,8 @@
 #include <asm/traps.h>
 #include <asm/ptrace.h>
 
+#include "iop3xx.h"
+
 void iop_enable_cp6(void)
 {
        u32 temp;
--

2.25.1

Reviewed-by on v1 1/1
#2 lore raw
In reply to Souptick Joarder
Quoted 8 lines · Souptick Joarder

From: "Souptick Joarder (HPE)" <[email protected]>

Kernel test robot throws warning -> arch/arm/mach-iop32x/cp6.c:10:6: warning: no previous prototype for function 'iop_enable_cp6' [-Wmissing-prototypes]

Adding prototype by including header.

It may be worth mentioning that this only happens with W=1 or V=1 but not with the
normal build options.

Quoted 3 lines
Fixes 6f5d248d05db ("ARM: iop32x: use GENERIC_IRQ_MULTI_HANDLER")

Russell, please apply this on top of the arm-vmap-stacks-v6 that contains my original patch withthe W=1 warning.

Arnd