[linux-next:master 9572/9613] arch/arm64/kernel/mte.c:138:17: error: 'struct thread_struct' has no member named 'sctlr_tcf0'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   c6b11acc5f85b6e11d128fad8e0b7b223aa7e33f
commit: 3394cb084a8d6f5125c69406e5f2909921ecdd07 [9572/9613] arm64: mte: add in-kernel MTE helpers
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.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/next/linux-next.git/commit/?id=3394cb084a8d6f5125c69406e5f2909921ecdd07
        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 3394cb084a8d6f5125c69406e5f2909921ecdd07
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

   arch/arm64/kernel/mte.c: In function 'set_sctlr_el1_tcf0':
>> arch/arm64/kernel/mte.c:138:17: error: 'struct thread_struct' has no member named 'sctlr_tcf0'
     138 |  current->thread.sctlr_tcf0 = tcf0;
         |                 ^
   At top level:
   arch/arm64/kernel/mte.c:130:13: warning: 'set_sctlr_el1_tcf0' defined but not used [-Wunused-function]
     130 | static void set_sctlr_el1_tcf0(u64 tcf0)
         |             ^~~~~~~~~~~~~~~~~~

vim +138 arch/arm64/kernel/mte.c

   129	
   130	static void set_sctlr_el1_tcf0(u64 tcf0)
   131	{
   132		/*
   133		 * mte_thread_switch() checks current->thread.sctlr_tcf0 as an
   134		 * optimisation. Disable preemption so that it does not see
   135		 * the variable update before the SCTLR_EL1.TCF0 one.
   136		 */
   137		preempt_disable();
 > 138		current->thread.sctlr_tcf0 = tcf0;
   139		update_sctlr_el1_tcf0(tcf0);
   140		preempt_enable();
   141	}
   142	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux