projects/linux·commit cbed6c6e

alpha: fix warning by fixing flush_tlb_kernel_range()

cbed6c6e · Andrew Morton <[email protected]> · 2008-02-04 22:30:05 -08:00

mm/vmalloc.c: In function 'unmap_kernel_range':
mm/vmalloc.c:75: warning: unused variable 'start'

Macros are so horrid.

Cc: Richard Henderson <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
cbed6c6e0f7a52859fd0207ef3ffcf4bfffdbf95
Parents
6d6f8d52

Changes

1 files changed · +5 −1

FileStatusAddDelContent
include/asm-alpha/tlbflush.hmodified+5−1View file

include/asm-alpha/tlbflush.h

View file
diff --git a/include/asm-alpha/tlbflush.h b/include/asm-alpha/tlbflush.h
index b9e9147..9d87aaa 100644
--- a/include/asm-alpha/tlbflush.h
+++ b/include/asm-alpha/tlbflush.h
@@ -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 */