Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1449178 > unrolled thread
| Started by | Nicholas Mc Guire <hofrat@osadl.org> |
|---|---|
| First post | 2016-07-24 18:50 +0200 |
| Last post | 2016-07-24 18:50 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] mmc: moxart: fix spin_lock flags type Nicholas Mc Guire <hofrat@osadl.org> - 2016-07-24 18:50 +0200
| From | Nicholas Mc Guire <hofrat@osadl.org> |
|---|---|
| Date | 2016-07-24 18:50 +0200 |
| Subject | [PATCH] mmc: moxart: fix spin_lock flags type |
| Message-ID | <rYuLg-1Lt-13@gated-at.bofh.it> |
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
Back to top | Article view | linux.kernel
csiph-web