Skip to contentSkip to conversation

clk: axm55xx: Use %zu in pr_info for size_t

PATCH Applied Alexander Sverdlin 2 participants 2 messages May 13, 2015 Common clk

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: axm55xx: Use %zu in pr_info for size_t

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);
    ^
---
 drivers/clk/clk-axm5516.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/clk/clk-axm5516.c +1 -1
index 0f6368c..c7c91a5 100644
@@ -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)
Applied
#1 lore raw
Quoted 9 lines · Alexander Sverdlin

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);
    ^

---

Applied to clk-next

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project