summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2004-07-12 21:00:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-12 21:00:06 -0700
commit7b091e0254ff3c5b44b2e5af2142d094414af45e (patch)
tree634d35f93b9394967fa04dfbd558bf42b5acf75d /include/linux
parent0c4fb9bf2efb7fe20891946240912725fb117fee (diff)
[PATCH] sparse: switching afs to kvec
- afs and rxrpc switched to kvec; definition of kvec moved to uio.h (duh). - afs/mntpt.c got missing cast added. at that point afs is sparse-clean and rxrpc has only one remaining warning (setsockopt from local variable, protected by set_fs()).
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/mtd.h5
-rw-r--r--include/linux/uio.h9
2 files changed, 9 insertions, 5 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 7718658e8e1b..2f0e43db0307 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -12,11 +12,6 @@
#include <linux/module.h>
#include <linux/uio.h>
-struct kvec {
- void *iov_base; /* and that should *never* hold a userland pointer */
- size_t iov_len;
-};
-
#endif /* __KERNEL__ */
struct erase_info_user {
diff --git a/include/linux/uio.h b/include/linux/uio.h
index 8bc074189f96..9af8bbcd8963 100644
--- a/include/linux/uio.h
+++ b/include/linux/uio.h
@@ -23,6 +23,15 @@ struct iovec
__kernel_size_t iov_len; /* Must be size_t (1003.1g) */
};
+#ifdef __KERNEL__
+
+struct kvec {
+ void *iov_base; /* and that should *never* hold a userland pointer */
+ size_t iov_len;
+};
+
+#endif
+
/*
* UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1)
*/