]> 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>
Tue, 28 Mar 2023 23:25:14 +0000 (16:25 -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 d21ea912d28ef0dae12e2798517abfcc1cc1ff38..2aaa9382605c88b96b940113b9fc29706d0f5290 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>
@@ -3446,7 +3445,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;