Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux: Kernel

[PATCH] mmc:bfin_sdh fix build warning in sdh_dma_irq()

 

 

Linux kernel RSS feed   Index | Next | Previous | View Threaded


shuah.kh at samsung

Aug 10, 2013, 8:20 AM

Post #1 of 2 (9 views)
Permalink
[PATCH] mmc:bfin_sdh fix build warning in sdh_dma_irq()

Fix the following build warning in sdh_dma_irq()
drivers/mmc/host/bfin_sdh.c:466:2: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat]
dev_dbg(mmc_dev(host->mmc), "%s enter, irq_stat: 0x%04x\n", __func__,
get_dma_curr_irqstat(host->dma_ch));

Signed-off-by: Shuah Khan <shuah.kh [at] samsung>
---
drivers/mmc/host/bfin_sdh.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/bfin_sdh.c b/drivers/mmc/host/bfin_sdh.c
index 7b3e12f..61157c4 100644
--- a/drivers/mmc/host/bfin_sdh.c
+++ b/drivers/mmc/host/bfin_sdh.c
@@ -463,7 +463,7 @@ static irqreturn_t sdh_dma_irq(int irq, void *devid)
{
struct sdh_host *host = devid;

- dev_dbg(mmc_dev(host->mmc), "%s enter, irq_stat: 0x%04lx\n", __func__,
+ dev_dbg(mmc_dev(host->mmc), "%s enter, irq_stat: 0x%04x\n", __func__,
get_dma_curr_irqstat(host->dma_ch));
clear_dma_irqstat(host->dma_ch);
SSYNC();
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo [at] vger
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/


Sonic.Zhang at analog

Aug 11, 2013, 7:32 PM

Post #2 of 2 (9 views)
Permalink
RE: [PATCH] mmc:bfin_sdh fix build warning in sdh_dma_irq() [In reply to]

Acked-by: Sonic Zhang<sonic.zhang [at] analog>

>-----Original Message-----
>From: Shuah Khan [mailto:shuah.kh [at] samsung]
>Sent: Saturday, August 10, 2013 11:21 PM
>To: Zhang, Sonic; cjb [at] laptop
>Cc: Shuah Khan; uclinux-dist-devel [at] blackfin; linux-mmc [at] vger;
>linux-kernel [at] vger; shuahkhan [at] gmail
>Subject: [PATCH] mmc:bfin_sdh fix build warning in sdh_dma_irq()
>
>Fix the following build warning in sdh_dma_irq()
>drivers/mmc/host/bfin_sdh.c:466:2: warning: format %lx expects argument of type
>long unsigned int , but argument 5 has type int [-Wformat]
> dev_dbg(mmc_dev(host->mmc), "%s enter, irq_stat: 0x%04x\n", __func__,
> get_dma_curr_irqstat(host->dma_ch));
>
>Signed-off-by: Shuah Khan <shuah.kh [at] samsung>
>---
> drivers/mmc/host/bfin_sdh.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/mmc/host/bfin_sdh.c b/drivers/mmc/host/bfin_sdh.c index
>7b3e12f..61157c4 100644
>--- a/drivers/mmc/host/bfin_sdh.c
>+++ b/drivers/mmc/host/bfin_sdh.c
>@@ -463,7 +463,7 @@ static irqreturn_t sdh_dma_irq(int irq, void *devid) {
> struct sdh_host *host = devid;
>
>- dev_dbg(mmc_dev(host->mmc), "%s enter, irq_stat: 0x%04lx\n", __func__,
>+ dev_dbg(mmc_dev(host->mmc), "%s enter, irq_stat: 0x%04x\n", __func__,
> get_dma_curr_irqstat(host->dma_ch));
> clear_dma_irqstat(host->dma_ch);
> SSYNC();
>--
>1.7.10.4
>

{.n++%lzwmb맲rzXw{ayʇڙ,jfhzw j:+vwjmzZ+ݢj"!iOzv^m nƊY&

Linux kernel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.