Skip to contentSkip to conversation

arm64: mm: remove unused functions and variable protoypes

PATCH In review Yingjoe Chen 2 participants 2 messages Feb 25, 2015 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: mm: remove unused functions and variable protoypes

The functions __cpu_flush_user_tlb_range and __cpu_flush_kern_tlb_range were removed in commit fa48e6f780 'arm64: mm: Optimise tlb flush logic where we have >4K granule'. Global variable cpu_tlb was never used in arm64.

Remove them.

---
 arch/arm64/include/asm/tlbflush.h | 5 -----
 1 file changed, 5 deletions(-)
arch/arm64/include/asm/tlbflush.h +0 -5
index 73f0ce5..4abe9b9 100644
@@ -24,11 +24,6 @@
 #include <linux/sched.h>
 #include <asm/cputype.h>
 
-extern void __cpu_flush_user_tlb_range(unsigned long, unsigned long, struct vm_area_struct *);
-extern void __cpu_flush_kern_tlb_range(unsigned long, unsigned long);
-
-extern struct cpu_tlb_fns cpu_tlb;
-
 /*
  *	TLB Management
  *	==============
Signature · 1 line
1.8.1.1.dirty
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Yingjoe Chen

The functions __cpu_flush_user_tlb_range and __cpu_flush_kern_tlb_range were removed in commit fa48e6f780 'arm64: mm: Optimise tlb flush logic where we have >4K granule'. Global variable cpu_tlb was never used in arm64.

Remove them.

---
 arch/arm64/include/asm/tlbflush.h | 5 -----
 1 file changed, 5 deletions(-)

Will

Quoted 20 lines
arch/arm64/include/asm/tlbflush.h +0 -5
index 73f0ce5..4abe9b9 100644
@@ -24,11 +24,6 @@
 #include <linux/sched.h>
 #include <asm/cputype.h>
 
-extern void __cpu_flush_user_tlb_range(unsigned long, unsigned long, struct vm_area_struct *);
-extern void __cpu_flush_kern_tlb_range(unsigned long, unsigned long);
-
-extern struct cpu_tlb_fns cpu_tlb;
-
 /*
  *	TLB Management
  *	==============
Signature · 1 line
1.8.1.1.dirty