public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] genirq: export handle_bad_irq
@ 2015-10-06 20:24 Arnd Bergmann
  2015-10-06 20:51 ` kbuild test robot
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ 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] 6+ 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
  2015-10-09 15:21 ` [tip:irq/urgent] genirq: Export handle_bad_irq tip-bot for Arnd Bergmann
  2 siblings, 1 reply; 6+ 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] 6+ 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
  2015-10-09 15:21     ` [tip:irq/urgent] genirq: Fix " tip-bot for Arnd Bergmann
  0 siblings, 1 reply; 6+ 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] 6+ 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
  2015-10-09 15:21 ` [tip:irq/urgent] genirq: Export handle_bad_irq tip-bot for Arnd Bergmann
  2 siblings, 0 replies; 6+ 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] 6+ messages in thread

* [tip:irq/urgent] 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 ` [PATCH] genirq: export handle_bad_irq Grygorii Strashko
@ 2015-10-09 15:21 ` tip-bot for Arnd Bergmann
  2 siblings, 0 replies; 6+ messages in thread
From: tip-bot for Arnd Bergmann @ 2015-10-09 15:21 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: austin, mingo, ssantosh, grygorii.strashko, arnd, tony, tglx, hpa,
	linus.walleij, linux-kernel

Commit-ID:  9d67dc5da59d63f746aad8f6ec4fbb86d6486f76
Gitweb:     http://git.kernel.org/tip/9d67dc5da59d63f746aad8f6ec4fbb86d6486f76
Author:     Arnd Bergmann <arnd@arndb.de>
AuthorDate: Tue, 6 Oct 2015 22:24:50 +0200
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 9 Oct 2015 17:17:30 +0200

genirq: Export handle_bad_irq

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>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Santosh Shilimkar <ssantosh@kernel.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Austin Schuh <austin@peloton-tech.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/5847725.4IBopItaOr@wuerfel
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 kernel/irq/handle.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index de41a68..77983fc 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] 6+ messages in thread

* [tip:irq/urgent] genirq: Fix handle_bad_irq kerneldoc comment
  2015-10-06 20:59   ` [PATCH] genirq: fix handle_bad_irq kerneldoc comment Arnd Bergmann
@ 2015-10-09 15:21     ` tip-bot for Arnd Bergmann
  0 siblings, 0 replies; 6+ messages in thread
From: tip-bot for Arnd Bergmann @ 2015-10-09 15:21 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: hpa, austin, tglx, arnd, lkp, linus.walleij, linux-kernel, tony,
	mingo, grygorii.strashko, ssantosh

Commit-ID:  e3096c9c7c645279808a6bf7ac2031b1895ddffb
Gitweb:     http://git.kernel.org/tip/e3096c9c7c645279808a6bf7ac2031b1895ddffb
Author:     Arnd Bergmann <arnd@arndb.de>
AuthorDate: Tue, 6 Oct 2015 22:59:40 +0200
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 9 Oct 2015 17:17:30 +0200

genirq: Fix handle_bad_irq kerneldoc comment

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.

Fixes: bd0b9ac405e1 ("genirq: Remove irq argument from irq flow handlers")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: kbuild-all@01.org
Cc: Austin Schuh <austin@peloton-tech.com>
Cc: Santosh Shilimkar <ssantosh@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/5400000.cD19rmgWjV@wuerfel
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 kernel/irq/handle.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/irq/handle.c b/kernel/irq/handle.c
index 77983fc..e25a83b 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] 6+ messages in thread

end of thread, other threads:[~2015-10-09 15:23 UTC | newest]

Thread overview: 6+ 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-09 15:21     ` [tip:irq/urgent] genirq: Fix " tip-bot for Arnd Bergmann
2015-10-07 19:18 ` [PATCH] genirq: export handle_bad_irq Grygorii Strashko
2015-10-09 15:21 ` [tip:irq/urgent] genirq: Export handle_bad_irq tip-bot for Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox