diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2014-11-03 20:55:51 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-11-03 21:09:13 (GMT) |
commit | 094f1ca516cd32ecda8b99821a316cb4e0f367cd (patch) | |
tree | 68b9dfaa95a087ec031e779b463ac1d6668701fe /drivers | |
parent | 7e16e3fe1b3a6ae88e403e6898ddc46be063dbef (diff) | |
download | linux-094f1ca516cd32ecda8b99821a316cb4e0f367cd.tar.xz |
[media] media: Fix a compiler warning in media_entity_pipeline_start()
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/media-entity.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index 4122d7f..4d8e01c 100644 --- a/drivers/media/media-entity.c +++ b/drivers/media/media-entity.c @@ -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; } } |