]> git.baikalelectronics.ru Git - kernel.git/commit
sh: switch to NO_BOOTMEM
authorRob Herring <robh@kernel.org>
Fri, 11 May 2018 13:45:59 +0000 (08:45 -0500)
committerRich Felker <dalias@libc.org>
Fri, 11 May 2018 17:35:46 +0000 (13:35 -0400)
commit77d5137a6d87c5603a89b83d4b04b916b70e4578
tree86b533b87054557d15fa45d89df957f1389d053e
parent65ff4a9ceaececcddc0aee588dd8782485ad2abd
sh: switch to NO_BOOTMEM

Commit 8afc609efdbd ("of/fdt: use memblock_virt_alloc for early alloc")
inadvertently switched the DT unflattening allocations from memblock to
bootmem which doesn't work because the unflattening happens before
bootmem is initialized. Swapping the order of bootmem init and
unflattening could also fix this, but removing bootmem is desired. So
enable NO_BOOTMEM on SH like other architectures have done.

Fixes: 8afc609efdbd ("of/fdt: use memblock_virt_alloc for early alloc")
Reported-by: Rich Felker <dalias@libc.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/Kconfig
arch/sh/kernel/setup.c
arch/sh/mm/init.c
arch/sh/mm/numa.c