[arc:topic-mmu 15/32] arch/arc/mm/tlb.c:109:36: error: 'TLBDeleteEntry' undeclared

kernel test robot lkp at intel.com
Thu Aug 5 23:19:42 PDT 2021


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc.git topic-mmu
head:   aad84191703280f0aace986bff0afd917b77511e
commit: 44180330845d9748c468560312cd2ce28101325f [15/32] ARC: mm: retire MMUv1 and MMUv2 support
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=44180330845d9748c468560312cd2ce28101325f
        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 44180330845d9748c468560312cd2ce28101325f
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash arch/arc/mm/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   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:120:36: error: 'TLBInsertEntry' undeclared (first use in this function)
     120 |  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:389:6: warning: no previous prototype for 'create_tlb' [-Wmissing-prototypes]
     389 | 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,
         |      ^~~~~~~~~~~~~~~~~~~~


vim +/TLBDeleteEntry +109 arch/arc/mm/tlb.c

d7a512bfe0be37 Vineet Gupta 2015-04-06  105  
d7a512bfe0be37 Vineet Gupta 2015-04-06  106  static void tlb_entry_erase(unsigned int vaddr_n_asid)
d7a512bfe0be37 Vineet Gupta 2015-04-06  107  {
d7a512bfe0be37 Vineet Gupta 2015-04-06  108  	write_aux_reg(ARC_REG_TLBPD0, vaddr_n_asid | _PAGE_PRESENT);
d7a512bfe0be37 Vineet Gupta 2015-04-06 @109  	write_aux_reg(ARC_REG_TLBCOMMAND, TLBDeleteEntry);
d7a512bfe0be37 Vineet Gupta 2015-04-06  110  }
d7a512bfe0be37 Vineet Gupta 2015-04-06  111  
5a364c2a1762e8 Vineet Gupta 2015-02-06  112  static void tlb_entry_insert(unsigned int pd0, pte_t pd1)
d7a512bfe0be37 Vineet Gupta 2015-04-06  113  {
d7a512bfe0be37 Vineet Gupta 2015-04-06  114  	write_aux_reg(ARC_REG_TLBPD0, pd0);
d7a512bfe0be37 Vineet Gupta 2015-04-06  115  	write_aux_reg(ARC_REG_TLBPD1, pd1);
5a364c2a1762e8 Vineet Gupta 2015-02-06  116  
5a364c2a1762e8 Vineet Gupta 2015-02-06  117  	if (is_pae40_enabled())
5a364c2a1762e8 Vineet Gupta 2015-02-06  118  		write_aux_reg(ARC_REG_TLBPD1HI, (u64)pd1 >> 32);
5a364c2a1762e8 Vineet Gupta 2015-02-06  119  
d7a512bfe0be37 Vineet Gupta 2015-04-06 @120  	write_aux_reg(ARC_REG_TLBCOMMAND, TLBInsertEntry);
d7a512bfe0be37 Vineet Gupta 2015-04-06  121  }
d7a512bfe0be37 Vineet Gupta 2015-04-06  122  

:::::: The code at line 109 was first introduced by commit
:::::: d7a512bfe0be3790bae8465b4cb6c1bbca03c616 ARCv2: MMUv4: TLB programming Model changes

:::::: TO: Vineet Gupta <vgupta at synopsys.com>
:::::: CC: Vineet Gupta <vgupta at synopsys.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 30703 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-snps-arc/attachments/20210806/9c749454/attachment-0001.gz>


More information about the linux-snps-arc mailing list