* [PATCH] genirq: export handle_bad_irq
@ 2015-10-06 20:24 Arnd Bergmann
2015-10-06 20:51 ` kbuild test robot
2015-10-07 19:18 ` [PATCH] genirq: export handle_bad_irq Grygorii Strashko
0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2015-10-06 20:24 UTC (permalink / raw)
To: Thomas Gleixner
Cc: linux-kernel, Grygorii Strashko, Santosh Shilimkar, Linus Walleij,
Austin Schuh, Tony Lindgren, linux-arm-kernel, linux-gpio,
linux-omap
A cleanup of the omap gpio driver introduced a use of the
handle_bad_irq() function in a device driver that can be
a loadable module.
This broke the ARM allmodconfig build:
ERROR: "handle_bad_irq" [drivers/gpio/gpio-omap.ko] undefined!
This patch exports the handle_bad_irq symbol in order to
allow the use in modules.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 450fa54cfd66 ("gpio: omap: convert to use generic irq handler")
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index ea7b5fd99ba5..142bbf3b607f 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -35,6 +35,7 @@ void handle_bad_irq(struct irq_desc *desc)
kstat_incr_irqs_this_cpu(desc);
ack_bad_irq(irq);
}
+EXPORT_SYMBOL_GPL(handle_bad_irq);
/*
* Special, empty irq handler:
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] genirq: export handle_bad_irq
2015-10-06 20:24 [PATCH] genirq: export handle_bad_irq Arnd Bergmann
@ 2015-10-06 20:51 ` kbuild test robot
2015-10-06 20:59 ` [PATCH] genirq: fix handle_bad_irq kerneldoc comment Arnd Bergmann
2015-10-07 19:18 ` [PATCH] genirq: export handle_bad_irq Grygorii Strashko
1 sibling, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2015-10-06 20:51 UTC (permalink / raw)
To: Arnd Bergmann
Cc: kbuild-all, Thomas Gleixner, linux-kernel, Grygorii Strashko,
Santosh Shilimkar, Linus Walleij, Austin Schuh, Tony Lindgren,
linux-arm-kernel, linux-gpio, linux-omap
[-- Attachment #1: Type: text/plain, Size: 3064 bytes --]
Hi Arnd,
[auto build test WARNING on v4.3-rc4 -- if it's inappropriate base, please ignore]
reproduce: make htmldocs
All warnings (new ones prefixed by >>):
kernel/irq/handle.c:31: warning: Excess function parameter 'irq' description in 'handle_bad_irq'
>> kernel/irq/handle.c:1: warning: no structured comments found
vim +1 kernel/irq/handle.c
^1da177e Linus Torvalds 2005-04-16 @1 /*
^1da177e Linus Torvalds 2005-04-16 2 * linux/kernel/irq/handle.c
^1da177e Linus Torvalds 2005-04-16 3 *
a34db9b2 Ingo Molnar 2006-06-29 4 * Copyright (C) 1992, 1998-2006 Linus Torvalds, Ingo Molnar
a34db9b2 Ingo Molnar 2006-06-29 5 * Copyright (C) 2005-2006, Thomas Gleixner, Russell King
^1da177e Linus Torvalds 2005-04-16 6 *
^1da177e Linus Torvalds 2005-04-16 7 * This file contains the core interrupt handling code.
a34db9b2 Ingo Molnar 2006-06-29 8 *
a34db9b2 Ingo Molnar 2006-06-29 9 * Detailed information is available in Documentation/DocBook/genericirq
a34db9b2 Ingo Molnar 2006-06-29 10 *
^1da177e Linus Torvalds 2005-04-16 11 */
^1da177e Linus Torvalds 2005-04-16 12
^1da177e Linus Torvalds 2005-04-16 13 #include <linux/irq.h>
^1da177e Linus Torvalds 2005-04-16 14 #include <linux/random.h>
3795de23 Thomas Gleixner 2010-09-22 15 #include <linux/sched.h>
^1da177e Linus Torvalds 2005-04-16 16 #include <linux/interrupt.h>
^1da177e Linus Torvalds 2005-04-16 17 #include <linux/kernel_stat.h>
3795de23 Thomas Gleixner 2010-09-22 18
ad8d75ff Steven Rostedt 2009-04-14 19 #include <trace/events/irq.h>
^1da177e Linus Torvalds 2005-04-16 20
^1da177e Linus Torvalds 2005-04-16 21 #include "internals.h"
^1da177e Linus Torvalds 2005-04-16 22
6a6de9ef Thomas Gleixner 2006-06-29 23 /**
6a6de9ef Thomas Gleixner 2006-06-29 24 * handle_bad_irq - handle spurious and unhandled irqs
43a1dd50 Henrik Kretzschmar 2006-08-31 25 * @irq: the interrupt number
43a1dd50 Henrik Kretzschmar 2006-08-31 26 * @desc: description of the interrupt
43a1dd50 Henrik Kretzschmar 2006-08-31 27 *
43a1dd50 Henrik Kretzschmar 2006-08-31 28 * Handles spurious and unhandled IRQ's. It also prints a debugmessage.
6a6de9ef Thomas Gleixner 2006-06-29 29 */
bd0b9ac4 Thomas Gleixner 2015-09-14 30 void handle_bad_irq(struct irq_desc *desc)
6a6de9ef Thomas Gleixner 2006-06-29 @31 {
bd0b9ac4 Thomas Gleixner 2015-09-14 32 unsigned int irq = irq_desc_get_irq(desc);
bd0b9ac4 Thomas Gleixner 2015-09-14 33
43f77759 Ingo Molnar 2006-06-29 34 print_irq_desc(irq, desc);
:::::: The code at line 1 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 6062 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] genirq: fix handle_bad_irq kerneldoc comment
2015-10-06 20:51 ` kbuild test robot
@ 2015-10-06 20:59 ` Arnd Bergmann
0 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2015-10-06 20:59 UTC (permalink / raw)
To: linux-arm-kernel
Cc: kbuild test robot, Grygorii Strashko, Tony Lindgren,
Linus Walleij, linux-kernel, linux-gpio, kbuild-all, Austin Schuh,
Santosh Shilimkar, Thomas Gleixner, linux-omap
A recent cleanup removed the 'irq' parameter from many functions, but
left the documentation for this in place for at least one function.
This removes it.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: bd0b9ac405e1 ("genirq: Remove irq argument from irq flow handlers")
---
On Wednesday 07 October 2015 04:51:56 kbuild test robot wrote:
> [auto build test WARNING on v4.3-rc4 -- if it's inappropriate base, please ignore]
>
> reproduce: make htmldocs
>
> All warnings (new ones prefixed by >>):
>
> kernel/irq/handle.c:31: warning: Excess function parameter 'irq' description in 'handle_bad_irq'
> >> kernel/irq/handle.c:1: warning: no structured comments found
This seems to be an unrelated bug, not sure why it wasn't caught earlier:
diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 142bbf3b607f..a302cf9a2126 100644
--- a/kernel/irq/handle.c
+++ b/kernel/irq/handle.c
@@ -22,7 +22,6 @@
/**
* handle_bad_irq - handle spurious and unhandled irqs
- * @irq: the interrupt number
* @desc: description of the interrupt
*
* Handles spurious and unhandled IRQ's. It also prints a debugmessage.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] genirq: export handle_bad_irq
2015-10-06 20:24 [PATCH] genirq: export handle_bad_irq Arnd Bergmann
2015-10-06 20:51 ` kbuild test robot
@ 2015-10-07 19:18 ` Grygorii Strashko
1 sibling, 0 replies; 4+ messages in thread
From: Grygorii Strashko @ 2015-10-07 19:18 UTC (permalink / raw)
To: Arnd Bergmann, Thomas Gleixner
Cc: linux-kernel, Santosh Shilimkar, Linus Walleij, Austin Schuh,
Tony Lindgren, linux-arm-kernel, linux-gpio, linux-omap
Hi Arnd,
On 10/06/2015 03:24 PM, Arnd Bergmann wrote:
> A cleanup of the omap gpio driver introduced a use of the
> handle_bad_irq() function in a device driver that can be
> a loadable module.
>
> This broke the ARM allmodconfig build:
>
> ERROR: "handle_bad_irq" [drivers/gpio/gpio-omap.ko] undefined!
>
> This patch exports the handle_bad_irq symbol in order to
> allow the use in modules.
>
Thanks for fixing it and sorry for the mess.
Tested-by: Grygorii Strashko <grygorii.strashko@ti.com>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: 450fa54cfd66 ("gpio: omap: convert to use generic irq handler")
>
> diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
> index ea7b5fd99ba5..142bbf3b607f 100644
> --- a/kernel/irq/handle.c
> +++ b/kernel/irq/handle.c
> @@ -35,6 +35,7 @@ void handle_bad_irq(struct irq_desc *desc)
> kstat_incr_irqs_this_cpu(desc);
> ack_bad_irq(irq);
> }
> +EXPORT_SYMBOL_GPL(handle_bad_irq);
>
> /*
> * Special, empty irq handler:
>
--
regards,
-grygorii
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-07 19:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-06 20:24 [PATCH] genirq: export handle_bad_irq Arnd Bergmann
2015-10-06 20:51 ` kbuild test robot
2015-10-06 20:59 ` [PATCH] genirq: fix handle_bad_irq kerneldoc comment Arnd Bergmann
2015-10-07 19:18 ` [PATCH] genirq: export handle_bad_irq Grygorii Strashko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).