From: Limeng <meng...@windriver.com>

Build kernel for arm64 platform, there is a waring as below:
drivers/of/configfs.c:153:34: note: format string is defined here
  pr_debug("%s: buf=%p max_count=%u\n", __func__,
                                 ~^
                                 %lu
Because on arm64 platform, size_t is long unsigned int.
Therefore, change %u into %zu to compatible with arm
and arm64 platform.

Signed-off-by: Meng Li <meng...@windriver.com>
---
 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 c7e999c..8490d9c 100644
--- a/drivers/of/configfs.c
+++ b/drivers/of/configfs.c
@@ -150,7 +150,7 @@ ssize_t cfs_overlay_item_dtbo_read(struct config_item 
*item, void *buf,
 {
        struct cfs_overlay_item *overlay = to_cfs_overlay_item(item);
 
-       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)
-- 
2.9.3

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to