[SPARC32]: Make flush_tlb_kernel_range() an inline function.
authorDavid S. Miller <davem@sunset.davemloft.net>
Sat, 25 Aug 2007 22:21:51 +0000 (15:21 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 27 Aug 2007 01:49:12 +0000 (18:49 -0700)
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>
include/asm-sparc/tlbflush.h

index 4a3b66618e753a9bd4edf287080ad52f94e80a80..a619da5cfaa9f5d0e1b9321859692df34a9566b9 100644 (file)
@@ -57,6 +57,10 @@ BTFIXUPDEF_CALL(void, flush_tlb_page, struct vm_area_struct *, unsigned long)
 /*
  * This is a kludge, until I know better. --zaitcev XXX
  */
-#define flush_tlb_kernel_range(start, end) flush_tlb_all()
+static inline void flush_tlb_kernel_range(unsigned long start,
+                                         unsigned long end)
+{
+       flush_tlb_all();
+}
 
 #endif /* _SPARC_TLBFLUSH_H */