linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mmc: sdhci.h compile error
@ 2010-04-21 11:43 zhangfei gao
  2010-04-25 22:28 ` Matt Fleming
  0 siblings, 1 reply; 10+ messages in thread
From: zhangfei gao @ 2010-04-21 11:43 UTC (permalink / raw)
  To: linux-mmc; +Cc: zhangfei.gao

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-04-30 17:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-21 11:43 mmc: sdhci.h compile error zhangfei gao
2010-04-25 22:28 ` 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

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).