Skip to content

Commit

Permalink
[media] altera-ci.h: add missing inline
Browse files Browse the repository at this point in the history
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 <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent d6972cc commit fa9448d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/cx23885/altera-ci.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa9448d

Please sign in to comment.