* [PATCH] spi: davinci: fix build warning when printing resource_size_t vars
[not found] ` <20140112110916.GR15937-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
@ 2014-01-14 13:50 ` Grygorii Strashko
[not found] ` <1389707408-24785-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Grygorii Strashko @ 2014-01-14 13:50 UTC (permalink / raw)
To: linux-lFZ/pmaqli7XmaaqVzeoHQ, Mark Brown
Cc: santosh.shilimkar-l0cyMroinI0, linux-spi-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
nsekhar-l0cyMroinI0, Grygorii Strashko
Use %pa format specifier when printing variables of resource_size_t type
to fix build warnings:
drivers/spi/spi-davinci.c:966:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'resource_size_t'
drivers/spi/spi-davinci.c:966:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t'
Signed-off-by: Grygorii Strashko <grygorii.strashko-l0cyMroinI0@public.gmane.org>
---
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 50b2d88..d3f6386 100644
--- a/drivers/spi/spi-davinci.c
+++ b/drivers/spi/spi-davinci.c
@@ -963,8 +963,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
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] spi: davinci: fix build warning when printing resource_size_t vars
[not found] ` <1389707408-24785-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
@ 2014-01-14 14:39 ` Mark Brown
[not found] ` <20140114143945.GP15567-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2014-01-14 14:39 UTC (permalink / raw)
To: Grygorii Strashko
Cc: linux-lFZ/pmaqli7XmaaqVzeoHQ, santosh.shilimkar-l0cyMroinI0,
linux-spi-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
nsekhar-l0cyMroinI0
[-- Attachment #1: Type: text/plain, Size: 519 bytes --]
On Tue, Jan 14, 2014 at 03:50:08PM +0200, Grygorii Strashko wrote:
> Use %pa format specifier when printing variables of resource_size_t type
> to fix build warnings:
> drivers/spi/spi-davinci.c:966:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'resource_size_t'
> drivers/spi/spi-davinci.c:966:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t'
This doesn't apply against current code, it seems the same patch has
already been applied.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] spi: davinci: fix build warning when printing resource_size_t vars
[not found] ` <20140114143945.GP15567-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2014-01-14 14:41 ` Santosh Shilimkar
[not found] ` <52D54CAC.1050005-l0cyMroinI0@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Santosh Shilimkar @ 2014-01-14 14:41 UTC (permalink / raw)
To: Mark Brown
Cc: Grygorii Strashko, linux-lFZ/pmaqli7XmaaqVzeoHQ,
linux-spi-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
nsekhar-l0cyMroinI0
On Tuesday 14 January 2014 09:39 AM, Mark Brown wrote:
> On Tue, Jan 14, 2014 at 03:50:08PM +0200, Grygorii Strashko wrote:
>> Use %pa format specifier when printing variables of resource_size_t type
>> to fix build warnings:
>> drivers/spi/spi-davinci.c:966:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'resource_size_t'
>> drivers/spi/spi-davinci.c:966:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t'
>
> This doesn't apply against current code, it seems the same patch has
> already been applied.
>
Yeah. I did send same patch last merge window time-frame which has been
applied by you.
Regards,
Santosh
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] spi: davinci: fix build warning when printing resource_size_t vars
[not found] ` <52D54CAC.1050005-l0cyMroinI0@public.gmane.org>
@ 2014-01-15 10:41 ` Grygorii Strashko
0 siblings, 0 replies; 4+ messages in thread
From: Grygorii Strashko @ 2014-01-15 10:41 UTC (permalink / raw)
To: Santosh Shilimkar, Mark Brown
Cc: linux-lFZ/pmaqli7XmaaqVzeoHQ, linux-spi-u79uwXL29TY76Z2rM5mHXA,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
nsekhar-l0cyMroinI0
On 01/14/2014 04:41 PM, Santosh Shilimkar wrote:
> On Tuesday 14 January 2014 09:39 AM, Mark Brown wrote:
>> On Tue, Jan 14, 2014 at 03:50:08PM +0200, Grygorii Strashko wrote:
>>> Use %pa format specifier when printing variables of resource_size_t type
>>> to fix build warnings:
>>> drivers/spi/spi-davinci.c:966:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'resource_size_t'
>>> drivers/spi/spi-davinci.c:966:3: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t'
>>
>> This doesn't apply against current code, it seems the same patch has
>> already been applied.
>>
> Yeah. I did send same patch last merge window time-frame which has been
> applied by you.
Ops. Sorry for the noise.
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-15 10:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20140112110916.GR15937@n2100.arm.linux.org.uk>
[not found] ` <20140112110916.GR15937-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2014-01-14 13:50 ` [PATCH] spi: davinci: fix build warning when printing resource_size_t vars Grygorii Strashko
[not found] ` <1389707408-24785-1-git-send-email-grygorii.strashko-l0cyMroinI0@public.gmane.org>
2014-01-14 14:39 ` Mark Brown
[not found] ` <20140114143945.GP15567-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-01-14 14:41 ` Santosh Shilimkar
[not found] ` <52D54CAC.1050005-l0cyMroinI0@public.gmane.org>
2014-01-15 10:41 ` Grygorii Strashko
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).