Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ARM: dt: Only print warning, not WARN() on bad cpu map in device tree

Due to recent changes and expecations of proper cpu bindings, there are
now cases for many of the in-tree devicetrees where a WARN() will hit
on boot due to badly formatted /cpus nodes.

Downgrade this to a pr_warn() to be less alarmist, since it's not a
new problem.

Tested on Arndale, Cubox, Seaboard and Panda ES. Panda hits the WARN
without this, the others do not.

Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Olof Johansson and committed by
Linus Torvalds
8d5bc1a6 133841ca

+3 -2
+3 -2
arch/arm/kernel/devtree.c
··· 152 152 tmp_map[i] = hwid; 153 153 } 154 154 155 - if (WARN(!bootcpu_valid, "DT missing boot CPU MPIDR[23:0], " 156 - "fall back to default cpu_logical_map\n")) 155 + if (!bootcpu_valid) { 156 + pr_warn("DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map\n"); 157 157 return; 158 + } 158 159 159 160 /* 160 161 * Since the boot CPU node contains proper data, and all nodes have