diff options
author | Pekka Enberg <[email protected]> | 2020-07-15 08:33:39 +0300 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2020-07-30 11:37:45 -0700 |
commit | 63bb76de4aeec833ae7ba05d85a7819ac4558126 (patch) | |
tree | 6b7d84d769d0ffe679eb7d7a2e3440a0d28c7b2b /kernel/time/timer.c | |
parent | 3e7b669c6c5375131db751e6e748af27bab318f6 (diff) |
mm: pgtable: Make generic pgprot_* macros available for no-MMU
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 <[email protected]>
Reviewed-by: Mike Rapoport <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Pekka Enberg <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'kernel/time/timer.c')
0 files changed, 0 insertions, 0 deletions