All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 9572/9613] arch/arm64/kernel/mte.c:138:17: error: 'struct thread_struct' has no member named 'sctlr_tcf0'
@ 2020-11-30 12:37 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-11-30 12:37 UTC (permalink / raw)
  To: Vincenzo Frascino
  Cc: kbuild-all, Linux Memory Management List, Andrey Konovalov,
	Catalin Marinas, Andrew Morton

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

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@intel.com>

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@lists.01.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [linux-next:master 9572/9613] arch/arm64/kernel/mte.c:138:17: error: 'struct thread_struct' has no member named 'sctlr_tcf0'
@ 2020-11-30 12:37 ` kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-11-30 12:37 UTC (permalink / raw)
  To: kbuild-all

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

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@intel.com>

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(a)lists.01.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-next:master 9572/9613] arch/arm64/kernel/mte.c:138:17: error: 'struct thread_struct' has no member named 'sctlr_tcf0'
  2020-11-30 12:37 ` kernel test robot
@ 2020-11-30 13:04   ` Catalin Marinas
  -1 siblings, 0 replies; 4+ messages in thread
From: Catalin Marinas @ 2020-11-30 13:04 UTC (permalink / raw)
  To: kernel test robot
  Cc: Vincenzo Frascino, kbuild-all, Linux Memory Management List,
	Andrey Konovalov, Andrew Morton, Stephen Rothwell, Will Deacon

On Mon, Nov 30, 2020 at 08:37:50PM +0800, kernel test robot wrote:
> 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@intel.com>
> 
> 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)

I think that's caused by the conflicts between the arm64 and the mm
trees Stephen reported earlier. They are non-trivial and likely
something got wrong in the conflict resolution (my fault for not
checking before pushing the branch, not blaming Stephen ;)).

I dropped the conflicting patches from the arm64 tree.

Thanks.

-- 
Catalin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-next:master 9572/9613] arch/arm64/kernel/mte.c:138:17: error: 'struct thread_struct' has no member named 'sctlr_tcf0'
@ 2020-11-30 13:04   ` Catalin Marinas
  0 siblings, 0 replies; 4+ messages in thread
From: Catalin Marinas @ 2020-11-30 13:04 UTC (permalink / raw)
  To: kbuild-all

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

On Mon, Nov 30, 2020 at 08:37:50PM +0800, kernel test robot wrote:
> 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@intel.com>
> 
> 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)

I think that's caused by the conflicts between the arm64 and the mm
trees Stephen reported earlier. They are non-trivial and likely
something got wrong in the conflict resolution (my fault for not
checking before pushing the branch, not blaming Stephen ;)).

I dropped the conflicting patches from the arm64 tree.

Thanks.

-- 
Catalin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-30 13:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-30 12:37 [linux-next:master 9572/9613] arch/arm64/kernel/mte.c:138:17: error: 'struct thread_struct' has no member named 'sctlr_tcf0' kernel test robot
2020-11-30 12:37 ` kernel test robot
2020-11-30 13:04 ` Catalin Marinas
2020-11-30 13:04   ` Catalin Marinas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.