diff mbox series

[v2,3/3] mm: s390: fix compilation warning

Message ID 20240731133318.527-4-justinjiang@vivo.com (mailing list archive)
State New
Headers show
Series mm: tlb swap entries batch async release | expand

Commit Message

zhiguojiang July 31, 2024, 1:33 p.m. UTC
Define static inline bool __tlb_remove_page_size() to fix arch s390
config compilation Warning.

Signed-off-by: Zhiguo Jiang <justinjiang@vivo.com>
---

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407311703.8q8sDQ2p-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407311947.VPJNRqad-lkp@intel.com/

 arch/s390/include/asm/tlb.h | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

David Hildenbrand Aug. 5, 2024, 12:04 p.m. UTC | #1
On 31.07.24 15:33, Zhiguo Jiang wrote:
> Define static inline bool __tlb_remove_page_size() to fix arch s390
> config compilation Warning.

This should be squashed into patch #2, no?
zhiguojiang Aug. 5, 2024, 12:10 p.m. UTC | #2
在 2024/8/5 20:04, David Hildenbrand 写道:
> On 31.07.24 15:33, Zhiguo Jiang wrote:
>> Define static inline bool __tlb_remove_page_size() to fix arch s390
>> config compilation Warning.
>
> This should be squashed into patch #2, no?
Ok, thank you for your nice guidance, I will squash it into patch #2 in 
next version.

Thanks
Zhiguo
diff mbox series

Patch

diff --git a/arch/s390/include/asm/tlb.h b/arch/s390/include/asm/tlb.h
index e95b2c8081eb..3f681f63390f
--- a/arch/s390/include/asm/tlb.h
+++ b/arch/s390/include/asm/tlb.h
@@ -28,6 +28,8 @@  static inline bool __tlb_remove_page_size(struct mmu_gather *tlb,
 		struct page *page, bool delay_rmap, int page_size);
 static inline bool __tlb_remove_folio_pages(struct mmu_gather *tlb,
 		struct page *page, unsigned int nr_pages, bool delay_rmap);
+static inline bool __tlb_remove_swap_entries(struct mmu_gather *tlb,
+		swp_entry_t entry, int nr);
 
 #define tlb_flush tlb_flush
 #define pte_free_tlb pte_free_tlb
@@ -69,6 +71,12 @@  static inline bool __tlb_remove_folio_pages(struct mmu_gather *tlb,
 	return false;
 }
 
+static inline bool __tlb_remove_swap_entries(struct mmu_gather *tlb,
+		swp_entry_t entry, int nr)
+{
+	return false;
+}
+
 static inline void tlb_flush(struct mmu_gather *tlb)
 {
 	__tlb_flush_mm_lazy(tlb->mm);