]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[media] media: Fix a compiler warning in media_entity_pipeline_start()
authorSakari Ailus <sakari.ailus@iki.fi>
Mon, 3 Nov 2014 20:55:51 +0000 (17:55 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 3 Nov 2014 21:09:13 +0000 (19:09 -0200)
Patch "[media] media: Print information on failed link validation" cause a
harmless compiler warning in printing a debug message. Fix this.

The type casting is done do ensure the type really is suitable for printing
as %u, as find_first_zero_bit() does return int on some architectures and
unsigned long on others.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-entity.c

index 4122d7f42e1058819902253251ae47740de0c040..4d8e01c7b1b2044d9628d6e94cff8373e2d804dc 100644 (file)
@@ -297,7 +297,8 @@ __must_check int media_entity_pipeline_start(struct media_entity *entity,
                        dev_dbg(entity->parent->dev,
                                "\"%s\":%u must be connected by an enabled link\n",
                                entity->name,
-                               find_first_zero_bit(active, entity->num_pads));
+                               (unsigned)find_first_zero_bit(
+                                       active, entity->num_pads));
                        goto error;
                }
        }