mtd/include/mtd mtd-abi.h,1.5,1.6

David Woodhouse dwmw2 at infradead.org
Mon Aug 9 09:38:33 EDT 2004


Update of /home/cvs/mtd/include/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv5850

Modified Files:
	mtd-abi.h 
Log Message:
Add __user annotation to mtd_oob_buf.


Index: mtd-abi.h
===================================================================
RCS file: /home/cvs/mtd/include/mtd/mtd-abi.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- mtd-abi.h	22 Jun 2004 09:29:35 -0000	1.5
+++ mtd-abi.h	9 Aug 2004 13:38:30 -0000	1.6
@@ -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;
@@ -15,7 +20,7 @@
 struct mtd_oob_buf {
 	uint32_t start;
 	uint32_t length;
-	unsigned char *ptr;
+	unsigned char __user *ptr;
 };
 
 #define MTD_ABSENT		0





More information about the linux-mtd-cvs mailing list