[PATCH 2/3] tools/lib/list_sort: Remove unnecessary header includes

Kuan-Wei Chiu posted 3 patches 1 month, 2 weeks ago
[PATCH 2/3] tools/lib/list_sort: Remove unnecessary header includes
Posted by Kuan-Wei Chiu 1 month, 2 weeks ago
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@gmail.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