Skip to contentSkip to conversation

riscv: remove unused header

PATCH Applied [email protected] 3 participants 3 messages Dec 12, 2023 – Apr 10, 2024 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---

---
Changes in v2:
- Changed name to riscv: remove unused header
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 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]>
Reviewed-by Tested-by on v2 1/1
#1 lore raw
Quoted 6 lines · On Mon, Dec 11, 2023 at 4:20 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.

Thanks for the patch!

Fixes 9e2e6042a7ec ("riscv: Allow PROT_WRITE-only mmap()")
Quoted 3 lines

---

---

You're still getting funky extra ---; let's take a look later at how you're using b4 together offline. It's not a problem for me to apply the patch, but something still isn't quite right. (Do not send a v3 over this)

Quoted 28 lines

Changes in v2:
- Changed name to riscv: remove unused header
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 arch/riscv/kernel/sys_riscv.c | 1 -
 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

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

Signature · 7 lines
Thanks,
~Nick Desaulniers

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
#2 lore raw
In reply to [email protected]
This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt <[email protected]>:

Hello:

This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt <[email protected]>:

Quoted 8 lines · On Tue, 12 Dec 2023 00:20:14 +0000 you 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.

---

[...]

Here is the summary with links:
- [v2] riscv: remove unused header

    https://git.kernel.org/riscv/c/84c3a079ab98

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html