[PATCH] irqchip: Add irqchip_init dummy function
Sergei Shtylyov
sergei.shtylyov at cogentembedded.com
Wed May 8 14:51:38 EDT 2013
Hello.
On 05/08/2013 08:33 PM, Arnd Bergmann wrote:
>
>>> --- a/include/linux/irqchip.h
>>> +++ b/include/linux/irqchip.h
>>> @@ -11,6 +11,10 @@
>>> #ifndef _LINUX_IRQCHIP_H
>>> #define _LINUX_IRQCHIP_H
>>>
>>> +#ifdef CONFIG_IRQCHIP
>>> void irqchip_init(void);
>>> +#else
>>> +void irqchip_init(void) {};
>> Semicolon not needed here.
>>
>>> +#endif
> More importantly, the function should be marked as "static inline", otherwise
> you get a link error if this header is included in more than one place.
Right, I should have noticed that too. :-)
> Arnd
WBR, Sergei
More information about the linux-arm-kernel
mailing list