All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-integrator:test 19/20] arch/arm64/kernel/process.c:254:38: error: 'struct pt_regs' has no member named 'tpidr_el0'
@ 2025-07-06 10:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-06 10:39 UTC (permalink / raw)
  To: Linus Walleij; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git test
head:   8b1e1464468a7008b34dfc6a7e6c78717fc6f780
commit: d5db10c9b184fff42b765bf07ae22ff84fd538f7 [19/20] HACK: write to fields instead of regs
config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20250706/202507061818.c1EBHJrV-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250706/202507061818.c1EBHJrV-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507061818.c1EBHJrV-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/arm64/kernel/process.c: In function 'tls_thread_flush':
>> arch/arm64/kernel/process.c:254:38: error: 'struct pt_regs' has no member named 'tpidr_el0'
     254 |                 task_pt_regs(current)->tpidr_el0 = 0;
         |                                      ^~
>> arch/arm64/kernel/process.c:270:46: error: 'struct pt_regs' has no member named 'tpidrro_el0'
     270 |                         task_pt_regs(current)->tpidrro_el0 = 0;
         |                                              ^~
   arch/arm64/kernel/process.c: In function 'tls_preserve_current_state':
   arch/arm64/kernel/process.c:528:64: error: 'struct pt_regs' has no member named 'tpidr_el0'
     528 |                 *task_user_tls(current) = task_pt_regs(current)->tpidr_el0;
         |                                                                ^~
   arch/arm64/kernel/process.c: In function 'tls_thread_switch':
   arch/arm64/kernel/process.c:541:46: error: 'struct pt_regs' has no member named 'tpidrro_el0'
     541 |                         task_pt_regs(current)->tpidrro_el0 = next->thread.uw.tp_value;
         |                                              ^~
   arch/arm64/kernel/process.c:546:46: error: 'struct pt_regs' has no member named 'tpidrro_el0'
     546 |                         task_pt_regs(current)->tpidrro_el0 = 0;
         |                                              ^~
   arch/arm64/kernel/process.c:552:38: error: 'struct pt_regs' has no member named 'tpidr_el0'
     552 |                 task_pt_regs(current)->tpidr_el0 = *task_user_tls(next);
         |                                      ^~


vim +254 arch/arm64/kernel/process.c

   250	
   251	static void tls_thread_flush(void)
   252	{
   253		if (IS_ENABLED(CONFIG_DYNAMIC_STACK))
 > 254			task_pt_regs(current)->tpidr_el0 = 0;
   255		else
   256			write_sysreg(0, tpidr_el0);
   257		if (system_supports_tpidr2())
   258			write_sysreg_s(0, SYS_TPIDR2_EL0);
   259	
   260		if (is_compat_task()) {
   261			current->thread.uw.tp_value = 0;
   262	
   263			/*
   264			 * We need to ensure ordering between the shadow state and the
   265			 * hardware state, so that we don't corrupt the hardware state
   266			 * with a stale shadow state during context switch.
   267			 */
   268			barrier();
   269			if (IS_ENABLED(CONFIG_DYNAMIC_STACK))
 > 270				task_pt_regs(current)->tpidrro_el0 = 0;
   271			else
   272				write_sysreg(0, tpidrro_el0);
   273		}
   274	}
   275	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2025-07-06 10:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-06 10:39 [arm-integrator:test 19/20] arch/arm64/kernel/process.c:254:38: error: 'struct pt_regs' has no member named 'tpidr_el0' kernel test robot

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.