提交 3ef120a4 编写于 作者: A Al Viro

mn10300: kmap_atomic() returns void *, not unsigned long...

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 81c5a684
......@@ -70,7 +70,7 @@ static inline void kunmap(struct page *page)
* be used in IRQ contexts, so in some (very limited) cases we need
* it.
*/
static inline unsigned long kmap_atomic(struct page *page)
static inline void *kmap_atomic(struct page *page)
{
unsigned long vaddr;
int idx, type;
......@@ -89,7 +89,7 @@ static inline unsigned long kmap_atomic(struct page *page)
set_pte(kmap_pte - idx, mk_pte(page, kmap_prot));
local_flush_tlb_one(vaddr);
return vaddr;
return (void *)vaddr;
}
static inline void __kunmap_atomic(unsigned long vaddr)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册