Skip to content
Commit 01f52e16 authored by David Abdurachmanov's avatar David Abdurachmanov Committed by Paul Walmsley
Browse files

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: default avatarDavid Abdurachmanov <david.abdurachmanov@sifive.com>
Fixes: 6bd33e1e ("riscv: add nommu support")
Reviewed-by: default avatarAnup Patel <anup@brainfault.org>
Signed-off-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
parent d411cf02
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment