All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: davinci: Fix the build warning with CONFIG_ARM_LPAE=y
@ 2013-09-30 18:52 Santosh Shilimkar
  2013-10-01 10:48 ` Mark Brown
  0 siblings, 1 reply; 12+ messages in thread
From: Santosh Shilimkar @ 2013-09-30 18:52 UTC (permalink / raw)
  To: linux-arm-kernel

With CONFIG_ARM_LPAE=y spi driver throws below warning

drivers/spi/spi-davinci.c: In function ?davinci_spi_probe?:
drivers/spi/spi-davinci.c:965:3: warning: format ?%d? expects argument of type ?int?, but argument 3 has type ?resource_size_t? [-Wformat]
drivers/spi/spi-davinci.c:965:3: warning: format ?%d? expects argument of type ?int?, but argument 4 has type ?resource_size_t? [-Wformat]

Lets use '%pa' to properly print 'resource_size_t' type variables.

Cc: Mark Brown <broonie@kernel.org>

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
---
 drivers/spi/spi-davinci.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c
index 8fbfe24..c91ad94 100644
--- a/drivers/spi/spi-davinci.c
+++ b/drivers/spi/spi-davinci.c
@@ -962,8 +962,8 @@ static int davinci_spi_probe(struct platform_device *pdev)
 			goto free_clk;
 
 		dev_info(&pdev->dev, "DMA: supported\n");
-		dev_info(&pdev->dev, "DMA: RX channel: %d, TX channel: %d, "
-				"event queue: %d\n", dma_rx_chan, dma_tx_chan,
+		dev_info(&pdev->dev, "DMA: RX channel: %pa, TX channel: %pa, "
+				"event queue: %d\n", &dma_rx_chan, &dma_tx_chan,
 				pdata->dma_event_q);
 	}
 
-- 
1.7.9.5

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

end of thread, other threads:[~2013-11-24 13:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 18:52 [PATCH] spi: davinci: Fix the build warning with CONFIG_ARM_LPAE=y Santosh Shilimkar
2013-10-01 10:48 ` Mark Brown
     [not found]   ` <20131001104840.GL19304-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-13  6:38     ` Olof Johansson
2013-11-13  6:38       ` Olof Johansson
     [not found]       ` <CAOesGMhRoEvsQoSvoCSY=zm71zeZec3MG_FpHOy1zUkYronZcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-13 13:29         ` Mark Brown
2013-11-13 13:29           ` Mark Brown
     [not found]           ` <20131113132952.GK878-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-13 21:34             ` Olof Johansson
2013-11-13 21:34               ` Olof Johansson
2013-11-23 21:17             ` Santosh Shilimkar
2013-11-23 21:17               ` Santosh Shilimkar
     [not found]               ` <52911B64.3020009-l0cyMroinI0@public.gmane.org>
2013-11-24 13:31                 ` Mark Brown
2013-11-24 13:31                   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.