riscv: remove unused header
authortanzirh@google.com <tanzirh@google.com>
Tue, 12 Dec 2023 00:20:14 +0000 (00:20 +0000)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 27 Mar 2024 14:23:23 +0000 (07:23 -0700)
arch/riscv/kernel/sys_riscv.c builds without using anything
from asm-generic/mman-common.h. There seems to be no reason
to include this file.

Signed-off-by: Tanzir Hasan <tanzirh@google.com>
Fixes: 9e2e6042a7ec ("riscv: Allow PROT_WRITE-only mmap()")
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20231212-removeasmgeneric-v2-1-a0e6d7df34a7@google.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/sys_riscv.c

index f1c1416a9f1e51d320e57a92e75fb2219695e00a..64155323cc923a26b22abdd9357869c894bd0e17 100644 (file)
@@ -7,7 +7,6 @@
 
 #include <linux/syscalls.h>
 #include <asm/cacheflush.h>
-#include <asm-generic/mman-common.h>
 
 static long riscv_sys_mmap(unsigned long addr, unsigned long len,
                           unsigned long prot, unsigned long flags,