alpha: fix warning by fixing flush_tlb_kernel_range()
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 5 Feb 2008 06:30:05 +0000 (22:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:22 +0000 (09:44 -0800)
mm/vmalloc.c: In function 'unmap_kernel_range':
mm/vmalloc.c:75: warning: unused variable 'start'

Macros are so horrid.

Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-alpha/tlbflush.h

index b9e9147226f770ba3bc09149375984b525f066c7..9d87aaa08c0df1cf093bbb90227a2f8470adb70e 100644 (file)
@@ -142,6 +142,10 @@ extern void flush_tlb_range(struct vm_area_struct *, unsigned long,
 
 #endif /* CONFIG_SMP */
 
-#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 /* _ALPHA_TLBFLUSH_H */