]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm-vmalloc-convert-vread-to-vread_iter-v8
authorLorenzo Stoakes <lstoakes@gmail.com>
Thu, 23 Mar 2023 10:15:19 +0000 (10:15 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:38 +0000 (16:02 -0700)
redo Stephen's sparc build fix

Link: https://lkml.kernel.org/r/8506cbc667c39205e65a323f750ff9c11a463798.1679566220.git.lstoakes@gmail.com
Signed-off-by: Lorenzo Stoakes <lstoakes@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/vmalloc.h
mm/vmalloc.c

index c720be70c8ddde9cc947c685e64923139c66c3f9..80a924023696087f3352345757acaa3c3d26b3c6 100644 (file)
@@ -9,12 +9,12 @@
 #include <asm/page.h>          /* pgprot_t */
 #include <linux/rbtree.h>
 #include <linux/overflow.h>
+#include <linux/uio.h>
 
 #include <asm/vmalloc.h>
 
 struct vm_area_struct;         /* vma defining user mapping in mm_types.h */
 struct notifier_block;         /* in notifier.h */
-struct iov_iter;               /* in uio.h */
 
 /* bits in flags of vmalloc's vm_struct below */
 #define VM_IOREMAP             0x00000001      /* ioremap() and friends */
index 205e75bb6d1bca2024928e8ce863cb53bfc3566d..66e13bffebc7209c6078519a61ffccc92be4bac9 100644 (file)
@@ -33,7 +33,6 @@
 #include <linux/compiler.h>
 #include <linux/memcontrol.h>
 #include <linux/llist.h>
-#include <linux/uio.h>
 #include <linux/bitops.h>
 #include <linux/rbtree_augmented.h>
 #include <linux/overflow.h>
@@ -3448,7 +3447,7 @@ EXPORT_SYMBOL(vmalloc_32_user);
  *
  * Returns the number of zeroed bytes.
  */
-size_t zero_iter(struct iov_iter *iter, size_t count)
+static size_t zero_iter(struct iov_iter *iter, size_t count)
 {
        size_t remains = count;