From: zhangfei gao <zhangfei.gao@gmail.com>
To: linux-mmc@vger.kernel.org
Cc: zhangfei.gao@gmail.com
Subject: mmc: sdhci.h compile error
Date: Wed, 21 Apr 2010 19:43:32 +0800 [thread overview]
Message-ID: <m2w309424b61004210443x612468b3n3caabe87e9717165@mail.gmail.com> (raw)
Hi,
I have one compile issue about sdhci.h.
There is compile error when we enable CONFIG_MMC_SDHCI_IO_ACCESSORS,
and include header file #include "sdhci.h"
error: macro "writel" passed 3 arguments, but takes just 2
#ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
static inline void sdhci_writel(struct sdhci_host *host, u32 val, int reg)
{
if (unlikely(host->ops->writel))
host->ops->writel(host, val, reg);
else
writel(val, host->ioaddr + reg);
}
~~
#endif
The writel is treated as macro and it is already defined in ARM.
The workaround is modify the name of ops writel.
Is there anybody also see such issue, and my platform is ARM.
Thanks
next reply other threads:[~2010-04-21 11:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-21 11:43 zhangfei gao [this message]
2010-04-25 22:28 ` mmc: sdhci.h compile error Matt Fleming
2010-04-26 7:46 ` zhangfei gao
2010-04-26 11:18 ` Matt Fleming
2010-04-27 3:45 ` zhangfei gao
2010-04-27 5:53 ` Matt Fleming
2010-04-27 6:54 ` zhangfei gao
2010-04-26 10:17 ` Anton Vorontsov
2010-04-29 22:28 ` Andrew Morton
2010-04-30 5:30 ` Anton Vorontsov
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=m2w309424b61004210443x612468b3n3caabe87e9717165@mail.gmail.com \
--to=zhangfei.gao@gmail.com \
--cc=linux-mmc@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;
as well as URLs for NNTP newsgroup(s).