aboutsummaryrefslogtreecommitdiffstats
path: root/drivers-uio-un-restrict-sysfs-pointers-for-uio.patch
diff options
Diffstat (limited to 'drivers-uio-un-restrict-sysfs-pointers-for-uio.patch')
-rw-r--r--drivers-uio-un-restrict-sysfs-pointers-for-uio.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers-uio-un-restrict-sysfs-pointers-for-uio.patch b/drivers-uio-un-restrict-sysfs-pointers-for-uio.patch
deleted file mode 100644
index d41a2a46aec82c..00000000000000
--- a/drivers-uio-un-restrict-sysfs-pointers-for-uio.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From: Chris Fries <cfries@google.com>
-Subject: drivers: uio: Un-restrict sysfs pointers for UIO
-
-The addr and size on the UIO devices are required by userspace to function
-properly. Let's unrestrict these by adding the 'P' modifier to %p and %pa.
-
-Cc: William Roberts <william.c.roberts@intel.com>
-Cc: Dave Weinstein <olorin@google.com>
-Signed-off-by: Chris Fries <cfries@google.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/uio/uio.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
---- a/drivers/uio/uio.c
-+++ b/drivers/uio/uio.c
-@@ -56,12 +56,12 @@ static ssize_t map_name_show(struct uio_
-
- static ssize_t map_addr_show(struct uio_mem *mem, char *buf)
- {
-- return sprintf(buf, "%pa\n", &mem->addr);
-+ return sprintf(buf, "%paP\n", &mem->addr);
- }
-
- static ssize_t map_size_show(struct uio_mem *mem, char *buf)
- {
-- return sprintf(buf, "%pa\n", &mem->size);
-+ return sprintf(buf, "%paP\n", &mem->size);
- }
-
- static ssize_t map_offset_show(struct uio_mem *mem, char *buf)