[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241012042828.471614-3-visitorckw@gmail.com>
Date: Sat, 12 Oct 2024 12:28:27 +0800
From: Kuan-Wei Chiu <visitorckw@...il.com>
To: akpm@...ux-foundation.org,
acme@...nel.org
Cc: peterz@...radead.org,
mingo@...hat.com,
namhyung@...nel.org,
mark.rutland@....com,
alexander.shishkin@...ux.intel.com,
jolsa@...nel.org,
irogers@...gle.com,
adrian.hunter@...el.com,
kan.liang@...ux.intel.com,
jserv@...s.ncku.edu.tw,
linux-kernel@...r.kernel.org,
linux-perf-users@...r.kernel.org,
Kuan-Wei Chiu <visitorckw@...il.com>
Subject: [PATCH 2/3] tools/lib/list_sort: Remove unnecessary header includes
Since lib/list_sort.c no longer requires ARRAY_SIZE() and memset(), the
includes for kernel.h, bug.h, and string.h have been removed.
Similarly, tools/lib/list_sort.c also does not need to include these
headers, so they have been removed as well.
Signed-off-by: Kuan-Wei Chiu <visitorckw@...il.com>
---
tools/lib/list_sort.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/lib/list_sort.c b/tools/lib/list_sort.c
index 69affa251fa7..bb99e493dcd1 100644
--- a/tools/lib/list_sort.c
+++ b/tools/lib/list_sort.c
@@ -1,8 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
-#include <linux/kernel.h>
#include <linux/compiler.h>
#include <linux/export.h>
-#include <linux/string.h>
#include <linux/list_sort.h>
#include <linux/list.h>
--
2.34.1
Powered by blists - more mailing lists