Skip to content
Snippets Groups Projects
Commit b1ffecec authored by Becky Bruce's avatar Becky Bruce Committed by Wolfgang Denk
Browse files

powerpc: fix io.h build warning with CONFIG_PHYS_64BIT


Casting a pointer to a phys_addr_t when it's an unsigned long long
on a 32-bit system without first casting to a non-pointer type
generates a compiler warning. Fix this.

Signed-off-by: default avatarBecky Bruce <beckyb@kernel.crashing.org>
parent aa1bcca3
No related branches found
No related tags found
No related merge requests found
...@@ -300,7 +300,7 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags) ...@@ -300,7 +300,7 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags)
static inline phys_addr_t virt_to_phys(void * vaddr) static inline phys_addr_t virt_to_phys(void * vaddr)
{ {
return (phys_addr_t)(vaddr); return (phys_addr_t)((unsigned long)vaddr);
} }
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment