lkml.org 
[lkml]   [2022]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sched/core: Remove duplicated include
Date
Clean up the following includecheck warning:

./kernel/sched/core.c: stats.h is included more than once.
./kernel/sched/core.c: linux/sched/rseq_api.h is included more than
once.
./kernel/sched/core.c: autogroup.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
kernel/sched/core.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index ef31751c5799..22d5cf4c4ab5 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -74,15 +74,12 @@
#include <asm/tlb.h>

#define CREATE_TRACE_POINTS
-#include <linux/sched/rseq_api.h>
#include <trace/events/sched.h>
#undef CREATE_TRACE_POINTS

#include "sched.h"
-#include "stats.h"
#include "autogroup.h"

-#include "autogroup.h"
#include "pelt.h"
#include "smp.h"
#include "stats.h"
--
2.20.1.7.g153144c
\
 
 \ /
  Last update: 2022-03-17 02:46    [W:0.029 / U:0.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site