提交 17a82e93 编写于 作者: D David S. Miller

[SPARC32]: Make flush_tlb_kernel_range() an inline function.

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: NDavid S. Miller <davem@davemloft.net>
上级 4f1296a5
...@@ -57,6 +57,10 @@ BTFIXUPDEF_CALL(void, flush_tlb_page, struct vm_area_struct *, unsigned long) ...@@ -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 * 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 */ #endif /* _SPARC_TLBFLUSH_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册