irqchip: Remove asmlinkage from static functions
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 5 Mar 2014 00:40:30 +0000 (16:40 -0800)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 07:37:36 +0000 (09:37 +0200)
LTO patches add __visible to the asmlinkage define, causing
compilation warnings like:

  drivers/irqchip/irq-gic.c:283:1: warning: 'externally_visible'
  attribute have effect only on public objects [-Wattributes]

  [ Modified for LSK from it's origin commit (see below) to only touch
    the irq-gic.c file so that we have a natural progression of the code
    before factoring out code bits into a library file for GICv3 support
    later - Christoffer ]

Drop asmlinkage here to avoid such warnings.

Reported-by: Olof's autobuilder <build@lixom.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: khilman@linaro.org
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Josh Cartwright <joshc@codeaurora.org>
Cc: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1393980030-17770-1-git-send-email-sboyd@codeaurora.org
(cherry picked from commit 8783dd3a37a5853689e1a8fa728827a50905b912)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-gic.c

index 29b483f603d465ae80cb6734e4b9c49d102f9a74..922f7ba37d5cd362aca4a84d01b3821e4ba21460 100644 (file)
@@ -279,7 +279,7 @@ static int gic_set_wake(struct irq_data *d, unsigned int on)
 #define gic_set_wake   NULL
 #endif
 
-static asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs)
+static void __exception_irq_entry gic_handle_irq(struct pt_regs *regs)
 {
        u32 irqstat, irqnr;
        struct gic_chip_data *gic = &gic_data[0];