Skip to content

Commit

Permalink
mn10300: kmap_atomic() returns void *, not unsigned long...
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Apr 2, 2014
1 parent 81c5a68 commit 3ef120a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mn10300/include/asm/highmem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 3ef120a

Please sign in to comment.