* [PATCH] of/configfs: Use %zu to format size_t
@ 2015-08-11 12:44 Geert Uytterhoeven
0 siblings, 0 replies; only message in thread
From: Geert Uytterhoeven @ 2015-08-11 12:44 UTC (permalink / raw)
To: Pantelis Antoniou; +Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, Geert Uytterhoeven
On 64-bit:
drivers/of/configfs.c: In function 'cfs_overlay_item_dtbo_read':
drivers/of/configfs.c:168:2: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t' [-Wformat=]
pr_debug("%s: buf=%p max_count=%u\n", __func__,
^
Signed-off-by: Geert Uytterhoeven <geert+renesas-gXvu3+zWzMSzQB+pC5nmwQ@public.gmane.org>
---
This is against "OF: DT-Overlay configfs interface (v4)", but it should
apply to "OF: DT-Overlay configfs interface (v5)", too.
---
drivers/of/configfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/of/configfs.c b/drivers/of/configfs.c
index 056191e238eb2772..7fd29d9dfdd1934b 100644
--- a/drivers/of/configfs.c
+++ b/drivers/of/configfs.c
@@ -165,7 +165,7 @@ static struct configfs_attribute *cfs_overlay_attrs[] = {
ssize_t cfs_overlay_item_dtbo_read(struct cfs_overlay_item *overlay,
void *buf, size_t max_count)
{
- pr_debug("%s: buf=%p max_count=%u\n", __func__,
+ pr_debug("%s: buf=%p max_count=%zu\n", __func__,
buf, max_count);
if (overlay->dtbo == NULL)
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe devicetree" 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] only message in thread
only message in thread, other threads:[~2015-08-11 12:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-11 12:44 [PATCH] of/configfs: Use %zu to format size_t Geert Uytterhoeven
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).