2009-03-02 16:57:44

by Johannes Weiner

[permalink] [raw]
Subject: [patch 1/7] xtensa: kernel/traps.c: include hardirq.h

The file refers to in_interrupt() so hardirq.h must be included.

Signed-off-by: Johannes Weiner <[email protected]>
---
arch/xtensa/kernel/traps.c | 1 +
1 file changed, 1 insertion(+)

--- a/arch/xtensa/kernel/traps.c
+++ b/arch/xtensa/kernel/traps.c
@@ -25,6 +25,7 @@

#include <linux/kernel.h>
#include <linux/sched.h>
+#include <linux/hardirq.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/stringify.h>

--


2009-03-11 13:35:32

by Johannes Weiner

[permalink] [raw]
Subject: Re: [patch 1/7] xtensa: kernel/traps.c: include hardirq.h

On Mon, Mar 02, 2009 at 05:42:58PM +0100, Johannes Weiner wrote:
> The file refers to in_interrupt() so hardirq.h must be included.
>
> Signed-off-by: Johannes Weiner <[email protected]>
> ---
> arch/xtensa/kernel/traps.c | 1 +
> 1 file changed, 1 insertion(+)
>
> --- a/arch/xtensa/kernel/traps.c
> +++ b/arch/xtensa/kernel/traps.c
> @@ -25,6 +25,7 @@
>
> #include <linux/kernel.h>
> #include <linux/sched.h>
> +#include <linux/hardirq.h>
> #include <linux/init.h>
> #include <linux/module.h>
> #include <linux/stringify.h>

This is obsoleted by Alexey's fix in mainline:

5a891ed xtensa: fix compilation somewhat