From: 管雪涛 <gxt@pku.edu.cn>
To: Chen Gang <gang.chen.5i5j@gmail.com>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>, linux-kernel@vger.kernel.org
Subject: 回复: [PATCH] arch/unicore32/include/asm/io.h: add readl_relaxed() generic definition
Date: Mon, 12 May 2014 15:36:29 +0800 (CST) [thread overview]
Message-ID: <744838721.16786.1399880189408.JavaMail.root@bj-mail03.pku.edu.cn> (raw)
In-Reply-To: <53644114.9000201@gmail.com>
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
prev parent reply other threads:[~2014-05-12 7:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-03 1:06 Chen Gang
2014-05-12 7:36 ` 管雪涛 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=744838721.16786.1399880189408.JavaMail.root@bj-mail03.pku.edu.cn \
--to=gxt@pku.edu.cn \
--cc=gang.chen.5i5j@gmail.com \
--cc=gxt@mprc.pku.edu.cn \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome