[PATCH v2 02/28] um: Declare fix_range_common as a static function

benjamin at sipsolutions.net benjamin at sipsolutions.net
Tue Nov 22 02:07:33 PST 2022


From: Benjamin Berg <benjamin at sipsolutions.net>

It is only used within the same file.

Signed-off-by: Benjamin Berg <benjamin at sipsolutions.net>
---
 arch/um/kernel/tlb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/um/kernel/tlb.c b/arch/um/kernel/tlb.c
index bc38f79ca3a3..3c709e6146dc 100644
--- a/arch/um/kernel/tlb.c
+++ b/arch/um/kernel/tlb.c
@@ -314,8 +314,8 @@ static inline int update_p4d_range(pgd_t *pgd, unsigned long addr,
 	return ret;
 }
 
-void fix_range_common(struct mm_struct *mm, unsigned long start_addr,
-		      unsigned long end_addr, int force)
+static void fix_range_common(struct mm_struct *mm, unsigned long start_addr,
+			     unsigned long end_addr, int force)
 {
 	pgd_t *pgd;
 	struct host_vm_change hvc;
-- 
2.38.1




More information about the linux-um mailing list