lkml.org 
[lkml]   [2023]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v2 4/4] mm, arch: add generic implementation of pfn_valid() for FLATMEM
    Date
    Mike Rapoport <rppt@kernel.org> writes:
    > From: "Mike Rapoport (IBM)" <rppt@kernel.org>
    >
    > Every architecture that supports FLATMEM memory model defines its own
    > version of pfn_valid() that essentially compares a pfn to max_mapnr.
    >
    > Use mips/powerpc version implemented as static inline as a generic
    > implementation of pfn_valid() and drop its per-architecture definitions.
    >
    > Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
    > Acked-by: Arnd Bergmann <arnd@arndb.de>
    > Acked-by: Guo Ren <guoren@kernel.org> # csky
    > Acked-by: Huacai Chen <chenhuacai@loongson.cn> # LoongArch
    > Acked-by: Stafford Horne <shorne@gmail.com> # OpenRISC
    > ---
    > arch/alpha/include/asm/page.h | 4 ----
    > arch/arc/include/asm/page.h | 1 -
    > arch/csky/include/asm/page.h | 1 -
    > arch/hexagon/include/asm/page.h | 1 -
    > arch/ia64/include/asm/page.h | 4 ----
    > arch/loongarch/include/asm/page.h | 13 -------------
    > arch/m68k/include/asm/page_no.h | 2 --
    > arch/microblaze/include/asm/page.h | 1 -
    > arch/mips/include/asm/page.h | 13 -------------
    > arch/nios2/include/asm/page.h | 9 ---------
    > arch/openrisc/include/asm/page.h | 2 --
    > arch/parisc/include/asm/page.h | 4 ----
    > arch/powerpc/include/asm/page.h | 9 ---------

    Acked-by: Michael Ellerman <mpe@ellerman.id.au> (powerpc)

    cheers

    \
     
     \ /
      Last update: 2023-03-27 00:01    [W:7.165 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site