From: Kuan-Wei Chiu <visitorckw@gmail.com>
To: akpm@linux-foundation.org, acme@kernel.org
Cc: peterz@infradead.org, mingo@redhat.com, namhyung@kernel.org,
mark.rutland@arm.com, alexander.shishkin@linux.intel.com,
jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com,
kan.liang@linux.intel.com, jserv@ccns.ncku.edu.tw,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org,
Kuan-Wei Chiu <visitorckw@gmail.com>
Subject: [PATCH 2/3] tools/lib/list_sort: Remove unnecessary header includes
Date: Sat, 12 Oct 2024 12:28:27 +0800 [thread overview]
Message-ID: <20241012042828.471614-3-visitorckw@gmail.com> (raw)
In-Reply-To: <20241012042828.471614-1-visitorckw@gmail.com>
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
next prev parent reply other threads:[~2024-10-12 4:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-12 4:28 [PATCH 0/3] Remove unnecessary header includes from {tools/}lib/list_sort.c Kuan-Wei Chiu
2024-10-12 4:28 ` [PATCH 1/3] lib/list_sort: Remove unnecessary header includes Kuan-Wei Chiu
2024-10-12 4:28 ` Kuan-Wei Chiu [this message]
2024-10-12 4:28 ` [PATCH 3/3] perf tools: Update expected diff for lib/list_sort.c Kuan-Wei Chiu
2024-10-22 4:20 ` [PATCH 0/3] Remove unnecessary header includes from {tools/}lib/list_sort.c Namhyung Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241012042828.471614-3-visitorckw@gmail.com \
--to=visitorckw@gmail.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=akpm@linux-foundation.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=jserv@ccns.ncku.edu.tw \
--cc=kan.liang@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.