2023-10-18 06:28:28

by Jiapeng Chong

[permalink] [raw]
Subject: [PATCH] sched/fair: Remove duplicate include

./kernel/sched/fair.c: linux/sched/cond_resched.h is included more than once.

Reported-by: Abaci Robot <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6907
Signed-off-by: Jiapeng Chong <[email protected]>
---
kernel/sched/fair.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index c50271f39d91..2da4f8884487 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -51,8 +51,6 @@

#include <asm/switch_to.h>

-#include <linux/sched/cond_resched.h>
-
#include "sched.h"
#include "stats.h"
#include "autogroup.h"
--
2.20.1.7.g153144c


Subject: [tip: sched/core] sched/fair: Remove duplicate #include

The following commit has been merged into the sched/core branch of tip:

Commit-ID: 1b7ef2d94ff4cb0b1186a224a97349864820c606
Gitweb: https://git.kernel.org/tip/1b7ef2d94ff4cb0b1186a224a97349864820c606
Author: Jiapeng Chong <[email protected]>
AuthorDate: Wed, 18 Oct 2023 14:27:59 +08:00
Committer: Ingo Molnar <[email protected]>
CommitterDate: Wed, 18 Oct 2023 10:32:31 +02:00

sched/fair: Remove duplicate #include

./kernel/sched/fair.c: linux/sched/cond_resched.h is included more than once.

Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]

Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6907
---
kernel/sched/fair.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 38d757c..9ae2208 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -51,8 +51,6 @@

#include <asm/switch_to.h>

-#include <linux/sched/cond_resched.h>
-
#include "sched.h"
#include "stats.h"
#include "autogroup.h"