linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] mm,swapops: Fix compile error on set_pmd_migration_entry.
@ 2025-12-25  9:40 Wale Zhang
  2025-12-25 10:22 ` Barry Song
  0 siblings, 1 reply; 13+ messages in thread
From: Wale Zhang @ 2025-12-25  9:40 UTC (permalink / raw)
  To: akpm; +Cc: lorenzo.stoakes, baohua, chrisl, linux-mm, Wale Zhang

../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



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-12-30  8:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-25  9:40 [PATCH 1/1] mm,swapops: Fix compile error on set_pmd_migration_entry Wale Zhang
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox