[PATCH v2 1/2] mm: pgtable: Make generic pgprot_* macros available for no-MMU

Palmer Dabbelt palmerdabbelt at google.com
Tue Jul 21 23:29:25 EDT 2020


On Thu, 16 Jul 2020 23:14:10 PDT (-0700), penberg at gmail.com wrote:
> On Wed, 15 Jul 2020, Pekka Enberg wrote:
>> > From: Pekka Enberg <penberg at kernel.org>
>> >
>> > The <linux/pgtable.h> header defines some generic pgprot_*
>> > implementations, but they are only available when CONFIG_MMU is enabled.
>> > The RISC-V architecture, for example, therefore defines some of these
>> > pgprot_* macros for !NOMMU.
>> >
>> > Let's make the pgprot_* generic available even for !NOMMU so we can
>> > remove the RISC-V specific definitions.
>> >
>> > Compile-tested with x86 defconfig, and riscv defconfig and !MMU defconfig.
>> >
>> > Suggested-by: Palmer Dabbelt <palmerdabbelt at google.com>
>> > Reviewed-by: Mike Rapoport <rppt at linux.ibm.com>
>> > Cc: Tom Lendacky <thomas.lendacky at amd.com>
>> > Signed-off-by: Pekka Enberg <penberg at kernel.org>
>
> On Wed, Jul 15, 2020 at 8:39 PM David Rientjes <rientjes at google.com> wrote:
>> Acked-by: David Rientjes <rientjes at google.com>
>
> Palmer, will you pick up these patches in the riscv tree, or should I
> ask Andrew to queue them in -mm?

I just put them on for-next.  Thanks!



More information about the linux-riscv mailing list