* [PATCH] arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
@ 2014-05-03 1:06 Chen Gang
2014-05-12 7:36 ` 回复: " 管雪涛
0 siblings, 1 reply; 2+ messages in thread
From: Chen Gang @ 2014-05-03 1:06 UTC (permalink / raw)
To: Guan Xuetao; +Cc: linux-kernel@vger.kernel.org
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’
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
arch/unicore32/include/asm/io.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/unicore32/include/asm/io.h b/arch/unicore32/include/asm/io.h
index ae327e4..cb1d8fd 100644
--- a/arch/unicore32/include/asm/io.h
+++ b/arch/unicore32/include/asm/io.h
@@ -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)
--
1.9.2.459.g68773ac
^ permalink raw reply related [flat|nested] 2+ messages in thread* 回复: [PATCH] arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
2014-05-03 1:06 [PATCH] arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition Chen Gang
@ 2014-05-12 7:36 ` 管雪涛
0 siblings, 0 replies; 2+ messages in thread
From: 管雪涛 @ 2014-05-12 7:36 UTC (permalink / raw)
To: Chen Gang; +Cc: Guan Xuetao, linux-kernel
Thanks.
Acked-by: Xuetao Guan <gxt@mprc.pku.edu.cn>
----- Chen Gang <gang.chen.5i5j@gmail.com> 写道:
> 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’
>
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
> ---
> arch/unicore32/include/asm/io.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/arch/unicore32/include/asm/io.h b/arch/unicore32/include/asm/io.h
> index ae327e4..cb1d8fd 100644
> --- a/arch/unicore32/include/asm/io.h
> +++ b/arch/unicore32/include/asm/io.h
> @@ -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)
> --
> 1.9.2.459.g68773ac
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-12 7:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-03 1:06 [PATCH] arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition Chen Gang
2014-05-12 7:36 ` 回复: " 管雪涛
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).