Skip to contentSkip to conversation

ARM: orion5x: make orion5x_legacy_handle_irq static

PATCH New Ben Dooks 3 participants 3 messages Jun 9, 2016 – Jun 16, 2016

Subsystems (3)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 ARM: orion5x: make orion5x_legacy_handle_irq static

The orion5x_legacy_handle_irq() is not used or declared outside of irq.c so make it static to avoid the following warning:

arch/arm/mach-orion5x/irq.c:30:23: warning: symbol 'orion5x_legacy_handle_irq' was not declared. Should it be static?

---
Cc: Jason Cooper <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Sebastian Hesselbarth <[email protected]>
Cc: Gregory Clement <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org

---
 arch/arm/mach-orion5x/irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-orion5x/irq.c +1 -1
index de980ef..ac4af22 100644
@@ -26,7 +26,7 @@ static int __initdata gpio0_irqs[4] = {
 	IRQ_ORION5X_GPIO_24_31,
 };
 
-asmlinkage void
+static asmlinkage void
 __exception_irq_entry orion5x_legacy_handle_irq(struct pt_regs *regs)
 {
 	u32 stat;
Signature · 1 line
2.8.1
maintainer
#1 lore raw

PATCH 1/1 ARM: orion5x: make orion5x_legacy_handle_irq static

Quoted 6 lines · Ben Dooks

The orion5x_legacy_handle_irq() is not used or declared outside of irq.c so make it static to avoid the following warning:

arch/arm/mach-orion5x/irq.c:30:23: warning: symbol 'orion5x_legacy_handle_irq' was not declared. Should it be static?

Andrew

#2 lore raw

PATCH 1/1 ARM: orion5x: make orion5x_legacy_handle_irq static

In reply to Ben Dooks

Hi Ben,

Quoted 6 lines · Ben Dooks

The orion5x_legacy_handle_irq() is not used or declared outside of irq.c so make it static to avoid the following warning:

arch/arm/mach-orion5x/irq.c:30:23: warning: symbol 'orion5x_legacy_handle_irq' was not declared. Should it be static?

Applied on mvebu/cleanup

Thanks,

Gregory

Quoted 26 lines

---
Cc: Jason Cooper <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Sebastian Hesselbarth <[email protected]>
Cc: Gregory Clement <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org

---
 arch/arm/mach-orion5x/irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-orion5x/irq.c +1 -1
index de980ef..ac4af22 100644
@@ -26,7 +26,7 @@ static int __initdata gpio0_irqs[4] = {
 	IRQ_ORION5X_GPIO_24_31,
 };
 
-asmlinkage void
+static asmlinkage void
 __exception_irq_entry orion5x_legacy_handle_irq(struct pt_regs *regs)
 {
 	u32 stat;
Signature · 1 line
2.8.1
Signature · 4 lines
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com