From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Thu, 3 Jan 2013 21:48:39 +0000 Subject: [PATCH v4 13/19] ARM: remove mach .handle_irq for VIC users In-Reply-To: <1357235668-9450-14-git-send-email-robherring2@gmail.com> References: <1357235668-9450-1-git-send-email-robherring2@gmail.com> <1357235668-9450-14-git-send-email-robherring2@gmail.com> Message-ID: <201301032148.39523.arnd@arndb.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thursday 03 January 2013, Rob Herring wrote: > From: Rob Herring > > Now that the VIC initialization sets up the handle_arch_irq pointer, we > can remove it for all machines and make it static. > > Signed-off-by: Rob Herring > Cc: Ryan Mallon > Cc: Russell King > Cc: Hubert Feurstein > Cc: Alessandro Rubini > Cc: STEricsson > Cc: Ben Dooks > Cc: Kyungmin Park > Cc: Shiraz Hashim > Cc: Rajeev Kumar > Acked-by: H Hartley Sweeten > Acked-by: Jamie Iles > Acked-by: Linus Walleij > Acked-by: Mark Brown > Acked-by: Viresh Kumar > Acked-by: Kukjin Kim > Acked-by: Olof Johansson Acked-by: Arnd Bergmann However, > index 6894df1..d5ee437 100644 > --- a/arch/arm/common/vic.c > +++ b/arch/arm/common/vic.c > @@ -83,6 +83,8 @@ static struct vic_device vic_devices[CONFIG_ARM_VIC_NR]; > > static int vic_id; > > +static void vic_handle_irq(struct pt_regs *regs); > + > /** > * vic_init2 - common initialisation code > * @base: Base of the VIC. > @@ -466,7 +468,7 @@ static int handle_one_vic(struct vic_device *vic, struct pt_regs *regs) > * Keep iterating over all registered VIC's until there are no pending > * interrupts. > */ > -asmlinkage void __exception_irq_entry vic_handle_irq(struct pt_regs *regs) > +static asmlinkage void __exception_irq_entry vic_handle_irq(struct pt_regs *regs) > { > int i, handled; > I'm a big fan of the "no forward function declarations in .c files" rule. Can I convince to reorder the file contents instead to avoid the forward declaration? Arnd