lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108061434.r1KZlX0f-lkp@intel.com>
Date:   Fri, 6 Aug 2021 14:19:42 +0800
From:   kernel test robot <lkp@...el.com>
To:     Vineet Gupta <vgupta@...opsys.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        linux-snps-arc@...ts.infradead.org
Subject: [arc:topic-mmu 15/32] arch/arc/mm/tlb.c:109:36: error:
 'TLBDeleteEntry' undeclared

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

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

Download attachment ".config.gz" of type "application/gzip" (30703 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ