From: Stephen Rothwell Date: Tue, 28 Mar 2023 23:25:14 +0000 (-0700) Subject: mm: vmalloc: fix sparc64 warning X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e230cfeafb83d5767317e3a8592ff7ff858e948d;p=users%2Fjedix%2Flinux-maple.git mm: vmalloc: fix sparc64 warning This fixes this warning from a sparc64 defconfig build: In file included from /home/sfr/next/next/include/linux/wait.h:11, from /home/sfr/next/next/include/linux/swait.h:8, from /home/sfr/next/next/include/linux/completion.h:12, from /home/sfr/next/next/include/linux/mm_types.h:14, from /home/sfr/next/next/include/linux/uio.h:10, from /home/sfr/next/next/include/linux/vmalloc.h:12, from /home/sfr/next/next/include/asm-generic/io.h:994, from /home/sfr/next/next/arch/sparc/include/asm/io.h:22, from /home/sfr/next/next/arch/sparc/vdso/vclock_gettime.c:18: /home/sfr/next/next/arch/sparc/include/asm/current.h:18:30: warning: call-clobbered register used for global register variable 18 | register struct task_struct *current asm("g4"); | ^~~~~~~ Link: https://lkml.kernel.org/r/20230320144721.663280c3@canb.auug.org.au Fixes: 4e29dd9708cb ("mm: vmalloc: convert vread() to vread_iter()") Signed-off-by: Stephen Rothwell Cc: Lorenzo Stoakes Signed-off-by: Andrew Morton --- diff --git a/include/linux/vmalloc.h b/include/linux/vmalloc.h index 80a924023696..c720be70c8dd 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 629cd87bb403..d21ea912d28e 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include