x86/mm: thread pgprot_t through init_memory_mapping()
In preparation to support a pgprot_t argument for arch_add_memory(). It's required to move the prototype of init_memory_mapping() seeing the original location came before the definition of pgprot_t. Signed-off-by:Logan Gunthorpe <logang@deltatee.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Reviewed-by:
Dan Williams <dan.j.williams@intel.com> Acked-by:
Michal Hocko <mhocko@suse.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Dave Hansen <dave.hansen@linux.intel.com> Cc: Andy Lutomirski <luto@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Christoph Hellwig <hch@lst.de> Cc: David Hildenbrand <david@redhat.com> Cc: Eric Badger <ebadger@gigaio.com> Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Paul Mackerras <paulus@samba.org> Cc: Will Deacon <will@kernel.org> Link: http://lkml.kernel.org/r/20200306170846.9333-4-logang@deltatee.com Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/x86/include/asm/page_types.h 0 additions, 3 deletionsarch/x86/include/asm/page_types.h
- arch/x86/include/asm/pgtable.h 3 additions, 0 deletionsarch/x86/include/asm/pgtable.h
- arch/x86/kernel/amd_gart_64.c 2 additions, 1 deletionarch/x86/kernel/amd_gart_64.c
- arch/x86/mm/init.c 5 additions, 4 deletionsarch/x86/mm/init.c
- arch/x86/mm/init_32.c 2 additions, 1 deletionarch/x86/mm/init_32.c
- arch/x86/mm/init_64.c 18 additions, 14 deletionsarch/x86/mm/init_64.c
- arch/x86/mm/mm_internal.h 2 additions, 1 deletionarch/x86/mm/mm_internal.h
- arch/x86/platform/uv/bios_uv.c 2 additions, 1 deletionarch/x86/platform/uv/bios_uv.c
Please register or sign in to comment