All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: axm55xx: Use %zu in pr_info for size_t
@ 2015-05-13 16:27 Alexander Sverdlin
  2015-05-13 18:07 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Sverdlin @ 2015-05-13 16:27 UTC (permalink / raw)
  To: Mike Turquette, Stephen Boyd, linux-kernel

Fix the following compiler warning:

drivers/clk/clk-axm5516.c: In function 'axmclk_probe':
drivers/clk/clk-axm5516.c:559:2: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' [-Wformat=]
  pr_info("axmclk: supporting %u clocks\n", num_clks);
    ^

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
---
 drivers/clk/clk-axm5516.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/clk/clk-axm5516.c b/drivers/clk/clk-axm5516.c
index 0f6368c..c7c91a5 100644
--- a/drivers/clk/clk-axm5516.c
+++ b/drivers/clk/clk-axm5516.c
@@ -556,7 +556,7 @@ static int axmclk_probe(struct platform_device *pdev)
 		return PTR_ERR(regmap);
 
 	num_clks = ARRAY_SIZE(axmclk_clocks);
-	pr_info("axmclk: supporting %u clocks\n", num_clks);
+	pr_info("axmclk: supporting %zu clocks\n", num_clks);
 	priv = devm_kzalloc(dev, sizeof(*priv) + sizeof(*priv->clks) * num_clks,
 			    GFP_KERNEL);
 	if (!priv)

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

* Re: [PATCH] clk: axm55xx: Use %zu in pr_info for size_t
  2015-05-13 16:27 [PATCH] clk: axm55xx: Use %zu in pr_info for size_t Alexander Sverdlin
@ 2015-05-13 18:07 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2015-05-13 18:07 UTC (permalink / raw)
  To: Alexander Sverdlin; +Cc: Mike Turquette, linux-kernel

On 05/13, Alexander Sverdlin wrote:
> Fix the following compiler warning:
> 
> drivers/clk/clk-axm5516.c: In function 'axmclk_probe':
> drivers/clk/clk-axm5516.c:559:2: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' [-Wformat=]
>   pr_info("axmclk: supporting %u clocks\n", num_clks);
>     ^
> 
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
> ---

Applied to clk-next

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

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

end of thread, other threads:[~2015-05-13 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-13 16:27 [PATCH] clk: axm55xx: Use %zu in pr_info for size_t Alexander Sverdlin
2015-05-13 18:07 ` Stephen Boyd

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.