All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [arm-integrator:test 19/20] arch/arm64/kernel/process.c:254:38: error: 'struct pt_regs' has no member named 'tpidr_el0'
Date: Sun, 6 Jul 2025 18:39:37 +0800	[thread overview]
Message-ID: <202507061818.c1EBHJrV-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-07-06 10:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202507061818.c1EBHJrV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linus.walleij@linaro.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.