• Anshuman Khandual's avatar
    sparc/mm: move protection_map[] inside the platform · 25740d31
    Anshuman Khandual authored
    This moves protection_map[] inside the platform and while here, also
    enable ARCH_HAS_VM_GET_PAGE_PROT on 32 bit platforms via
    DECLARE_VM_GET_PAGE_PROT.
    
    Link: https://lkml.kernel.org/r/20220711070600.2378316-5-anshuman.khandual@arm.com
    
    Signed-off-by: default avatarAnshuman Khandual <anshuman.khandual@arm.com>
    Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Brian Cain <bcain@quicinc.com>
    Cc: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
    Cc: Christoph Hellwig <hch@infradead.org>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Chris Zankel <chris@zankel.net>
    Cc: Dinh Nguyen <dinguyen@kernel.org>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: Guo Ren <guoren@kernel.org>
    Cc: Heiko Carstens <hca@linux.ibm.com>
    Cc: Huacai Chen <chenhuacai@kernel.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
    Cc: Je...
    25740d31
init_64.c 77 KB