From: kernel test robot <lkp@intel.com>
To: Will Deacon <will@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [arm-perf:cpu-hotplug 15/17] arch/arm64/kernel/smp.c:139:26: sparse: sparse: cast to non-scalar
Date: Tue, 26 Aug 2025 15:04:42 +0800 [thread overview]
Message-ID: <202508261428.UDJLSGab-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git cpu-hotplug
head: cd36ff144dcb1aaaf6934be509232df463916321
commit: 2d5b8df5d4e2bbc142e3b4f21cabbca96e3da79d [15/17] Add error handling
config: arm64-randconfig-r113-20250826 (https://download.01.org/0day-ci/archive/20250826/202508261428.UDJLSGab-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project d26ea02060b1c9db751d188b2edb0059a9eb273d)
reproduce: (https://download.01.org/0day-ci/archive/20250826/202508261428.UDJLSGab-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/202508261428.UDJLSGab-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> arch/arm64/kernel/smp.c:139:26: sparse: sparse: cast to non-scalar
>> arch/arm64/kernel/smp.c:139:26: sparse: sparse: cast from non-scalar
vim +139 arch/arm64/kernel/smp.c
133
134 void arch_cpuhp_cleanup_kick_cpu(unsigned int cpu, bool is_alive)
135 {
136 union secondary_status status;
137
138 if (is_alive) {
> 139 status = READ_ONCE(secondary_data.status);
140 if (!status.val)
141 return;
142 } else {
143 status.val = READ_ONCE(__early_cpu_boot_status);
144 }
145
146 /* A CPU has failed to boot. Try to figure out what happened. */
147 if (smp_parallel_bringup)
148 pr_warn_once("Parallel CPU bringup failed; consider passing \"cpuhp.parallel=off\" for a more accurate diagnosis.\n");
149 else
150 secondary_data.task = NULL;
151
152 if (is_alive) {
153 if (status.flags[CPU_PANIC_KERNEL])
154 panic("CPU%u detected unsupported configuration\n", cpu);
155
156 if (status.flags[CPU_KILL_ME]) {
157 if (!cpu_present(cpu) && !op_cpu_kill(cpu)) {
158 pr_crit("CPU%u: died during early boot\n", cpu);
159 return;
160 }
161 }
162 } else {
163 if (status.early_flags[EARLY_CPU_STUCK_REASON_52_BIT_VA]) {
164 pr_crit_once("CPU%u detected lack of support for 52-bit VAs\n",
165 cpu);
166 }
167
168 if (status.early_flags[EARLY_CPU_STUCK_REASON_NO_GRAN]) {
169 pr_crit_once("CPU%u detected lack of support for %luK granules\n",
170 cpu, PAGE_SIZE / SZ_1K);
171 }
172 }
173
174 pr_crit_once("CPUs may be stuck in kernel\n");
175 cpus_stuck_in_kernel = true;
176 }
177
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-08-26 7:05 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=202508261428.UDJLSGab-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=will@kernel.org \
/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.