Skip to contentSkip to conversation

arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition

PATCH In review Chen Gang 2 participants 2 messages May 3, 2014 – May 12, 2014

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition

Need generic definition for readl_relaxed(), like other architectures have done. Or can not pass compiling with allmodconfig, the related error:

CC [M] drivers/message/fusion/mptbase.o
drivers/message/fusion/mptbase.c: In function ‘mpt_send_handshake_request’:
drivers/message/fusion/mptbase.c:1224: error: implicit declaration of function ‘readl_relaxed’

---
 arch/unicore32/include/asm/io.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/unicore32/include/asm/io.h +4 -0
index ae327e4..cb1d8fd 100644
@@ -39,6 +39,10 @@ extern void __uc32_iounmap(volatile void __iomem *addr);
 #define ioremap_nocache(cookie, size)	__uc32_ioremap(cookie, size)
 #define iounmap(cookie)			__uc32_iounmap(cookie)
 
+#define readb_relaxed readb
+#define readw_relaxed readw
+#define readl_relaxed readl
+
 #define HAVE_ARCH_PIO_SIZE
 #define PIO_OFFSET		(unsigned int)(PCI_IOBASE)
 #define PIO_MASK		(unsigned int)(IO_SPACE_LIMIT)
Signature · 1 line
1.9.2.459.g68773ac
Acked-by Xuetao Guan on v1 1/1
#1 lore raw

Thanks.

Quoted 30 lines · ----- Chen Gang

Need generic definition for readl_relaxed(), like other architectures have done. Or can not pass compiling with allmodconfig, the related error:

CC [M] drivers/message/fusion/mptbase.o
drivers/message/fusion/mptbase.c: In function ‘mpt_send_handshake_request’:
drivers/message/fusion/mptbase.c:1224: error: implicit declaration of function ‘readl_relaxed’

---
 arch/unicore32/include/asm/io.h | 4 ++++
 1 file changed, 4 insertions(+)
arch/unicore32/include/asm/io.h +4 -0
index ae327e4..cb1d8fd 100644
@@ -39,6 +39,10 @@ extern void __uc32_iounmap(volatile void __iomem *addr);
 #define ioremap_nocache(cookie, size)	__uc32_ioremap(cookie, size)
 #define iounmap(cookie)			__uc32_iounmap(cookie)
 
+#define readb_relaxed readb
+#define readw_relaxed readw
+#define readl_relaxed readl
+
 #define HAVE_ARCH_PIO_SIZE
 #define PIO_OFFSET		(unsigned int)(PCI_IOBASE)
 #define PIO_MASK		(unsigned int)(IO_SPACE_LIMIT)
Signature · 1 line
1.9.2.459.g68773ac