Skip to content

Commit 5a99d38

Browse files
vineetgarcxxkent
authored andcommitted
ARC: int vs long #2 (but check for PAE)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent ed7741f commit 5a99d38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arc/mm/ioremap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void __iomem *ioremap(phys_addr_t paddr, unsigned long size)
3737
* The cast to u32 is fine as this region can only be inside 4GB
3838
*/
3939
if (arc_uncached_addr_space(paddr))
40-
return (void __iomem *)(u32)paddr;
40+
return (void __iomem *)paddr;
4141

4242
return ioremap_prot(paddr, size,
4343
pgprot_val(pgprot_noncached(PAGE_KERNEL)));
@@ -97,7 +97,7 @@ EXPORT_SYMBOL(ioremap_prot);
9797
void iounmap(const void __iomem *addr)
9898
{
9999
/* weird double cast to handle phys_addr_t > 32 bits */
100-
if (arc_uncached_addr_space((phys_addr_t)(u32)addr))
100+
if (arc_uncached_addr_space((phys_addr_t)addr))
101101
return;
102102

103103
vfree((void *)(PAGE_MASK & (unsigned long __force)addr));

0 commit comments

Comments
 (0)