All of lore.kernel.org
 help / color / mirror / Atom feed
* [arm-perf:cpu-hotplug 15/17] arch/arm64/kernel/smp.c:139:26: sparse: sparse: cast to non-scalar
@ 2025-08-26  7:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-26  7:04 UTC (permalink / raw)
  To: Will Deacon; +Cc: oe-kbuild-all

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

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

only message in thread, other threads:[~2025-08-26  7:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-26  7:04 [arm-perf:cpu-hotplug 15/17] arch/arm64/kernel/smp.c:139:26: sparse: sparse: cast to non-scalar 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.