[PATCH] Fix implicit declaration of 'in_irq' in linux/highmem.h

From: Catalin Marinas
Date: Wed Nov 10 2010 - 06:32:02 EST


Commit 3e4d3af introduced the kmap_atomic_idx_push() function which
warns on in_irq() with CONFIG_DEBUG_HIGHMEM enabled. This patch includes
linux/hardirq.h for the in_irq definition.

Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

Please ignore if the patch has already been posted.

include/linux/highmem.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/highmem.h b/include/linux/highmem.h
index e913819..b676c58 100644
--- a/include/linux/highmem.h
+++ b/include/linux/highmem.h
@@ -5,6 +5,7 @@
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/uaccess.h>
+#include <linux/hardirq.h>

#include <asm/cacheflush.h>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/