We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed7741f commit 5a99d38Copy full SHA for 5a99d38
arch/arc/mm/ioremap.c
@@ -37,7 +37,7 @@ void __iomem *ioremap(phys_addr_t paddr, unsigned long size)
37
* The cast to u32 is fine as this region can only be inside 4GB
38
*/
39
if (arc_uncached_addr_space(paddr))
40
- return (void __iomem *)(u32)paddr;
+ return (void __iomem *)paddr;
41
42
return ioremap_prot(paddr, size,
43
pgprot_val(pgprot_noncached(PAGE_KERNEL)));
@@ -97,7 +97,7 @@ EXPORT_SYMBOL(ioremap_prot);
97
void iounmap(const void __iomem *addr)
98
{
99
/* weird double cast to handle phys_addr_t > 32 bits */
100
- if (arc_uncached_addr_space((phys_addr_t)(u32)addr))
+ if (arc_uncached_addr_space((phys_addr_t)addr))
101
return;
102
103
vfree((void *)(PAGE_MASK & (unsigned long __force)addr));
0 commit comments