Skip to contentSkip to conversation

sched/headers: Remove duplicated struct rq declare

PATCH In review WangJinchao 3 participants 3 messages Dec 7, 2023 – Dec 18, 2023 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched/headers: Remove duplicated struct rq declare

struct rq has been declared at the top of the file, so remove the second declaration.

---
 kernel/sched/sched.h | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/sched.h +0 -1
index 2e5a95486a42..349c90554bd8 100644
@@ -931,7 +931,6 @@ struct uclamp_rq {
 DECLARE_STATIC_KEY_FALSE(sched_uclamp_used);
 #endif /* CONFIG_UCLAMP_TASK */
 
-struct rq;
 struct balance_callback {
 	struct balance_callback *next;
 	void (*func)(struct rq *rq);
Signature · 1 line
2.40.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 13 lines · WangJinchao

struct rq has been declared at the top of the file, so remove the second declaration.

---
 kernel/sched/sched.h | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/sched.h +0 -0
index 2e5a95486a42..349c90554bd8 100644

kernel/sched/sched.h struct uclamp_rq { · line 936

Quoted 7 lines
kernel/sched/sched.h +0 -1
@@ -931,7 +931,6 @@ struct uclamp_rq {
 DECLARE_STATIC_KEY_FALSE(sched_uclamp_used);
 #endif /* CONFIG_UCLAMP_TASK */
 
-struct rq;
 struct balance_callback {
 	struct balance_callback *next;
 	void (*func)(struct rq *rq);

Tim

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to WangJinchao
Quoted 5 lines · WangJinchao

struct rq has been declared at the top of the file, so remove the second declaration.

Quoted 19 lines
---
 kernel/sched/sched.h | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/sched.h +0 -2
index 2e5a95486a42..349c90554bd8 100644
@@ -931,7 +931,6 @@ struct uclamp_rq {
 DECLARE_STATIC_KEY_FALSE(sched_uclamp_used);
 #endif /* CONFIG_UCLAMP_TASK */
 
-struct rq;
 struct balance_callback {
        struct balance_callback *next;
        void (*func)(struct rq *rq);
--

2.40.0