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