• Baoquan He's avatar
    s390: mm: convert to GENERIC_IOREMAP · b43b3fff
    Baoquan He authored
    By taking GENERIC_IOREMAP method, the generic generic_ioremap_prot(),
    generic_iounmap(), and their generic wrapper ioremap_prot(), ioremap() and
    iounmap() are all visible and available to arch.  Arch needs to provide
    wrapper functions to override the generic versions if there's arch
    specific handling in its ioremap_prot(), ioremap() or iounmap().  This
    change will simplify implementation by removing duplicated code with
    generic_ioremap_prot() and generic_iounmap(), and has the equivalent
    functioality as before.
    
    Here, add wrapper functions ioremap_prot() and iounmap() for s390's
    special operation when ioremap() and iounmap().
    
    And also replace including <asm-generic/io.h> with <asm/io.h> in
    arch/s390/kernel/perf_cpum_sf.c, otherwise building error will be seen
    because macro defined in <asm/io.h> can't be seen in perf_cpum_sf.c.
    
    Link: https://lkml.kernel.org/r/20230706154520.11257-11-bhe@redhat.comSigned-off-by: default avatarBaoquan He <bhe@redhat.com>
    Reviewed-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
    Tested-by: default avatarNiklas Schnelle <schnelle@linux.ibm.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
    Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
    Cc: Heiko Carstens <hca@linux.ibm.com>
    Cc: Vasily Gorbik <gor@linux.ibm.com>
    Cc: Alexander Gordeev <agordeev@linux.ibm.com>
    Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
    Cc: Sven Schnelle <svens@linux.ibm.com>
    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: Chris Zankel <chris@zankel.net>
    Cc: David Laight <David.Laight@ACULAB.COM>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Cc: Helge Deller <deller@gmx.de>
    Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
    Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
    Cc: Jonas Bonn <jonas@southpole.se>
    Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Max Filippov <jcmvbkbc@gmail.com>
    Cc: Michael Ellerman <mpe@ellerman.id.au>
    Cc: Nathan Chancellor <nathan@kernel.org>
    Cc: Nicholas Piggin <npiggin@gmail.com>
    Cc: Rich Felker <dalias@libc.org>
    Cc: Stafford Horne <shorne@gmail.com>
    Cc: Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
    Cc: Vineet Gupta <vgupta@kernel.org>
    Cc: Will Deacon <will@kernel.org>
    Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    b43b3fff
Kconfig 25.3 KB