Skip to content

Commit

Permalink
[media] ivtv: get rid of warning: no previous prototype
Browse files Browse the repository at this point in the history
drivers/media/pci/ivtv/ivtv-alsa-main.c:208:5: warning: no previous prototype for 'ivtv_alsa_load' [-Wmissing-prototypes]
drivers/media/pci/ivtv/ivtv-alsa-pcm.c:325:5: warning: no previous prototype for 'snd_ivtv_pcm_create' [-Wmissing-prototypes]
drivers/media/pci/ivtv/ivtv-alsa-pcm.c:72:6: warning: no previous prototype for 'ivtv_alsa_announce_pcm_data' [-Wmissing-prototypes]
drivers/media/pci/ivtv/ivtv-firmware.c:279:5: warning: no previous prototype for 'ivtv_firmware_restart' [-Wmissing-prototypes]
drivers/media/pci/ivtv/ivtv-ioctl.c:1171:5: warning: no previous prototype for 'ivtv_s_std' [-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 7151e25 commit 2aebbf6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion drivers/media/pci/ivtv/ivtv-alsa-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static int snd_ivtv_init(struct v4l2_device *v4l2_dev)
return ret;
}

int ivtv_alsa_load(struct ivtv *itv)
static int __init ivtv_alsa_load(struct ivtv *itv)
{
struct v4l2_device *v4l2_dev = &itv->v4l2_dev;
struct ivtv_stream *s;
Expand Down
6 changes: 4 additions & 2 deletions drivers/media/pci/ivtv/ivtv-alsa-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "ivtv-streams.h"
#include "ivtv-fileops.h"
#include "ivtv-alsa.h"
#include "ivtv-alsa-pcm.h"

static unsigned int pcm_debug;
module_param(pcm_debug, int, 0644);
Expand Down Expand Up @@ -69,8 +70,9 @@ static struct snd_pcm_hardware snd_ivtv_hw_capture = {
.periods_max = 98, /* 12544, */
};

void ivtv_alsa_announce_pcm_data(struct snd_ivtv_card *itvsc, u8 *pcm_data,
size_t num_bytes)
static void ivtv_alsa_announce_pcm_data(struct snd_ivtv_card *itvsc,
u8 *pcm_data,
size_t num_bytes)
{
struct snd_pcm_substream *substream;
struct snd_pcm_runtime *runtime;
Expand Down
4 changes: 0 additions & 4 deletions drivers/media/pci/ivtv/ivtv-alsa-pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,3 @@
*/

int __init snd_ivtv_pcm_create(struct snd_ivtv_card *itvsc);

/* Used by ivtv driver to announce the PCM data to the module */
void ivtv_alsa_announce_pcm_data(struct snd_ivtv_card *card, u8 *pcm_data,
size_t num_bytes);
2 changes: 1 addition & 1 deletion drivers/media/pci/ivtv/ivtv-firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void ivtv_init_mpeg_decoder(struct ivtv *itv)
}

/* Try to restart the card & restore previous settings */
int ivtv_firmware_restart(struct ivtv *itv)
static int ivtv_firmware_restart(struct ivtv *itv)
{
int rc = 0;
v4l2_std_id std;
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/pci/ivtv/ivtv-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ void ivtv_s_std_dec(struct ivtv *itv, v4l2_std_id *std)
}
}

int ivtv_s_std(struct file *file, void *fh, v4l2_std_id *std)
static int ivtv_s_std(struct file *file, void *fh, v4l2_std_id *std)
{
struct ivtv *itv = fh2id(fh)->itv;

Expand Down

0 comments on commit 2aebbf6

Please sign in to comment.