Skip to contentSkip to conversation

kernel: sched: Remove unnecessary struct declaration"

PATCH New Wan Jiabing 1 participant 1 message Apr 5, 2021 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel: sched: Remove unnecessary struct declaration"

struct sg_lb_stats is defined at 8043rd line.
The declaration and the definition are all independent on the MACRO. The declaration here is unnecessary. Remove it.

---
 kernel/sched/fair.c | 3 ---
 1 file changed, 3 deletions(-)
kernel/sched/fair.c +0 -3
index 794c2cb945f8..94e035da90c8 100644
@@ -8609,9 +8609,6 @@ static inline enum fbq_type fbq_classify_rq(struct rq *rq)
 }
 #endif /* CONFIG_NUMA_BALANCING */
 
-
-struct sg_lb_stats;
-
 /*
  * task_running_on_cpu - return 1 if @p is running on @cpu.
  */
Signature · 1 line
2.30.2