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>
--
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