[IA64] make flush_tlb_kernel_range() an inline function
authorJan Beulich <jbeulich@novell.com>
Wed, 19 Dec 2007 20:30:30 +0000 (12:30 -0800)
committerTony Luck <tony.luck@intel.com>
Wed, 19 Dec 2007 20:30:30 +0000 (12:30 -0800)
This fixes an unused variable warning in mm/vmalloc.c.

Tony: also fix resulting fallout in uncached.c with a
typo in args to flush_tlb_kernel_range().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/uncached.c
include/asm-ia64/tlbflush.h

index a7be4f203420ddfd82629fe5308d445911f236ba..2a90c32024f4419fa5cc8f7d918e536c2d934d33 100644 (file)
@@ -118,7 +118,7 @@ static int uncached_add_chunk(struct uncached_pool *uc_pool, int nid)
        for (i = 0; i < (IA64_GRANULE_SIZE / PAGE_SIZE); i++)
                SetPageUncached(&page[i]);
 
-       flush_tlb_kernel_range(uc_addr, uc_adddr + IA64_GRANULE_SIZE);
+       flush_tlb_kernel_range(uc_addr, uc_addr + IA64_GRANULE_SIZE);
 
        status = ia64_pal_prefetch_visibility(PAL_VISIBILITY_PHYSICAL);
        if (status == PAL_VISIBILITY_OK_REMOTE_NEEDED) {
index 80bcb0a38e8adfbb7022ea9fff1a8e0f08534cc8..7774a1cac0cc42f77ac551d046604d31ee616004 100644 (file)
@@ -92,6 +92,10 @@ void smp_local_flush_tlb(void);
 #define smp_local_flush_tlb()
 #endif
 
-#define flush_tlb_kernel_range(start, end)     flush_tlb_all() /* XXX fix me */
+static inline void flush_tlb_kernel_range(unsigned long start,
+                                         unsigned long end)
+{
+       flush_tlb_all();        /* XXX fix me */
+}
 
 #endif /* _ASM_IA64_TLBFLUSH_H */