summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2004-10-21 02:25:44 +0100
committerDavid Woodhouse <dwmw2@infradead.org>2004-10-21 02:25:44 +0100
commit91c730410be06832fa7b0493779e943ffe80a4f5 (patch)
tree122a51274260da3d1e71ecbb9caec5528629855b /include
parentc1e4a3d937a1fc1f35e92bc345dd1a487f3249e9 (diff)
MTD userspace ABI: fix userspace compilation w.r.t. __user
Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include')
-rw-r--r--include/mtd/mtd-abi.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index e872ad77058b..db93b7b108bb 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -1,5 +1,5 @@
/*
- * $Id: mtd-abi.h,v 1.5 2004/06/22 09:29:35 gleixner Exp $
+ * $Id: mtd-abi.h,v 1.6 2004/08/09 13:38:30 dwmw2 Exp $
*
* Portions of MTD ABI definition which are shared by kernel and user space
*/
@@ -7,6 +7,11 @@
#ifndef __MTD_ABI_H__
#define __MTD_ABI_H__
+#ifndef __KERNEL__ /* Urgh. The whole point of splitting this out into
+ separate files was to avoid #ifdef __KERNEL__ */
+#define __user
+#endif
+
struct erase_info_user {
uint32_t start;
uint32_t length;