[PATCH] riscv: mm: fix 2 instances of -Wmissing-variable-declarations
Nick Desaulniers
ndesaulniers at google.com
Tue Aug 8 09:27:19 PDT 2023
On Tue, Aug 8, 2023 at 9:24 AM Nathan Chancellor <nathan at kernel.org> wrote:
>
> On Tue, Aug 08, 2023 at 09:15:41AM -0700, Nick Desaulniers wrote:
> > diff --git a/arch/riscv/include/asm/pgtable.h b/arch/riscv/include/asm/pgtable.h
> > index 75970ee2bda2..4c8c0f83a974 100644
> > --- a/arch/riscv/include/asm/pgtable.h
> > +++ b/arch/riscv/include/asm/pgtable.h
> > @@ -188,6 +188,7 @@ extern struct pt_alloc_ops pt_ops __initdata;
> > #define PAGE_KERNEL_IO __pgprot(_PAGE_IOREMAP)
> >
> > extern pgd_t swapper_pg_dir[];
> > +extern pgd_t trampoline_pg_dir[];
>
> Missing early_pg_dir too? It looks like there is already a declaration
> in arch/riscv/mm/kasan_init.c that could be hoisted here?
Yep, will respin. Good catch!
--
Thanks,
~Nick Desaulniers
More information about the linux-riscv
mailing list