Skip to content

Commit

Permalink
[IA64] make flush_tlb_kernel_range() an inline function
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Beulich authored and Tony Luck committed Dec 19, 2007
1 parent 17fbe00 commit 285fbd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/ia64/kernel/uncached.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 5 additions & 1 deletion include/asm-ia64/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 285fbd6

Please sign in to comment.