On Tue, Oct 06, 2015 at 03:45:07PM -0500, Grygorii Strashko wrote:
On 10/06/2015 07:01 AM, Sudip Mukherjee wrote:
While building arm allmodconfig the build fails with the error:
ERROR: "handle_bad_irq" [drivers/gpio/gpio-omap.ko] undefined!
The build breaks as handle_bad_irq is not exported for module use.
Not sure if this is right thing to do. We really want it to be a module if needed.
The handle_bad_irq() was used in this driver to catch the case when Omap
GPIO IRQ is enabled before calling .irq_set_type()
I think there are few option:
- export handle_bad_irq()
- pass NULL in gpiochip_irqchip_add() instead of handle_bad_irq()
- use handle_simple_irq()
- revert this change
Thought second one should work.
I think that should be ok. If you want me to test the patch in my setup
to verify that it fixes the build failure please let me know.
But going through the old thread it looked like plan was on to
export handle_bad_irq() atleast thats what looks like from Linus's
(Linus Walleij) reply in https://lkml.org/lkml/2014/2/25/119