Skip to content

Commit

Permalink
[SPARC32]: Make flush_tlb_kernel_range() an inline function.
Browse files Browse the repository at this point in the history
This avoids unused variable warnings in places like mm/vmalloc.c:

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

caused by it previously being a macro.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Aug 27, 2007
1 parent 4f1296a commit 17a82e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/asm-sparc/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ BTFIXUPDEF_CALL(void, flush_tlb_page, struct vm_area_struct *, unsigned long)
/*
* This is a kludge, until I know better. --zaitcev XXX
*/
#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 /* _SPARC_TLBFLUSH_H */

0 comments on commit 17a82e9

Please sign in to comment.