tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 14c6345e6e6ca0570f3897214f24748ef6009761 commit: 3431c15c5e0a2605e09d999eaa25db784d6f827f [7071/11721] mm: Add flush_dcache_folio() config: i386-randconfig-r002-20210903 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1104e3258b5064e7110cc297e2cec60ac9acfc0a) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=3431c15c5e0a2605e09d999eaa25db784d6f827f git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 3431c15c5e0a2605e09d999eaa25db784d6f827f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): In file included from include/uapi/linux/fb.h:6: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:18: include/linux/vmpressure.h:47:37: warning: unused parameter 'gfp' [-Wunused-parameter] static inline void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree, ^ include/linux/vmpressure.h:47:61: warning: unused parameter 'memcg' [-Wunused-parameter] static inline void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree, ^ include/linux/vmpressure.h:47:73: warning: unused parameter 'tree' [-Wunused-parameter] static inline void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree, ^ include/linux/vmpressure.h:48:24: warning: unused parameter 'scanned' [-Wunused-parameter] unsigned long scanned, unsigned long reclaimed) {} ^ include/linux/vmpressure.h:48:47: warning: unused parameter 'reclaimed' [-Wunused-parameter] unsigned long scanned, unsigned long reclaimed) {} ^ include/linux/vmpressure.h:49:42: warning: unused parameter 'gfp' [-Wunused-parameter] static inline void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, ^ include/linux/vmpressure.h:49:66: warning: unused parameter 'memcg' [-Wunused-parameter] static inline void vmpressure_prio(gfp_t gfp, struct mem_cgroup *memcg, ^ include/linux/vmpressure.h:50:12: warning: unused parameter 'prio' [-Wunused-parameter] int prio) {} ^ In file included from drivers/gpu/drm/i915/i915_drv.c:39: In file included from include/linux/vga_switcheroo.h:34: In file included from include/linux/fb.h:6: In file included from include/uapi/linux/fb.h:6: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:12: include/linux/backing-dev-defs.h:282:52: warning: unused parameter 'wb' [-Wunused-parameter] static inline bool wb_tryget(struct bdi_writeback *wb) ^ include/linux/backing-dev-defs.h:287:49: warning: unused parameter 'wb' [-Wunused-parameter] static inline void wb_get(struct bdi_writeback *wb) ^ include/linux/backing-dev-defs.h:291:49: warning: unused parameter 'wb' [-Wunused-parameter] static inline void wb_put(struct bdi_writeback *wb) ^ include/linux/backing-dev-defs.h:295:54: warning: unused parameter 'wb' [-Wunused-parameter] static inline void wb_put_many(struct bdi_writeback *wb, unsigned long nr) ^ include/linux/backing-dev-defs.h:295:72: warning: unused parameter 'nr' [-Wunused-parameter] static inline void wb_put_many(struct bdi_writeback *wb, unsigned long nr) ^ include/linux/backing-dev-defs.h:299:51: warning: unused parameter 'wb' [-Wunused-parameter] static inline bool wb_dying(struct bdi_writeback *wb) ^ In file included from drivers/gpu/drm/i915/i915_drv.c:39: In file included from include/linux/vga_switcheroo.h:34: In file included from include/linux/fb.h:6: In file included from include/uapi/linux/fb.h:6: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:18: In file included from include/linux/bio.h:8: In file included from include/linux/highmem.h:12: In file included from arch/x86/include/asm/cacheflush.h:8: include/asm-generic/cacheflush.h:21:53: warning: unused parameter 'mm' [-Wunused-parameter] static inline void flush_cache_mm(struct mm_struct *mm) ^ include/asm-generic/cacheflush.h:27:57: warning: unused parameter 'mm' [-Wunused-parameter] static inline void flush_cache_dup_mm(struct mm_struct *mm) ^ include/asm-generic/cacheflush.h:33:61: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_cache_range(struct vm_area_struct *vma, ^ include/asm-generic/cacheflush.h:34:24: warning: unused parameter 'start' [-Wunused-parameter] unsigned long start, ^ include/asm-generic/cacheflush.h:35:24: warning: unused parameter 'end' [-Wunused-parameter] unsigned long end) ^ include/asm-generic/cacheflush.h:41:60: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_cache_page(struct vm_area_struct *vma, ^ include/asm-generic/cacheflush.h:42:23: warning: unused parameter 'vmaddr' [-Wunused-parameter] unsigned long vmaddr, ^ include/asm-generic/cacheflush.h:43:23: warning: unused parameter 'pfn' [-Wunused-parameter] unsigned long pfn) ^ include/asm-generic/cacheflush.h:49:51: warning: unused parameter 'page' [-Wunused-parameter] static inline void flush_dcache_page(struct page *page) ^ >> include/asm-generic/cacheflush.h:53:53: warning: unused parameter 'folio' [-Wunused-parameter] static inline void flush_dcache_folio(struct folio *folio) { } ^ include/asm-generic/cacheflush.h:63:65: warning: unused parameter 'mapping' [-Wunused-parameter] static inline void flush_dcache_mmap_lock(struct address_space *mapping) ^ include/asm-generic/cacheflush.h:69:67: warning: unused parameter 'mapping' [-Wunused-parameter] static inline void flush_dcache_mmap_unlock(struct address_space *mapping) ^ include/asm-generic/cacheflush.h:75:53: warning: unused parameter 'start' [-Wunused-parameter] static inline void flush_icache_range(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:75:74: warning: unused parameter 'end' [-Wunused-parameter] static inline void flush_icache_range(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:85:61: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_icache_page(struct vm_area_struct *vma, ^ include/asm-generic/cacheflush.h:86:23: warning: unused parameter 'page' [-Wunused-parameter] struct page *page) ^ include/asm-generic/cacheflush.h:92:66: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_icache_user_page(struct vm_area_struct *vma, ^ include/asm-generic/cacheflush.h:93:22: warning: unused parameter 'page' [-Wunused-parameter] struct page *page, ^ include/asm-generic/cacheflush.h:94:23: warning: unused parameter 'addr' [-Wunused-parameter] unsigned long addr, int len) ^ include/asm-generic/cacheflush.h:94:33: warning: unused parameter 'len' [-Wunused-parameter] unsigned long addr, int len) ^ include/asm-generic/cacheflush.h:100:51: warning: unused parameter 'start' [-Wunused-parameter] static inline void flush_cache_vmap(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:100:72: warning: unused parameter 'end' [-Wunused-parameter] static inline void flush_cache_vmap(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:106:53: warning: unused parameter 'start' [-Wunused-parameter] static inline void flush_cache_vunmap(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:106:74: warning: unused parameter 'end' [-Wunused-parameter] static inline void flush_cache_vunmap(unsigned long start, unsigned long end) ^ In file included from drivers/gpu/drm/i915/i915_drv.c:39: In file included from include/linux/vga_switcheroo.h:34: In file included from include/linux/fb.h:6: In file included from include/uapi/linux/fb.h:6: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:18: In file included from include/linux/bio.h:8: In file included from include/linux/highmem.h:14: include/linux/highmem-internal.h:28:49: warning: unused parameter 'addr' [-Wunused-parameter] static inline void kmap_flush_tlb(unsigned long addr) { } ^ In file included from drivers/gpu/drm/i915/i915_drv.c:39: In file included from include/linux/vga_switcheroo.h:34: In file included from include/linux/fb.h:6: In file included from include/uapi/linux/fb.h:6: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: In file included from include/linux/blk-cgroup.h:23: In file included from include/linux/blkdev.h:18: In file included from include/linux/bio.h:8: include/linux/highmem.h:128:59: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) ^ include/linux/highmem.h:128:77: warning: unused parameter 'page' [-Wunused-parameter] static inline void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) ^ include/linux/highmem.h:128:97: warning: unused parameter 'vmaddr' [-Wunused-parameter] static inline void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) ^ include/linux/highmem.h:134:58: warning: unused parameter 'page' [-Wunused-parameter] static inline void flush_kernel_dcache_page(struct page *page) ^ include/linux/highmem.h:137:50: warning: unused parameter 'vaddr' [-Wunused-parameter] static inline void flush_kernel_vmap_range(void *vaddr, int size) ^ include/linux/highmem.h:137:61: warning: unused parameter 'size' [-Wunused-parameter] static inline void flush_kernel_vmap_range(void *vaddr, int size) ^ include/linux/highmem.h:140:55: warning: unused parameter 'vaddr' [-Wunused-parameter] static inline void invalidate_kernel_vmap_range(void *vaddr, int size) ^ include/linux/highmem.h:140:66: warning: unused parameter 'size' [-Wunused-parameter] static inline void invalidate_kernel_vmap_range(void *vaddr, int size) ^ include/linux/highmem.h:190:52: warning: unused parameter 'page' [-Wunused-parameter] static inline void tag_clear_highpage(struct page *page) -- ^ include/linux/mm.h:2365:45: warning: unused parameter 'page' [-Wunused-parameter] static inline bool ptlock_init(struct page *page) { return true; } ^ include/linux/mm.h:2366:45: warning: unused parameter 'page' [-Wunused-parameter] static inline void ptlock_free(struct page *page) {} ^ include/linux/mm.h:2451:68: warning: unused parameter 'pmd' [-Wunused-parameter] static inline spinlock_t *pmd_lockptr(struct mm_struct *mm, pmd_t *pmd) ^ include/linux/mm.h:2456:49: warning: unused parameter 'page' [-Wunused-parameter] static inline bool pmd_ptlock_init(struct page *page) { return true; } ^ include/linux/mm.h:2457:49: warning: unused parameter 'page' [-Wunused-parameter] static inline void pmd_ptlock_free(struct page *page) {} ^ include/linux/mm.h:2492:68: warning: unused parameter 'pud' [-Wunused-parameter] static inline spinlock_t *pud_lockptr(struct mm_struct *mm, pud_t *pud) ^ include/linux/mm.h:2591:50: warning: unused parameter 'pfn' [-Wunused-parameter] static inline int early_pfn_to_nid(unsigned long pfn) ^ include/linux/mm.h:3099:55: warning: unused parameter 'page' [-Wunused-parameter] static inline void __kernel_poison_pages(struct page *page, int nunmpages) { } ^ include/linux/mm.h:3099:65: warning: unused parameter 'nunmpages' [-Wunused-parameter] static inline void __kernel_poison_pages(struct page *page, int nunmpages) { } ^ include/linux/mm.h:3100:53: warning: unused parameter 'page' [-Wunused-parameter] static inline void kernel_poison_pages(struct page *page, int numpages) { } ^ include/linux/mm.h:3100:63: warning: unused parameter 'numpages' [-Wunused-parameter] static inline void kernel_poison_pages(struct page *page, int numpages) { } ^ include/linux/mm.h:3101:55: warning: unused parameter 'page' [-Wunused-parameter] static inline void kernel_unpoison_pages(struct page *page, int numpages) { } ^ include/linux/mm.h:3101:65: warning: unused parameter 'numpages' [-Wunused-parameter] static inline void kernel_unpoison_pages(struct page *page, int numpages) { } ^ include/linux/mm.h:3160:59: warning: unused parameter 'page' [-Wunused-parameter] static inline void debug_pagealloc_map_pages(struct page *page, int numpages) {} ^ include/linux/mm.h:3160:69: warning: unused parameter 'numpages' [-Wunused-parameter] static inline void debug_pagealloc_map_pages(struct page *page, int numpages) {} ^ include/linux/mm.h:3161:61: warning: unused parameter 'page' [-Wunused-parameter] static inline void debug_pagealloc_unmap_pages(struct page *page, int numpages) {} ^ include/linux/mm.h:3161:71: warning: unused parameter 'numpages' [-Wunused-parameter] static inline void debug_pagealloc_unmap_pages(struct page *page, int numpages) {} ^ include/linux/mm.h:3169:69: warning: unused parameter 'mm' [-Wunused-parameter] static inline struct vm_area_struct *get_gate_vma(struct mm_struct *mm) ^ include/linux/mm.h:3173:52: warning: unused parameter 'addr' [-Wunused-parameter] static inline int in_gate_area_no_mm(unsigned long addr) { return 0; } ^ include/linux/mm.h:3174:50: warning: unused parameter 'mm' [-Wunused-parameter] static inline int in_gate_area(struct mm_struct *mm, unsigned long addr) ^ include/linux/mm.h:3174:68: warning: unused parameter 'addr' [-Wunused-parameter] static inline int in_gate_area(struct mm_struct *mm, unsigned long addr) ^ include/linux/mm.h:3345:47: warning: unused parameter 'page' [-Wunused-parameter] static inline bool page_is_guard(struct page *page) { return false; } ^ In file included from drivers/gpu/drm/i915/i915_config.c:6: In file included from drivers/gpu/drm/i915/i915_drv.h:38: In file included from include/linux/io-mapping.h:33: In file included from arch/x86/include/asm/iomap.h:12: In file included from include/linux/highmem.h:12: In file included from arch/x86/include/asm/cacheflush.h:8: include/asm-generic/cacheflush.h:21:53: warning: unused parameter 'mm' [-Wunused-parameter] static inline void flush_cache_mm(struct mm_struct *mm) ^ include/asm-generic/cacheflush.h:27:57: warning: unused parameter 'mm' [-Wunused-parameter] static inline void flush_cache_dup_mm(struct mm_struct *mm) ^ include/asm-generic/cacheflush.h:33:61: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_cache_range(struct vm_area_struct *vma, ^ include/asm-generic/cacheflush.h:34:24: warning: unused parameter 'start' [-Wunused-parameter] unsigned long start, ^ include/asm-generic/cacheflush.h:35:24: warning: unused parameter 'end' [-Wunused-parameter] unsigned long end) ^ include/asm-generic/cacheflush.h:41:60: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_cache_page(struct vm_area_struct *vma, ^ include/asm-generic/cacheflush.h:42:23: warning: unused parameter 'vmaddr' [-Wunused-parameter] unsigned long vmaddr, ^ include/asm-generic/cacheflush.h:43:23: warning: unused parameter 'pfn' [-Wunused-parameter] unsigned long pfn) ^ include/asm-generic/cacheflush.h:49:51: warning: unused parameter 'page' [-Wunused-parameter] static inline void flush_dcache_page(struct page *page) ^ >> include/asm-generic/cacheflush.h:53:53: warning: unused parameter 'folio' [-Wunused-parameter] static inline void flush_dcache_folio(struct folio *folio) { } ^ include/asm-generic/cacheflush.h:63:65: warning: unused parameter 'mapping' [-Wunused-parameter] static inline void flush_dcache_mmap_lock(struct address_space *mapping) ^ include/asm-generic/cacheflush.h:69:67: warning: unused parameter 'mapping' [-Wunused-parameter] static inline void flush_dcache_mmap_unlock(struct address_space *mapping) ^ include/asm-generic/cacheflush.h:75:53: warning: unused parameter 'start' [-Wunused-parameter] static inline void flush_icache_range(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:75:74: warning: unused parameter 'end' [-Wunused-parameter] static inline void flush_icache_range(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:85:61: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_icache_page(struct vm_area_struct *vma, ^ include/asm-generic/cacheflush.h:86:23: warning: unused parameter 'page' [-Wunused-parameter] struct page *page) ^ include/asm-generic/cacheflush.h:92:66: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_icache_user_page(struct vm_area_struct *vma, ^ include/asm-generic/cacheflush.h:93:22: warning: unused parameter 'page' [-Wunused-parameter] struct page *page, ^ include/asm-generic/cacheflush.h:94:23: warning: unused parameter 'addr' [-Wunused-parameter] unsigned long addr, int len) ^ include/asm-generic/cacheflush.h:94:33: warning: unused parameter 'len' [-Wunused-parameter] unsigned long addr, int len) ^ include/asm-generic/cacheflush.h:100:51: warning: unused parameter 'start' [-Wunused-parameter] static inline void flush_cache_vmap(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:100:72: warning: unused parameter 'end' [-Wunused-parameter] static inline void flush_cache_vmap(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:106:53: warning: unused parameter 'start' [-Wunused-parameter] static inline void flush_cache_vunmap(unsigned long start, unsigned long end) ^ include/asm-generic/cacheflush.h:106:74: warning: unused parameter 'end' [-Wunused-parameter] static inline void flush_cache_vunmap(unsigned long start, unsigned long end) ^ In file included from drivers/gpu/drm/i915/i915_config.c:6: In file included from drivers/gpu/drm/i915/i915_drv.h:38: In file included from include/linux/io-mapping.h:33: In file included from arch/x86/include/asm/iomap.h:12: In file included from include/linux/highmem.h:14: include/linux/highmem-internal.h:28:49: warning: unused parameter 'addr' [-Wunused-parameter] static inline void kmap_flush_tlb(unsigned long addr) { } ^ In file included from drivers/gpu/drm/i915/i915_config.c:6: In file included from drivers/gpu/drm/i915/i915_drv.h:38: In file included from include/linux/io-mapping.h:33: In file included from arch/x86/include/asm/iomap.h:12: include/linux/highmem.h:128:59: warning: unused parameter 'vma' [-Wunused-parameter] static inline void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) ^ include/linux/highmem.h:128:77: warning: unused parameter 'page' [-Wunused-parameter] static inline void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) ^ include/linux/highmem.h:128:97: warning: unused parameter 'vmaddr' [-Wunused-parameter] static inline void flush_anon_page(struct vm_area_struct *vma, struct page *page, unsigned long vmaddr) ^ include/linux/highmem.h:134:58: warning: unused parameter 'page' [-Wunused-parameter] static inline void flush_kernel_dcache_page(struct page *page) ^ include/linux/highmem.h:137:50: warning: unused parameter 'vaddr' [-Wunused-parameter] static inline void flush_kernel_vmap_range(void *vaddr, int size) ^ include/linux/highmem.h:137:61: warning: unused parameter 'size' [-Wunused-parameter] static inline void flush_kernel_vmap_range(void *vaddr, int size) ^ include/linux/highmem.h:140:55: warning: unused parameter 'vaddr' [-Wunused-parameter] static inline void invalidate_kernel_vmap_range(void *vaddr, int size) ^ include/linux/highmem.h:140:66: warning: unused parameter 'size' [-Wunused-parameter] static inline void invalidate_kernel_vmap_range(void *vaddr, int size) ^ include/linux/highmem.h:190:52: warning: unused parameter 'page' [-Wunused-parameter] static inline void tag_clear_highpage(struct page *page) ^ include/linux/highmem.h:240:46: warning: unused parameter 'vma' [-Wunused-parameter] unsigned long vaddr, struct vm_area_struct *vma) ^ In file included from drivers/gpu/drm/i915/i915_config.c:6: In file included from drivers/gpu/drm/i915/i915_drv.h:39: In file included from include/linux/i2c.h:13: In file included from include/linux/acpi.h:13: In file included from include/linux/irqdomain.h:35: include/linux/of.h:1040:54: warning: unused parameter 'device' [-Wunused-parameter] static inline int of_node_to_nid(struct device_node *device) ^ include/linux/of.h:1507:46: warning: unused parameter 'overlay_fdt' [-Wunused-parameter] static inline int of_overlay_fdt_apply(void *overlay_fdt, u32 overlay_fdt_size, ^ include/linux/of.h:1507:63: warning: unused parameter 'overlay_fdt_size' [-Wunused-parameter] static inline int of_overlay_fdt_apply(void *overlay_fdt, u32 overlay_fdt_size, ^ .. vim +/folio +53 include/asm-generic/cacheflush.h 39 40 #ifndef flush_cache_page 41 static inline void flush_cache_page(struct vm_area_struct *vma, > 42 unsigned long vmaddr, 43 unsigned long pfn) 44 { 45 } 46 #endif 47 48 #ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 49 static inline void flush_dcache_page(struct page *page) 50 { 51 } 52 > 53 static inline void flush_dcache_folio(struct folio *folio) { } 54 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE 0 55 #define ARCH_IMPLEMENTS_FLUSH_DCACHE_FOLIO 56 #endif 57 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip