linux-snps-arc.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [arc:topic-mmu 15/32] arch/arc/mm/tlb.c:109:36: error: 'TLBDeleteEntry' undeclared
@ 2021-08-06  6:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-06  6:19 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: kbuild-all, linux-kernel, linux-snps-arc

[-- Attachment #1: Type: text/plain, Size: 5613 bytes --]

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@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@synopsys.com>
:::::: CC: Vineet Gupta <vgupta@synopsys.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 30703 bytes --]

[-- Attachment #3: Type: text/plain, Size: 170 bytes --]

_______________________________________________
linux-snps-arc mailing list
linux-snps-arc@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-snps-arc

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-06  6:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-06  6:19 [arc:topic-mmu 15/32] arch/arc/mm/tlb.c:109:36: error: 'TLBDeleteEntry' undeclared kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).