From: Enze Li <lienze@kylinos.cn>
To: muchun.song@linux.dev, osalvador@suse.de, david@kernel.org,
akpm@linux-foundation.org
Cc: linux-mm@kvack.org, enze.li@gmx.com, Enze Li <lienze@kylinos.cn>
Subject: [PATCH] mm/hugetlb_cma: remove two unused include files
Date: Mon, 5 Oct 2026 22:20:40 +0800 [thread overview]
Message-ID: <20261005142040.675204-1-lienze@kylinos.cn> (raw)
hugetlb_cma.c includes <linux/mm_inline.h> and <asm/setup.h> but never
uses anything from them, so they can be dropped.
Found with clang-tidy (misc-include-cleaner). This holds regardless of
config: the file's only #ifdef is CONFIG_NUMA, and it only touches memblock
helpers, so removing these is safe on all arches.
Signed-off-by: Enze Li <lienze@kylinos.cn>
---
mm/hugetlb_cma.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/mm/hugetlb_cma.c b/mm/hugetlb_cma.c
index 95fd2d190f0d..80b2407e9f07 100644
--- a/mm/hugetlb_cma.c
+++ b/mm/hugetlb_cma.c
@@ -4,10 +4,8 @@
#include <linux/cma.h>
#include <linux/compiler.h>
#include <linux/cpuset.h>
-#include <linux/mm_inline.h>
#include <asm/page.h>
-#include <asm/setup.h>
#include <linux/hugetlb.h>
#include <linux/memblock.h>
base-commit: 0aaec43576cd41474a8e90c919631c0c9fc88417
--
2.47.3
next reply other threads:[~2026-10-05 14:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 14:20 Enze Li [this message]
2026-10-06 13:46 ` [PATCH] mm/hugetlb_cma: remove two unused include files Muchun Song
2026-10-08 11:22 ` SJ Park
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=20261005142040.675204-1-lienze@kylinos.cn \
--to=lienze@kylinos.cn \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=enze.li@gmx.com \
--cc=linux-mm@kvack.org \
--cc=muchun.song@linux.dev \
--cc=osalvador@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox