From: Chen Ni <nichen@iscas.ac.cn>
To: linux-mm@kvack.org
Cc: akpm@linux-foundation.org, chrisl@kernel.org, kasong@tencent.com,
shikemeng@huaweicloud.com, nphamcs@gmail.com, bhe@redhat.com,
baohua@kernel.org, youngjun.park@lge.com,
Chen Ni <nichen@iscas.ac.cn>
Subject: [PATCH] mm/swapfile: remove duplicate include of swap_table.h
Date: Wed, 18 Mar 2026 12:38:49 +0800 [thread overview]
Message-ID: <20260318043849.399266-1-nichen@iscas.ac.cn> (raw)
Remove duplicate inclusion of swap_table.h in swapfile.c to clean up
redundant code.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
mm/swapfile.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 35f1b58d0bb1..9174f1eeffb0 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -48,7 +48,6 @@
#include <linux/swap_cgroup.h>
#include "swap_table.h"
#include "internal.h"
-#include "swap_table.h"
#include "swap.h"
static void swap_range_alloc(struct swap_info_struct *si,
--
2.25.1
next reply other threads:[~2026-03-18 4:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-18 4:38 Chen Ni [this message]
2026-03-19 5:10 ` SeongJae 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=20260318043849.399266-1-nichen@iscas.ac.cn \
--to=nichen@iscas.ac.cn \
--cc=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=bhe@redhat.com \
--cc=chrisl@kernel.org \
--cc=kasong@tencent.com \
--cc=linux-mm@kvack.org \
--cc=nphamcs@gmail.com \
--cc=shikemeng@huaweicloud.com \
--cc=youngjun.park@lge.com \
/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