* [PATCH] component: fix build warning on arm64 builds
@ 2015-02-20 8:59 Russell King
2015-03-25 14:11 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Russell King @ 2015-02-20 8:59 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-kernel, linux-arm-kernel
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@arm.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] component: fix build warning on arm64 builds
2015-02-20 8:59 [PATCH] component: fix build warning on arm64 builds Russell King
@ 2015-03-25 14:11 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2015-03-25 14:11 UTC (permalink / raw)
To: Russell King; +Cc: linux-kernel, linux-arm-kernel
On Fri, Feb 20, 2015 at 08:59:24AM +0000, Russell King wrote:
> 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@arm.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
Doesn't apply to my tree, is this already upstream?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-25 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-20 8:59 [PATCH] component: fix build warning on arm64 builds Russell King
2015-03-25 14:11 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox