Skip to contentSkip to conversation

arm64/kernel: remove duplicate include in process.c

PATCH Applied [email protected] 3 participants 3 messages Sep 2, 2021 – Sep 16, 2021 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64/kernel: remove duplicate include in process.c

From: Lv Ruyi <[email protected]>

Remove all but the first include of linux/sched.h from process.c

---
 arch/arm64/kernel/process.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/kernel/process.c +0 -1
index 19100fe8f7e4..1a1213cca173 100644
@@ -18,7 +18,6 @@
 #include <linux/mman.h>
 #include <linux/mm.h>
 #include <linux/nospec.h>
-#include <linux/sched.h>
 #include <linux/stddef.h>
 #include <linux/sysctl.h>
 #include <linux/unistd.h>
Signature · 1 line
2.25.1
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 15 lines · On Wed, Sep 01, 2021 at 06:11:26PM -0700, [email protected] wrote:

From: Lv Ruyi <[email protected]>

Remove all but the first include of linux/sched.h from process.c

---
 arch/arm64/kernel/process.c | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/kernel/process.c +0 -0
index 19100fe8f7e4..1a1213cca173 100644

arch/arm64/kernel/process.c line 23

Quoted 7 lines
arch/arm64/kernel/process.c +0 -1
@@ -18,7 +18,6 @@
 #include <linux/mman.h>
 #include <linux/mm.h>
 #include <linux/nospec.h>
-#include <linux/sched.h>
 #include <linux/stddef.h>
 #include <linux/sysctl.h>
 #include <linux/unistd.h>

For the benefit of other reviewers, while it's not obvious from the patch context, arlier in the includes (which aren't currently sorted), there's a block with:

| #include <linux/sched.h>
| #include <linux/sched/debug.h>
| #include <linux/sched/task.h>
| #include <linux/sched/task_stack.h>

... and so this patch looks good to me:

IMO it would be nice to sort the includes if that's not too churny (but that should be a separate patch).

Thanks,
Mark.

maintainer Applied
#2 lore raw
In reply to [email protected]
Quoted 1 line · On Wed, 1 Sep 2021 18:11:26 -0700, [email protected] wrote:

Remove all but the first include of linux/sched.h from process.c

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64/kernel: remove duplicate include in process.c

      https://git.kernel.org/arm64/c/861dc4f52e69
Signature · 7 lines
Catalin


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