From: Hans Verkuil Date: Sun, 6 Mar 2011 12:49:37 +0000 (-0300) Subject: [media] altera-ci.h: add missing inline X-Git-Tag: v2.6.39-rc2~24^2~139 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa9448d9bdbae42bb10545f6fcfc980f38f53aa8;p=platform%2Fkernel%2Flinux-stable.git [media] altera-ci.h: add missing inline Functions defined in a header should be static inline. This prevents compile warnings like: 'altera_ci_tuner_reset' defined but not used (Actually appeared in the media backwards compatibility build). Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx23885/altera-ci.h b/drivers/media/video/cx23885/altera-ci.h index bf0aa2c..70e4fd6 100644 --- a/drivers/media/video/cx23885/altera-ci.h +++ b/drivers/media/video/cx23885/altera-ci.h @@ -68,7 +68,7 @@ static inline int altera_ci_irq(void *dev) return 0; } -static int altera_ci_tuner_reset(void *dev, int ci_nr) +static inline int altera_ci_tuner_reset(void *dev, int ci_nr) { printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); return 0;