Skip to content

Commit a0eba4f

Browse files
committed
openrisc: Export ioremap symbols used by modules
Noticed this when building with allyesconfig. Got build failures due to iounmap and __ioremap symbols missing. This patch exports them so modules can use them. This is inline with other architectures. Signed-off-by: Stafford Horne <[email protected]>
1 parent e34f671 commit a0eba4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/openrisc/mm/ioremap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ __ioremap(phys_addr_t addr, unsigned long size, pgprot_t prot)
8080

8181
return (void __iomem *)(offset + (char *)v);
8282
}
83+
EXPORT_SYMBOL(__ioremap);
8384

8485
void iounmap(void *addr)
8586
{
@@ -106,6 +107,7 @@ void iounmap(void *addr)
106107

107108
return vfree((void *)(PAGE_MASK & (unsigned long)addr));
108109
}
110+
EXPORT_SYMBOL(iounmap);
109111

110112
/**
111113
* OK, this one's a bit tricky... ioremap can get called before memory is

0 commit comments

Comments
 (0)