aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-sparc/tlbflush.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2007-08-25 18:21:51 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-08-26 21:49:12 -0400
commit17a82e932d67e2885d9fa18d4656ff53337b1130 (patch)
treeafed5d7ff6f15d472853d3f3c4cac333426ae783 /include/asm-sparc/tlbflush.h
parent4f1296a5169c13b2c1f76c1446aaf361e8519050 (diff)
[SPARC32]: Make flush_tlb_kernel_range() an inline function.
This avoids unused variable warnings in places like mm/vmalloc.c: mm/vmalloc.c: In function ‘unmap_kernel_range’: mm/vmalloc.c:75: warning: unused variable ‘start’ caused by it previously being a macro. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc/tlbflush.h')
-rw-r--r--include/asm-sparc/tlbflush.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asm-sparc/tlbflush.h b/include/asm-sparc/tlbflush.h
index 4a3b66618e75..a619da5cfaa9 100644
--- a/include/asm-sparc/tlbflush.h
+++ b/include/asm-sparc/tlbflush.h
@@ -57,6 +57,10 @@ BTFIXUPDEF_CALL(void, flush_tlb_page, struct vm_area_struct *, unsigned long)
57/* 57/*
58 * This is a kludge, until I know better. --zaitcev XXX 58 * This is a kludge, until I know better. --zaitcev XXX
59 */ 59 */
60#define flush_tlb_kernel_range(start, end) flush_tlb_all() 60static inline void flush_tlb_kernel_range(unsigned long start,
61 unsigned long end)
62{
63 flush_tlb_all();
64}
61 65
62#endif /* _SPARC_TLBFLUSH_H */ 66#endif /* _SPARC_TLBFLUSH_H */