From: Wale Zhang <wale.zhang.ftd@gmail.com>
To: akpm@linux-foundation.org
Cc: lorenzo.stoakes@oracle.com, baohua@kernel.org, chrisl@kernel.org,
linux-mm@kvack.org, Wale Zhang <wale.zhang.ftd@gmail.com>
Subject: [PATCH 1/1] mm,swapops: Fix compile error on set_pmd_migration_entry.
Date: Thu, 25 Dec 2025 17:40:57 +0800 [thread overview]
Message-ID: <20251225094057.286954-1-wale.zhang.ftd@gmail.com> (raw)
../include/linux/swapops.h: In function ‘set_pmd_migration_entry’:
../include/linux/swapops.h:346:1: error: no return statement in function returning non-void [-Werror=return-type]
346 | }
| ^
cc1: some warnings being treated as errors
Signed-off-by: Wale Zhang <wale.zhang.ftd@gmail.com>
---
include/linux/swapops.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/swapops.h b/include/linux/swapops.h
index 8cfc966eae48..84eb36d97212 100644
--- a/include/linux/swapops.h
+++ b/include/linux/swapops.h
@@ -343,6 +343,7 @@ static inline int set_pmd_migration_entry(struct page_vma_mapped_walk *pvmw,
struct page *page)
{
BUILD_BUG();
+ return 0;
}
static inline void remove_migration_pmd(struct page_vma_mapped_walk *pvmw,
--
2.43.0
next reply other threads:[~2025-12-25 9:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-25 9:40 Wale Zhang [this message]
2025-12-25 10:22 ` Barry Song
2025-12-26 11:45 ` wale zhang
2025-12-26 18:43 ` Barry Song
2025-12-27 7:51 ` wale zhang
2025-12-27 8:16 ` Barry Song
2025-12-27 9:58 ` wale zhang
2025-12-27 11:25 ` Barry Song
2025-12-28 21:37 ` Andrew Morton
2025-12-28 22:07 ` Barry Song
2025-12-29 11:37 ` wale zhang
2025-12-30 5:00 ` Matthew Wilcox
2025-12-30 8:05 ` wale zhang
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=20251225094057.286954-1-wale.zhang.ftd@gmail.com \
--to=wale.zhang.ftd@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=baohua@kernel.org \
--cc=chrisl@kernel.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.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