mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] um: tlb: Remove unused flush_tlb_mm_range function
@ 2024-04-14 21:19 Ivan Orlov
  0 siblings, 0 replies; only message in thread
From: Ivan Orlov @ 2024-04-14 21:19 UTC (permalink / raw)
  To: richard, anton.ivanov, johannes; +Cc: Ivan Orlov, linux-um, linux-kernel

GCC 11.4.0 produces the following warning when compiling the kernel for
UML architecture (with UML defconfig):

arch/um/kernel/tlb.c:579:6: warning: no previous prototype for ‘flush_tlb_mm_range’ [-Wmissing-prototypes]
  579 | void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start,)

This function is not used anywhere. It is not exported with
`EXPORT_SYMBOL` either, and therefore it is not usable for dynamically
loaded modules. Remove this function.

Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
---
 arch/um/kernel/tlb.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/um/kernel/tlb.c b/arch/um/kernel/tlb.c
index 7d050ab0f78a..70b5e47e9761 100644
--- a/arch/um/kernel/tlb.c
+++ b/arch/um/kernel/tlb.c
@@ -576,12 +576,6 @@ void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
 }
 EXPORT_SYMBOL(flush_tlb_range);
 
-void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start,
-			unsigned long end)
-{
-	fix_range(mm, start, end, 0);
-}
-
 void flush_tlb_mm(struct mm_struct *mm)
 {
 	struct vm_area_struct *vma;
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-14 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-14 21:19 [PATCH] um: tlb: Remove unused flush_tlb_mm_range function Ivan Orlov

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

all inboxes | Powered by JetHome®