Skip to content

Commit 84c3a07

Browse files
tanzirh@google.compalmer-dabbelt
authored andcommitted
riscv: remove unused header
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: 9e2e604 ("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>
1 parent 36d37f1 commit 84c3a07

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/riscv/kernel/sys_riscv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include <linux/syscalls.h>
99
#include <asm/cacheflush.h>
10-
#include <asm-generic/mman-common.h>
1110

1211
static long riscv_sys_mmap(unsigned long addr, unsigned long len,
1312
unsigned long prot, unsigned long flags,

0 commit comments

Comments
 (0)