linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: moxart: fix spin_lock flags type
@ 2016-07-24 16:43 Nicholas Mc Guire
  0 siblings, 0 replies; only message in thread
From: Nicholas Mc Guire @ 2016-07-24 16:43 UTC (permalink / raw)
  To: Ulf Hansson
  Cc: Luis de Bethencourt, linux-mmc, linux-kernel, Nicholas Mc Guire

fix compile warning due to flags being declared long rather than
unsigned long.

Fixes: 1b66e94e6b99 ("mmc: moxart: Add MOXA ART SD/MMC driver")

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
---
 
 drivers/mmc/host/moxart-mmc.c: In function 'moxart_request':
 drivers/mmc/host/moxart-mmc.c:403:2: warning: comparison of distinct pointer
 types lacks a cast [enabled by default]
 drivers/mmc/host/moxart-mmc.c:427:4: warning: comparison of distinct pointer
 types lacks a cast [enabled by default]
 drivers/mmc/host/moxart-mmc.c:438:4: warning: comparison of distinct pointer
 types lacks a cast [enabled by default]

Compile tested with: moxart_defconfig + ARCH_MULTI_V4=y,
CONFIG_ARCH_MOXART=y, CONFIG_MMC_MOXART=y

Patch is against 4.7.0-rc7 (localversion-next -next-20160724)

 drivers/mmc/host/moxart-mmc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/moxart-mmc.c b/drivers/mmc/host/moxart-mmc.c
index 2e5c25f..bbad309 100644
--- a/drivers/mmc/host/moxart-mmc.c
+++ b/drivers/mmc/host/moxart-mmc.c
@@ -397,7 +397,8 @@ static void moxart_prepare_data(struct moxart_host *host)
 static void moxart_request(struct mmc_host *mmc, struct mmc_request *mrq)
 {
 	struct moxart_host *host = mmc_priv(mmc);
-	long pio_time, flags;
+	long pio_time;
+	unsigned long flags;
 	u32 status;
 
 	spin_lock_irqsave(&host->lock, flags);
-- 
2.1.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-24 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-24 16:43 [PATCH] mmc: moxart: fix spin_lock flags type Nicholas Mc Guire

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