diff options
author | David Abdurachmanov <david.abdurachmanov@gmail.com> | 2019-12-18 09:28:11 +0100 |
---|---|---|
committer | Paul Walmsley <paul.walmsley@sifive.com> | 2019-12-20 12:32:24 +0100 |
commit | 01f52e16b868ce22069425c69f2c8e3ef4077b5c (patch) | |
tree | 3ee2a5c827989e1d79d66ba4bebe79b87a2c8874 /drivers/soc/sifive/Makefile | |
parent | riscv: fix scratch register clearing in M-mode. (diff) | |
download | linux-01f52e16b868ce22069425c69f2c8e3ef4077b5c.tar.xz linux-01f52e16b868ce22069425c69f2c8e3ef4077b5c.zip |
riscv: define vmemmap before pfn_to_page calls
pfn_to_page & page_to_pfn depend on vmemmap being available before the calls
if kernel is configured with CONFIG_SPARSEMEM_VMEMMAP=y. This was caused
by NOMMU changes which moved vmemmap definition bellow functions definitions
calling pfn_to_page & page_to_pfn.
Noticed while compiled 5.5-rc2 kernel for Fedora/RISCV.
v2:
- Add a comment for vmemmap in source
Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Fixes: 6bd33e1ece52 ("riscv: add nommu support")
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
Diffstat (limited to 'drivers/soc/sifive/Makefile')
0 files changed, 0 insertions, 0 deletions