Skip to content

Commit 285fbd6

Browse files
Jan Beulichaegl
authored andcommitted
[IA64] make flush_tlb_kernel_range() an inline function
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>
1 parent 17fbe00 commit 285fbd6

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎arch/ia64/kernel/uncached.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static int uncached_add_chunk(struct uncached_pool *uc_pool, int nid)
118118
for (i = 0; i < (IA64_GRANULE_SIZE / PAGE_SIZE); i++)
119119
SetPageUncached(&page[i]);
120120

121-
flush_tlb_kernel_range(uc_addr, uc_adddr + IA64_GRANULE_SIZE);
121+
flush_tlb_kernel_range(uc_addr, uc_addr + IA64_GRANULE_SIZE);
122122

123123
status = ia64_pal_prefetch_visibility(PAL_VISIBILITY_PHYSICAL);
124124
if (status == PAL_VISIBILITY_OK_REMOTE_NEEDED) {

‎include/asm-ia64/tlbflush.h‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ void smp_local_flush_tlb(void);
9292
#define smp_local_flush_tlb()
9393
#endif
9494

95-
#define flush_tlb_kernel_range(start, end) flush_tlb_all() /* XXX fix me */
95+
static inline void flush_tlb_kernel_range(unsigned long start,
96+
unsigned long end)
97+
{
98+
flush_tlb_all(); /* XXX fix me */
99+
}
96100

97101
#endif /* _ASM_IA64_TLBFLUSH_H */

0 commit comments

Comments
 (0)