tree: https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-mmu head: aad84191703280f0aace986bff0afd917b77511e commit: d6ebfa35edcd6b043526f8d4dc6425f8c8afe3ae [25/32] ARC: mm: disintegrate mmu.h (arcv2 bits out) config: arc-randconfig-r012-20210805 (attached as .config) compiler: arceb-elf-gcc (GCC) 10.3.0 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/vgupta/arc.git/commit/?id=d6ebfa35edcd6b043526f8d4dc6425f8c8afe3ae git remote add arc https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git git fetch --no-tags arc topic-mmu git checkout d6ebfa35edcd6b043526f8d4dc6425f8c8afe3ae # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <l...@intel.com> All warnings (new ones prefixed by >>): In file included from arch/arc/include/asm/mmu_context.h:22, from arch/arc/mm/tlb.c:15: >> arch/arc/include/asm/mmu-arcv2.h:79:1: warning: 'inline' is not at beginning >> of declaration [-Wold-style-declaration] 79 | static void inline mmu_setup_asid(struct mm_struct *mm, unsigned long asid) | ^~~~~~ arch/arc/include/asm/mmu-arcv2.h:84:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] 84 | static void inline mmu_setup_pgd(struct mm_struct *mm, pgd_t *pgd) | ^~~~~~ In file included from arch/arc/include/asm/arcregs.h:149, from arch/arc/include/asm/irqflags-compact.h:16, from arch/arc/include/asm/irqflags.h:11, from include/linux/irqflags.h:16, from arch/arc/include/asm/smp.h:102, from arch/arc/include/asm/cmpxchg.h:13, from arch/arc/include/asm/atomic.h:13, from include/linux/atomic.h:7, from include/asm-generic/bitops/lock.h:5, from arch/arc/include/asm/bitops.h:188, from include/linux/bitops.h:32, from include/linux/kernel.h:12, from include/linux/list.h:9, from include/linux/module.h:12, from arch/arc/mm/tlb.c:9: arch/arc/mm/tlb.c: In function 'tlb_entry_erase': arch/arc/mm/tlb.c:109:36: error: 'TLBDeleteEntry' undeclared (first use in this function) 109 | write_aux_reg(ARC_REG_TLBCOMMAND, TLBDeleteEntry); | ^~~~~~~~~~~~~~ include/soc/arc/aux.h:14:61: note: in definition of macro 'write_aux_reg' 14 | #define write_aux_reg(r, v) __builtin_arc_sr((unsigned int)(v), r) | ^ arch/arc/mm/tlb.c:109:36: note: each undeclared identifier is reported only once for each function it appears in 109 | write_aux_reg(ARC_REG_TLBCOMMAND, TLBDeleteEntry); | ^~~~~~~~~~~~~~ include/soc/arc/aux.h:14:61: note: in definition of macro 'write_aux_reg' 14 | #define write_aux_reg(r, v) __builtin_arc_sr((unsigned int)(v), r) | ^ arch/arc/mm/tlb.c: In function 'tlb_entry_insert': arch/arc/mm/tlb.c:123:36: error: 'TLBInsertEntry' undeclared (first use in this function) 123 | write_aux_reg(ARC_REG_TLBCOMMAND, TLBInsertEntry); | ^~~~~~~~~~~~~~ include/soc/arc/aux.h:14:61: note: in definition of macro 'write_aux_reg' 14 | #define write_aux_reg(r, v) __builtin_arc_sr((unsigned int)(v), r) | ^ arch/arc/mm/tlb.c: At top level: arch/arc/mm/tlb.c:392:6: warning: no previous prototype for 'create_tlb' [-Wmissing-prototypes] 392 | void create_tlb(struct vm_area_struct *vma, unsigned long vaddr, pte_t *ptep) | ^~~~~~~~~~ arch/arc/mm/tlb.c:756:6: warning: no previous prototype for 'do_tlb_overlap_fault' [-Wmissing-prototypes] 756 | void do_tlb_overlap_fault(unsigned long cause, unsigned long address, | ^~~~~~~~~~~~~~~~~~~~ -- In file included from arch/arc/include/asm/mmu_context.h:22, from include/linux/mmu_context.h:5, from arch/arc/mm/cache.c:13: >> arch/arc/include/asm/mmu-arcv2.h:79:1: warning: 'inline' is not at beginning >> of declaration [-Wold-style-declaration] 79 | static void inline mmu_setup_asid(struct mm_struct *mm, unsigned long asid) | ^~~~~~ arch/arc/include/asm/mmu-arcv2.h:84:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] 84 | static void inline mmu_setup_pgd(struct mm_struct *mm, pgd_t *pgd) | ^~~~~~ arch/arc/mm/cache.c:584:15: warning: no previous prototype for 'slc_op_rgn' [-Wmissing-prototypes] 584 | noinline void slc_op_rgn(phys_addr_t paddr, unsigned long sz, const int op) | ^~~~~~~~~~ arch/arc/mm/cache.c:647:15: warning: no previous prototype for 'slc_op_line' [-Wmissing-prototypes] 647 | noinline void slc_op_line(phys_addr_t paddr, unsigned long sz, const int op) | ^~~~~~~~~~~ arch/arc/mm/cache.c:1072:22: warning: no previous prototype for 'arc_ioc_setup' [-Wmissing-prototypes] 1072 | noinline void __init arc_ioc_setup(void) | ^~~~~~~~~~~~~ arch/arc/mm/cache.c:1134:13: warning: no previous prototype for 'arc_cache_init_master' [-Wmissing-prototypes] 1134 | void __init arc_cache_init_master(void) | ^~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/perf_event.h:25, from include/linux/trace_events.h:10, from include/trace/syscall.h:7, from include/linux/syscalls.h:87, from arch/arc/mm/cache.c:14: arch/arc/include/asm/perf_event.h:126:23: warning: 'arc_pmu_cache_map' defined but not used [-Wunused-const-variable=] 126 | static const unsigned arc_pmu_cache_map[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { | ^~~~~~~~~~~~~~~~~ arch/arc/include/asm/perf_event.h:91:27: warning: 'arc_pmu_ev_hw_map' defined but not used [-Wunused-const-variable=] 91 | static const char * const arc_pmu_ev_hw_map[] = { | ^~~~~~~~~~~~~~~~~ vim +/inline +79 arch/arc/include/asm/mmu-arcv2.h 78 > 79 static void inline mmu_setup_asid(struct mm_struct *mm, unsigned long asid) 80 { 81 write_aux_reg(ARC_REG_PID, asid | MMU_ENABLE); 82 } 83 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip
_______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc