From: Lorenzo Stoakes Date: Thu, 23 Mar 2023 10:15:19 +0000 (+0000) Subject: mm-vmalloc-convert-vread-to-vread_iter-v8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3a469f28724a08f33b5249038c383eb924ce685b;p=users%2Fjedix%2Flinux-maple.git mm-vmalloc-convert-vread-to-vread_iter-v8 redo Stephen's sparc build fix Link: https://lkml.kernel.org/r/8506cbc667c39205e65a323f750ff9c11a463798.1679566220.git.lstoakes@gmail.com Signed-off-by: Lorenzo Stoakes Signed-off-by: Andrew Morton --- diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index c720be70c8dd..80a924023696 100644 --- a/include/linux/vmalloc.h +++ b/include/linux/vmalloc.h @@ -9,12 +9,12 @@ #include /* pgprot_t */ #include #include +#include #include 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 */ diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 205e75bb6d1b..66e13bffebc7 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include #include @@ -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;