[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1YOjQi-0002Tw-QT@rmk-PC.arm.linux.org.uk>
Date: Fri, 20 Feb 2015 08:59:24 +0000
From: Russell King <rmk+kernel@....linux.org.uk>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: [PATCH] component: fix build warning on arm64 builds
Fix:
drivers/base/component.c: In function 'find_components':
drivers/base/component.c:97:3: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t' [-Wformat]
on ARM64 builds.
Signed-off-by: Russell King <rmk+kernel@....linux.org.uk>
---
drivers/base/component.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/component.c b/drivers/base/component.c
index a6f2050d17b7..d99b06b341fb 100644
--- a/drivers/base/component.c
+++ b/drivers/base/component.c
@@ -94,7 +94,7 @@ static int find_components(struct master *master)
for (i = 0; i < match->num; i++) {
struct component *c;
- dev_dbg(master->dev, "Looking for component %u\n", i);
+ dev_dbg(master->dev, "Looking for component %zu\n", i);
if (match->compare[i].component)
continue;
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists