Patchwork mtd: map.h: fix arm cross-build failure

login
register
mail settings
Submitter Artem Bityutskiy
Date Dec. 30, 2011, 4:55 p.m.
Message ID <1325264129-28752-1-git-send-email-dedekind1@gmail.com>
Download mbox | patch
Permalink /patch/133686/
State Accepted
Commit 4a42243886b87cd28a39b192161767c2af851a55
Headers show

Comments

Artem Bityutskiy - Dec. 30, 2011, 4:55 p.m.
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>

This patch fixes the following build failure:
In file included from include/linux/mtd/qinfo.h:4:0,
                 from include/linux/mtd/pfow.h:7,
                 from drivers/mtd/lpddr/lpddr_cmds.c:27:
include/linux/mtd/map.h: In function 'inline_map_read':
include/linux/mtd/map.h:409:3: error: implicit declaration of function 'BUILD_BUG_ON' [-Werror=implicit-function-declaration]

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
---
 include/linux/mtd/map.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h
index 1132410..94e924e 100644
--- a/include/linux/mtd/map.h
+++ b/include/linux/mtd/map.h
@@ -26,7 +26,7 @@ 
 #include <linux/list.h>
 #include <linux/string.h>
 #include <linux/bug.h>
-
+#include <linux/kernel.h>
 
 #include <asm/unaligned.h>
 #include <asm/system.h>