arm64/kernel: remove duplicate include in process.c
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
@@ -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
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.hfromprocess.cReported-by Zeal Robot <[email protected]>Signed-off-by Lv Ruyi <[email protected]>--- arch/arm64/kernel/process.c | 1 - 1 file changed, 1 deletion(-)arch/arm64/kernel/process.c +0
-0
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.
Quoted 1 line · On Wed, 1 Sep 2021 18:11:26 -0700, [email protected] wrote:
Remove all but the first include of
linux/sched.hfromprocess.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