component: fix build warning on arm64 builds
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/base/component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/component.c +1 -1
@@ -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 ;
Signature · 1 line
1.8.3.1
Greg Kroah-Hartman
maintainerQuoted 25 lines · Russell King
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 <[email protected]>--- drivers/base/component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/base/component.c +1
-1@@ -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 ;Signature · 1 line
1.8.3.1
Doesn't apply to my tree, is this already upstream?
thanks,
greg k-h