public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/2.6.28: 0004-linux-uio.h-cleanup-for-userspace.patch
@ 2008-12-29 20:33 Mike Frysinger (vapier)
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2008-12-29 20:33 UTC (permalink / raw
  To: gentoo-commits

vapier      08/12/29 20:33:09

  Modified:             0004-linux-uio.h-cleanup-for-userspace.patch
  Log:
  refine uio.h patch based on lkml feedback

Revision  Changes    Path
1.2                  src/patchsets/gentoo-headers/2.6.28/0004-linux-uio.h-cleanup-for-userspace.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.28/0004-linux-uio.h-cleanup-for-userspace.patch?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.28/0004-linux-uio.h-cleanup-for-userspace.patch?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.28/0004-linux-uio.h-cleanup-for-userspace.patch?r1=1.1&r2=1.2

Index: 0004-linux-uio.h-cleanup-for-userspace.patch
===================================================================
RCS file: /var/cvsroot/gentoo/src/patchsets/gentoo-headers/2.6.28/0004-linux-uio.h-cleanup-for-userspace.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- 0004-linux-uio.h-cleanup-for-userspace.patch	29 Dec 2008 13:00:17 -0000	1.1
+++ 0004-linux-uio.h-cleanup-for-userspace.patch	29 Dec 2008 20:33:08 -0000	1.2
@@ -1,41 +1,56 @@
-From dda9c6313a67d097283afde7b6b608b3c0920302 Mon Sep 17 00:00:00 2001
+From 9efc6c29b9bed6c054978068c078dc142b90609a Mon Sep 17 00:00:00 2001
 From: Mike Frysinger <vapier@gentoo.org>
 Date: Sat, 27 Dec 2008 01:11:46 -0500
-Subject: [PATCH v3] linux/uio.h: cleanup for userspace
+Subject: [PATCH] linux/uio.h: cleanup for userspace
 
 Hide iov_shorten() behind __KERNEL__ since it's a prototype only.  Use the
 __inline__ form for iov_length() since it's usable by userspace.
 
 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
 ---
-v3
-	- keep all __KERNEL__ stuff in one place
-v2
-	- drop inline conversion stuff
-
- include/linux/uio.h |    4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
+ include/linux/uio.h |   18 +++++++++---------
+ 1 files changed, 9 insertions(+), 9 deletions(-)
 
 diff --git a/include/linux/uio.h b/include/linux/uio.h
-index b7fe138..3debd89 100644
+index b7fe138..31d75cd 100644
 --- a/include/linux/uio.h
 +++ b/include/linux/uio.h
-@@ -26,6 +26,8 @@ struct kvec {
- 	size_t iov_len;
+@@ -19,6 +19,13 @@ struct iovec
+ 	__kernel_size_t iov_len; /* Must be size_t (1003.1g) */
  };
  
-+unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to);
++/*
++ *	UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1)
++ */
 +
- #endif
++#define UIO_FASTIOV	8
++#define UIO_MAXIOV	1024
++
+ #ifdef __KERNEL__
  
- /*
-@@ -52,6 +54,4 @@ static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
- 	return ret;
- }
+ struct kvec {
+@@ -26,15 +33,6 @@ struct kvec {
+ 	size_t iov_len;
+ };
  
--unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to);
+-#endif
+-
+-/*
+- *	UIO_MAXIOV shall be at least 16 1003.1g (5.4.1.1)
+- */
+- 
+-#define UIO_FASTIOV	8
+-#define UIO_MAXIOV	1024
 -
+ /*
+  * Total number of bytes covered by an iovec.
+  *
+@@ -55,3 +53,5 @@ static inline size_t iov_length(const struct iovec *iov, unsigned long nr_segs)
+ unsigned long iov_shorten(struct iovec *iov, unsigned long nr_segs, size_t to);
+ 
  #endif
++
++#endif
 -- 
 1.6.0.6
 






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-12-29 20:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-29 20:33 [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/2.6.28: 0004-linux-uio.h-cleanup-for-userspace.patch Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox