[android-common:android15-6.6 2/2] lib/../mm/internal.h:1249:18: error: static declaration of 'vmap_pages_range_noflush' follows non-static declaration
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://android.googlesource.com/kernel/common android15-6.6 head: 24c059d9e217f32d61570fdbd7eb66bc999657a9 commit: c079fb2a08aa30fea641845ea6f5669d72d913c9 [2/2] ANDROID: mm/vmalloc: export vmap_pages_range_noflush and __get_vm_area_caller config: arm-randconfig-004-20260816 (https://download.01.org/0day-ci/archive/20260816/[email protected]/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260816/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): In file included from lib/vsprintf.c:50: >> lib/../mm/internal.h:1249:18: error: static declaration of 'vmap_pages_range_noflush' follows non-static declaration 1249 | int __must_check vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/asm-generic/io.h:1028, from arch/arm/include/asm/io.h:416, from include/linux/io.h:13, from include/linux/irq.h:20, from include/asm-generic/hardirq.h:17, from arch/arm/include/asm/hardirq.h:10, from include/linux/hardirq.h:11, from include/linux/interrupt.h:11, from include/linux/rtc.h:17, from lib/vsprintf.c:36: include/linux/vmalloc.h:129:5: note: previous declaration of 'vmap_pages_range_noflush' with type 'int(long unsigned int, long unsigned int, pgprot_t, struct page **, unsigned int)' {aka 'int(long unsigned int, long unsigned int, long unsigned int, struct page **, unsigned int)'} 129 | int vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ lib/vsprintf.c: In function 'va_format': lib/vsprintf.c:1682:9: warning: function 'va_format' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] 1682 | buf += vsnprintf(buf, end > buf ? end - buf : 0, va_fmt->fmt, va); | ^~~ -- In file included from mm/filemap.c:52: >> mm/internal.h:1249:18: error: static declaration of 'vmap_pages_range_noflush' follows non-static declaration 1249 | int __must_check vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/asm-generic/io.h:1028, from arch/arm/include/asm/io.h:416, from include/linux/io.h:13, from include/linux/irq.h:20, from include/asm-generic/hardirq.h:17, from arch/arm/include/asm/hardirq.h:10, from include/linux/hardirq.h:11, from include/linux/interrupt.h:11, from include/linux/kernel_stat.h:9, from mm/filemap.c:20: include/linux/vmalloc.h:129:5: note: previous declaration of 'vmap_pages_range_noflush' with type 'int(long unsigned int, long unsigned int, pgprot_t, struct page **, unsigned int)' {aka 'int(long unsigned int, long unsigned int, long unsigned int, struct page **, unsigned int)'} 129 | int vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from mm/vmscan.c:68: >> mm/internal.h:1249:18: error: static declaration of 'vmap_pages_range_noflush' follows non-static declaration 1249 | int __must_check vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/asm-generic/io.h:1028, from arch/arm/include/asm/io.h:416, from include/linux/io.h:13, from include/linux/irq.h:20, from include/asm-generic/hardirq.h:17, from arch/arm/include/asm/hardirq.h:10, from include/linux/hardirq.h:11, from include/linux/interrupt.h:11, from include/linux/kernel_stat.h:9, from mm/vmscan.c:19: include/linux/vmalloc.h:129:5: note: previous declaration of 'vmap_pages_range_noflush' with type 'int(long unsigned int, long unsigned int, pgprot_t, struct page **, unsigned int)' {aka 'int(long unsigned int, long unsigned int, long unsigned int, struct page **, unsigned int)'} 129 | int vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ mm/vmscan.c:1071:15: warning: no previous prototype for 'shrink_slab' [-Wmissing-prototypes] 1071 | unsigned long shrink_slab(gfp_t gfp_mask, int nid, | ^~~~~~~~~~~ mm/vmscan.c:2681:15: warning: no previous prototype for 'shrink_inactive_list' [-Wmissing-prototypes] 2681 | unsigned long shrink_inactive_list(unsigned long nr_to_scan, | ^~~~~~~~~~~~~~~~~~~~ -- In file included from mm/gup.c:26: >> mm/internal.h:1249:18: error: static declaration of 'vmap_pages_range_noflush' follows non-static declaration 1249 | int __must_check vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/asm-generic/io.h:1028, from arch/arm/include/asm/io.h:416, from include/linux/io.h:13, from arch/arm/include/asm/cachetype.h:85, from arch/arm/include/asm/cacheflush.h:14, from include/linux/cacheflush.h:5, from include/linux/highmem.h:8, from include/linux/pagemap.h:11, from mm/gup.c:9: include/linux/vmalloc.h:129:5: note: previous declaration of 'vmap_pages_range_noflush' with type 'int(long unsigned int, long unsigned int, pgprot_t, struct page **, unsigned int)' {aka 'int(long unsigned int, long unsigned int, long unsigned int, struct page **, unsigned int)'} 129 | int vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ mm/gup.c:408:6: warning: no previous prototype for '_trace_android_vh_mm_customize_longterm_pinnable' [-Wmissing-prototypes] 408 | void _trace_android_vh_mm_customize_longterm_pinnable(struct folio *folio, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from mm/early_ioremap.c:20: >> mm/internal.h:1249:18: error: static declaration of 'vmap_pages_range_noflush' follows non-static declaration 1249 | int __must_check vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/asm-generic/io.h:1028, from arch/arm/include/asm/io.h:416, from include/linux/io.h:13, from mm/early_ioremap.c:13: include/linux/vmalloc.h:129:5: note: previous declaration of 'vmap_pages_range_noflush' with type 'int(long unsigned int, long unsigned int, pgprot_t, struct page **, unsigned int)' {aka 'int(long unsigned int, long unsigned int, long unsigned int, struct page **, unsigned int)'} 129 | int vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from mm/early_ioremap.c:18: arch/arm/include/asm/fixmap.h:39:35: warning: '__end_of_fixed_addresses' defined but not used [-Wunused-const-variable=] 39 | static const enum fixed_addresses __end_of_fixed_addresses = | ^~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from mm/page_alloc.c:62: >> mm/internal.h:1249:18: error: static declaration of 'vmap_pages_range_noflush' follows non-static declaration 1249 | int __must_check vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/asm-generic/io.h:1028, from arch/arm/include/asm/io.h:416, from include/linux/io.h:13, from arch/arm/include/asm/cachetype.h:85, from arch/arm/include/asm/cacheflush.h:14, from include/linux/cacheflush.h:5, from include/linux/highmem.h:8, from mm/page_alloc.c:20: include/linux/vmalloc.h:129:5: note: previous declaration of 'vmap_pages_range_noflush' with type 'int(long unsigned int, long unsigned int, pgprot_t, struct page **, unsigned int)' {aka 'int(long unsigned int, long unsigned int, long unsigned int, struct page **, unsigned int)'} 129 | int vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ mm/page_alloc.c:1729:6: warning: no previous prototype for 'prep_new_page' [-Wmissing-prototypes] 1729 | void prep_new_page(struct page *page, unsigned int order, gfp_t gfp_flags, | ^~~~~~~~~~~~~ -- In file included from mm/oom_kill.c:51: >> mm/internal.h:1249:18: error: static declaration of 'vmap_pages_range_noflush' follows non-static declaration 1249 | int __must_check vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/asm-generic/io.h:1028, from arch/arm/include/asm/io.h:416, from include/linux/io.h:13, from include/linux/irq.h:20, from include/asm-generic/hardirq.h:17, from arch/arm/include/asm/hardirq.h:10, from include/linux/hardirq.h:11, from include/linux/interrupt.h:11, from include/linux/kernel_stat.h:9, from include/linux/cgroup.h:26, from include/linux/memcontrol.h:13, from include/linux/swap.h:9, from mm/oom_kill.c:30: include/linux/vmalloc.h:129:5: note: previous declaration of 'vmap_pages_range_noflush' with type 'int(long unsigned int, long unsigned int, pgprot_t, struct page **, unsigned int)' {aka 'int(long unsigned int, long unsigned int, long unsigned int, struct page **, unsigned int)'} 129 | int vmap_pages_range_noflush(unsigned long addr, unsigned long end, | ^~~~~~~~~~~~~~~~~~~~~~~~ mm/oom_kill.c:432:6: warning: no previous prototype for 'dump_tasks' [-Wmissing-prototypes] 432 | void dump_tasks(struct oom_control *oc) | ^~~~~~~~~~ vim +/vmap_pages_range_noflush +1249 lib/../mm/internal.h b671491199acd3 Mike Rapoport (IBM 2023-03-21 1247) 4ad0ae8c64ac8f Nicholas Piggin 2021-04-29 1248 static inline d905ae2b0f7eaf Alexander Potapenko 2023-04-13 @1249 int __must_check vmap_pages_range_noflush(unsigned long addr, unsigned long end, 4ad0ae8c64ac8f Nicholas Piggin 2021-04-29 1250 pgprot_t prot, struct page **pages, unsigned int page_shift) 4ad0ae8c64ac8f Nicholas Piggin 2021-04-29 1251 { 4ad0ae8c64ac8f Nicholas Piggin 2021-04-29 1252 return -EINVAL; 4ad0ae8c64ac8f Nicholas Piggin 2021-04-29 1253 } 4ad0ae8c64ac8f Nicholas Piggin 2021-04-29 1254 #endif 4ad0ae8c64ac8f Nicholas Piggin 2021-04-29 1255 :::::: The code at line 1249 was first introduced by commit :::::: d905ae2b0f7eaf8fb37febfe4833ccf3f8c1c27a mm: apply __must_check to vmap_pages_range_noflush() :::::: TO: Alexander Potapenko <[email protected]> :::::: CC: Andrew Morton <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki