Re: [PATCH v2] define vmemmap before pfn_to_page calls
From: Paul Walmsley
Date: Fri Dec 20 2019 - 06:08:44 EST
On Wed, 18 Dec 2019, David Abdurachmanov wrote:
> 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@xxxxxxxxxx>
> Fixes: 6bd33e1ece52 ("riscv: add nommu support")
> Reviewed-by: Anup Patel <anup@xxxxxxxxxxxxxx>
This looks like it was due to my error when resolving the merge conflicts,
not Christoph's. Queued for v5.5-rc, thanks David.
- Paul