Skip to contentSkip to conversation

arch/riscv/kernel/sys_riscv.c: removed asm-generic

PATCH Superseded [email protected] 2 participants 2 messages Dec 11, 2023 – Dec 12, 2023 RISC-V

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch/riscv/kernel/sys_riscv.c: removed asm-generic

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.

---

---
 arch/riscv/kernel/sys_riscv.c | 1 -
 1 file changed, 1 deletion(-)
arch/riscv/kernel/sys_riscv.c +0 -1
index a2ca5b7756a5..ebcaf386ea62 100644
@@ -14,7 +14,6 @@
 #include <asm/switch_to.h>
 #include <asm/uaccess.h>
 #include <asm/unistd.h>
-#include <asm-generic/mman-common.h>
 #include <vdso/vsyscall.h>
 
 static long riscv_sys_mmap(unsigned long addr, unsigned long len,

---
base-commit: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9
change-id: 20231211-removeasmgeneric-f6be13a42b6b

Best regards,

Signature · 1 line
Tanzir Hasan <[email protected]>
#1 lore raw
Quoted 10 lines · On Mon, Dec 11, 2023 at 2:52 PM <[email protected]> wrote:

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.

---

---
 arch/riscv/kernel/sys_riscv.c | 1 -

If you run git log arch/riscv/kernel/sys_riscv.c, you'll find the prefix used on the oneline of the commit for this file is generally one of:

- RISC-V:
- riscv:

You should choose one of the above rather than arch/riscv/kernel/sys_riscv.c:. Sorry I missed that in internal code review, but would you mind please sending a v2 with that fixed? I'd expect something like:

riscv: remove unused header

+Conor who pointed this out to me on IRC

Quoted 19 lines
 1 file changed, 1 deletion(-)
arch/riscv/kernel/sys_riscv.c +0 -2
index a2ca5b7756a5..ebcaf386ea62 100644
@@ -14,7 +14,6 @@
 #include <asm/switch_to.h>
 #include <asm/uaccess.h>
 #include <asm/unistd.h>
-#include <asm-generic/mman-common.h>
 #include <vdso/vsyscall.h>
 
 static long riscv_sys_mmap(unsigned long addr, unsigned long len,
 
---

base-commit: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9
change-id: 20231211-removeasmgeneric-f6be13a42b6b

Quoted 4 lines

Best regards,
--
Tanzir Hasan <[email protected]>

--
Thanks,
~Nick Desaulniers

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv