Skip to content

Commit

Permalink
[media] cx18: get rid of warning: no previous prototype
Browse files Browse the repository at this point in the history
drivers/media/pci/cx18/cx18-alsa-main.c:200:5: warning: no previous prototype for 'cx18_alsa_load' [-Wmissing-prototypes]
drivers/media/pci/cx18/cx18-alsa-pcm.c:325:5: warning: no previous prototype for 'snd_cx18_pcm_create' [-Wmissing-prototypes]
drivers/media/pci/cx18/cx18-alsa-pcm.c:72:6: warning: no previous prototype for 'cx18_alsa_announce_pcm_data' [-Wmissing-prototypes]
drivers/media/pci/cx18/cx18-streams.c:100:6: warning: no previous prototype for 'cx18_dma_free' [-Wmissing-prototypes]

Cc: Andy Walls <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 27, 2012
1 parent 4e37321 commit 5e6e81b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/media/pci/cx18/cx18-alsa-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static int snd_cx18_init(struct v4l2_device *v4l2_dev)
return ret;
}

int cx18_alsa_load(struct cx18 *cx)
static int __init cx18_alsa_load(struct cx18 *cx)
{
struct v4l2_device *v4l2_dev = &cx->v4l2_dev;
struct cx18_stream *s;
Expand Down
1 change: 1 addition & 0 deletions drivers/media/pci/cx18/cx18-alsa-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "cx18-streams.h"
#include "cx18-fileops.h"
#include "cx18-alsa.h"
#include "cx18-alsa-pcm.h"

static unsigned int pcm_debug;
module_param(pcm_debug, int, 0644);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/pci/cx18/cx18-streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static struct {
};


void cx18_dma_free(struct videobuf_queue *q,
static void cx18_dma_free(struct videobuf_queue *q,
struct cx18_stream *s, struct cx18_videobuf_buffer *buf)
{
videobuf_waiton(q, &buf->vb, 0, 0);
Expand Down

0 comments on commit 5e6e81b

Please sign in to comment.