Thread (10 messages) 10 messages, 7 authors, 2023-01-28

Re: [PATCH 1/3] m68k: use asm-generic/memory_model.h for both MMU and !MMU

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2023-01-26 08:20:54
Also in: linux-alpha, linux-arch, linux-m68k, linux-mips, linux-riscv, linux-sh, linux-um, lkml, loongarch, sparclinux

On Wed, Jan 25, 2023 at 8:08 PM Mike Rapoport [off-list ref] wrote:
From: "Mike Rapoport (IBM)" <rppt@kernel.org>

The MMU variant uses generic definitions of page_to_pfn() and
pfn_to_page(), but !MMU defines them in include/asm/page_no.h for no
good reason.

Include asm-generic/memory_model.h in the common include/asm/page.h and
drop redundant definitions.

Signed-off-by: Mike Rapoport (IBM) <rppt@kernel.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help