[PATCH v4 07/19] ARM: remove mach .handle_irq for GIC users
Russell King - ARM Linux
linux at arm.linux.org.uk
Thu Jan 10 11:57:53 EST 2013
On Thu, Jan 10, 2013 at 08:38:28AM -0600, Rob Herring wrote:
> On 01/10/2013 05:02 AM, Russell King - ARM Linux wrote:
> > On Thu, Jan 03, 2013 at 11:54:16AM -0600, Rob Herring wrote:
> >> -asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs)
> >> +static asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs)
> >
> > NAK. No, not "static asmlinkage".
>
> Okay will remove asmlinkage, but is there an issue with making this static?
No, just for the asmlinkage. asmlinkage is used to mark functions which
are called from assembly. Making them static generally means you can't
call them from assembly (unless you have asm() code in the .c file which
does, like our kernel_thread() implementation used to).
Ok, asmlinkage on ARM is a no-op, but it's useful cheap documentation to
mark which C functions get called from assembly.
More information about the linux-arm-kernel
mailing list