Commit 5faf7db8 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] saa7164: get rid of warning: no previous prototype

drivers/media/pci/saa7164/saa7164-api.c:1489:5: warning: no previous prototype for 'saa7164_api_modify_gpio' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-api.c:168:5: warning: no previous prototype for 'saa7164_api_set_gop_size' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-api.c:622:5: warning: no previous prototype for 'saa7164_api_set_dif' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-api.c:825:5: warning: no previous prototype for 'saa7164_api_configure_port_vbi' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-api.c:861:5: warning: no previous prototype for 'saa7164_api_configure_port_mpeg2ts' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-api.c:895:5: warning: no previous prototype for 'saa7164_api_configure_port_mpeg2ps' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-api.c:928:5: warning: no previous prototype for 'saa7164_api_dump_subdevs' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-bus.c:109:6: warning: no previous prototype for 'saa7164_bus_dumpmsg' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-bus.c:84:6: warning: no previous prototype for 'saa7164_bus_verify' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-cmd.c:135:5: warning: no previous prototype for 'saa7164_cmd_dequeue' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-cmd.c:189:5: warning: no previous prototype for 'saa7164_cmd_set' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-cmd.c:262:5: warning: no previous prototype for 'saa7164_cmd_wait' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-cmd.c:26:5: warning: no previous prototype for 'saa7164_cmd_alloc_seqno' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-cmd.c:45:6: warning: no previous prototype for 'saa7164_cmd_free_seqno' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-cmd.c:57:6: warning: no previous prototype for 'saa7164_cmd_timeout_seqno' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-cmd.c:67:5: warning: no previous prototype for 'saa7164_cmd_timeout_get' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-encoder.c:1104:29: warning: no previous prototype for 'saa7164_enc_next_buf' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-encoder.c:1290:5: warning: no previous prototype for 'saa7164_g_chip_ident' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-encoder.c:1300:5: warning: no previous prototype for 'saa7164_g_register' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-encoder.c:1313:5: warning: no previous prototype for 'saa7164_s_register' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-fw.c:40:5: warning: no previous prototype for 'saa7164_dl_wait_ack' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-fw.c:56:5: warning: no previous prototype for 'saa7164_dl_wait_clr' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-fw.c:74:5: warning: no previous prototype for 'saa7164_downloadimage' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-vbi.c:1050:29: warning: no previous prototype for 'saa7164_vbi_next_buf' [-Wmissing-prototypes]
drivers/media/pci/saa7164/saa7164-vbi.c:987:5: warning: no previous prototype for 'saa7164_vbi_fmt' [-Wmissing-prototypes]
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6860f9ca
...@@ -165,7 +165,7 @@ int saa7164_api_set_vbi_format(struct saa7164_port *port) ...@@ -165,7 +165,7 @@ int saa7164_api_set_vbi_format(struct saa7164_port *port)
return ret; return ret;
} }
int saa7164_api_set_gop_size(struct saa7164_port *port) static int saa7164_api_set_gop_size(struct saa7164_port *port)
{ {
struct saa7164_dev *dev = port->dev; struct saa7164_dev *dev = port->dev;
struct tmComResEncVideoGopStructure gs; struct tmComResEncVideoGopStructure gs;
...@@ -619,7 +619,7 @@ int saa7164_api_get_videomux(struct saa7164_port *port) ...@@ -619,7 +619,7 @@ int saa7164_api_get_videomux(struct saa7164_port *port)
return ret; return ret;
} }
int saa7164_api_set_dif(struct saa7164_port *port, u8 reg, u8 val) static int saa7164_api_set_dif(struct saa7164_port *port, u8 reg, u8 val)
{ {
struct saa7164_dev *dev = port->dev; struct saa7164_dev *dev = port->dev;
...@@ -822,7 +822,7 @@ int saa7164_api_read_eeprom(struct saa7164_dev *dev, u8 *buf, int buflen) ...@@ -822,7 +822,7 @@ int saa7164_api_read_eeprom(struct saa7164_dev *dev, u8 *buf, int buflen)
&reg[0], 128, buf); &reg[0], 128, buf);
} }
int saa7164_api_configure_port_vbi(struct saa7164_dev *dev, static int saa7164_api_configure_port_vbi(struct saa7164_dev *dev,
struct saa7164_port *port) struct saa7164_port *port)
{ {
struct tmComResVBIFormatDescrHeader *fmt = &port->vbi_fmt_ntsc; struct tmComResVBIFormatDescrHeader *fmt = &port->vbi_fmt_ntsc;
...@@ -858,7 +858,8 @@ int saa7164_api_configure_port_vbi(struct saa7164_dev *dev, ...@@ -858,7 +858,8 @@ int saa7164_api_configure_port_vbi(struct saa7164_dev *dev,
return 0; return 0;
} }
int saa7164_api_configure_port_mpeg2ts(struct saa7164_dev *dev, static int
saa7164_api_configure_port_mpeg2ts(struct saa7164_dev *dev,
struct saa7164_port *port, struct saa7164_port *port,
struct tmComResTSFormatDescrHeader *tsfmt) struct tmComResTSFormatDescrHeader *tsfmt)
{ {
...@@ -892,7 +893,8 @@ int saa7164_api_configure_port_mpeg2ts(struct saa7164_dev *dev, ...@@ -892,7 +893,8 @@ int saa7164_api_configure_port_mpeg2ts(struct saa7164_dev *dev,
return 0; return 0;
} }
int saa7164_api_configure_port_mpeg2ps(struct saa7164_dev *dev, static int
saa7164_api_configure_port_mpeg2ps(struct saa7164_dev *dev,
struct saa7164_port *port, struct saa7164_port *port,
struct tmComResPSFormatDescrHeader *fmt) struct tmComResPSFormatDescrHeader *fmt)
{ {
...@@ -925,7 +927,7 @@ int saa7164_api_configure_port_mpeg2ps(struct saa7164_dev *dev, ...@@ -925,7 +927,7 @@ int saa7164_api_configure_port_mpeg2ps(struct saa7164_dev *dev,
return 0; return 0;
} }
int saa7164_api_dump_subdevs(struct saa7164_dev *dev, u8 *buf, int len) static int saa7164_api_dump_subdevs(struct saa7164_dev *dev, u8 *buf, int len)
{ {
struct saa7164_port *tsport = NULL; struct saa7164_port *tsport = NULL;
struct saa7164_port *encport = NULL; struct saa7164_port *encport = NULL;
...@@ -1486,7 +1488,7 @@ int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen, ...@@ -1486,7 +1488,7 @@ int saa7164_api_i2c_write(struct saa7164_i2c *bus, u8 addr, u32 datalen,
return ret == SAA_OK ? 0 : -EIO; return ret == SAA_OK ? 0 : -EIO;
} }
int saa7164_api_modify_gpio(struct saa7164_dev *dev, u8 unitid, static int saa7164_api_modify_gpio(struct saa7164_dev *dev, u8 unitid,
u8 pin, u8 state) u8 pin, u8 state)
{ {
int ret; int ret;
......
...@@ -81,7 +81,7 @@ void saa7164_bus_dump(struct saa7164_dev *dev) ...@@ -81,7 +81,7 @@ void saa7164_bus_dump(struct saa7164_dev *dev)
} }
/* Intensionally throw a BUG() if the state of the message bus looks corrupt */ /* Intensionally throw a BUG() if the state of the message bus looks corrupt */
void saa7164_bus_verify(struct saa7164_dev *dev) static void saa7164_bus_verify(struct saa7164_dev *dev)
{ {
struct tmComResBusInfo *b = &dev->bus; struct tmComResBusInfo *b = &dev->bus;
int bug = 0; int bug = 0;
...@@ -106,7 +106,7 @@ void saa7164_bus_verify(struct saa7164_dev *dev) ...@@ -106,7 +106,7 @@ void saa7164_bus_verify(struct saa7164_dev *dev)
} }
} }
void saa7164_bus_dumpmsg(struct saa7164_dev *dev, struct tmComResInfo* m, static void saa7164_bus_dumpmsg(struct saa7164_dev *dev, struct tmComResInfo *m,
void *buf) void *buf)
{ {
dprintk(DBGLVL_BUS, "Dumping msg structure:\n"); dprintk(DBGLVL_BUS, "Dumping msg structure:\n");
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "saa7164.h" #include "saa7164.h"
int saa7164_cmd_alloc_seqno(struct saa7164_dev *dev) static int saa7164_cmd_alloc_seqno(struct saa7164_dev *dev)
{ {
int i, ret = -1; int i, ret = -1;
...@@ -42,7 +42,7 @@ int saa7164_cmd_alloc_seqno(struct saa7164_dev *dev) ...@@ -42,7 +42,7 @@ int saa7164_cmd_alloc_seqno(struct saa7164_dev *dev)
return ret; return ret;
} }
void saa7164_cmd_free_seqno(struct saa7164_dev *dev, u8 seqno) static void saa7164_cmd_free_seqno(struct saa7164_dev *dev, u8 seqno)
{ {
mutex_lock(&dev->lock); mutex_lock(&dev->lock);
if ((dev->cmds[seqno].inuse == 1) && if ((dev->cmds[seqno].inuse == 1) &&
...@@ -54,7 +54,7 @@ void saa7164_cmd_free_seqno(struct saa7164_dev *dev, u8 seqno) ...@@ -54,7 +54,7 @@ void saa7164_cmd_free_seqno(struct saa7164_dev *dev, u8 seqno)
mutex_unlock(&dev->lock); mutex_unlock(&dev->lock);
} }
void saa7164_cmd_timeout_seqno(struct saa7164_dev *dev, u8 seqno) static void saa7164_cmd_timeout_seqno(struct saa7164_dev *dev, u8 seqno)
{ {
mutex_lock(&dev->lock); mutex_lock(&dev->lock);
if ((dev->cmds[seqno].inuse == 1) && if ((dev->cmds[seqno].inuse == 1) &&
...@@ -64,7 +64,7 @@ void saa7164_cmd_timeout_seqno(struct saa7164_dev *dev, u8 seqno) ...@@ -64,7 +64,7 @@ void saa7164_cmd_timeout_seqno(struct saa7164_dev *dev, u8 seqno)
mutex_unlock(&dev->lock); mutex_unlock(&dev->lock);
} }
u32 saa7164_cmd_timeout_get(struct saa7164_dev *dev, u8 seqno) static u32 saa7164_cmd_timeout_get(struct saa7164_dev *dev, u8 seqno)
{ {
int ret = 0; int ret = 0;
...@@ -132,7 +132,7 @@ int saa7164_irq_dequeue(struct saa7164_dev *dev) ...@@ -132,7 +132,7 @@ int saa7164_irq_dequeue(struct saa7164_dev *dev)
/* Commands to the f/w get marshelled to/from this code then onto the PCI /* Commands to the f/w get marshelled to/from this code then onto the PCI
* -bus/c running buffer. */ * -bus/c running buffer. */
int saa7164_cmd_dequeue(struct saa7164_dev *dev) static int saa7164_cmd_dequeue(struct saa7164_dev *dev)
{ {
int loop = 1; int loop = 1;
int ret; int ret;
...@@ -186,7 +186,7 @@ int saa7164_cmd_dequeue(struct saa7164_dev *dev) ...@@ -186,7 +186,7 @@ int saa7164_cmd_dequeue(struct saa7164_dev *dev)
return SAA_OK; return SAA_OK;
} }
int saa7164_cmd_set(struct saa7164_dev *dev, struct tmComResInfo *msg, static int saa7164_cmd_set(struct saa7164_dev *dev, struct tmComResInfo *msg,
void *buf) void *buf)
{ {
struct tmComResBusInfo *bus = &dev->bus; struct tmComResBusInfo *bus = &dev->bus;
...@@ -259,7 +259,7 @@ int saa7164_cmd_set(struct saa7164_dev *dev, struct tmComResInfo *msg, ...@@ -259,7 +259,7 @@ int saa7164_cmd_set(struct saa7164_dev *dev, struct tmComResInfo *msg,
/* Wait for a signal event, without holding a mutex. Either return TIMEOUT if /* Wait for a signal event, without holding a mutex. Either return TIMEOUT if
* the event never occurred, or SAA_OK if it was signaled during the wait. * the event never occurred, or SAA_OK if it was signaled during the wait.
*/ */
int saa7164_cmd_wait(struct saa7164_dev *dev, u8 seqno) static int saa7164_cmd_wait(struct saa7164_dev *dev, u8 seqno)
{ {
wait_queue_head_t *q = NULL; wait_queue_head_t *q = NULL;
int ret = SAA_BUS_TIMEOUT; int ret = SAA_BUS_TIMEOUT;
......
...@@ -1101,7 +1101,8 @@ static int fops_release(struct file *file) ...@@ -1101,7 +1101,8 @@ static int fops_release(struct file *file)
return 0; return 0;
} }
struct saa7164_user_buffer *saa7164_enc_next_buf(struct saa7164_port *port) static struct
saa7164_user_buffer *saa7164_enc_next_buf(struct saa7164_port *port)
{ {
struct saa7164_user_buffer *ubuf = NULL; struct saa7164_user_buffer *ubuf = NULL;
struct saa7164_dev *dev = port->dev; struct saa7164_dev *dev = port->dev;
...@@ -1287,7 +1288,7 @@ static const struct v4l2_file_operations mpeg_fops = { ...@@ -1287,7 +1288,7 @@ static const struct v4l2_file_operations mpeg_fops = {
.unlocked_ioctl = video_ioctl2, .unlocked_ioctl = video_ioctl2,
}; };
int saa7164_g_chip_ident(struct file *file, void *fh, static int saa7164_g_chip_ident(struct file *file, void *fh,
struct v4l2_dbg_chip_ident *chip) struct v4l2_dbg_chip_ident *chip)
{ {
struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port; struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port;
...@@ -1297,7 +1298,7 @@ int saa7164_g_chip_ident(struct file *file, void *fh, ...@@ -1297,7 +1298,7 @@ int saa7164_g_chip_ident(struct file *file, void *fh,
return 0; return 0;
} }
int saa7164_g_register(struct file *file, void *fh, static int saa7164_g_register(struct file *file, void *fh,
struct v4l2_dbg_register *reg) struct v4l2_dbg_register *reg)
{ {
struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port; struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port;
...@@ -1310,7 +1311,7 @@ int saa7164_g_register(struct file *file, void *fh, ...@@ -1310,7 +1311,7 @@ int saa7164_g_register(struct file *file, void *fh,
return 0; return 0;
} }
int saa7164_s_register(struct file *file, void *fh, static int saa7164_s_register(struct file *file, void *fh,
struct v4l2_dbg_register *reg) struct v4l2_dbg_register *reg)
{ {
struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port; struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port;
......
...@@ -37,7 +37,7 @@ struct fw_header { ...@@ -37,7 +37,7 @@ struct fw_header {
u32 version; u32 version;
}; };
int saa7164_dl_wait_ack(struct saa7164_dev *dev, u32 reg) static int saa7164_dl_wait_ack(struct saa7164_dev *dev, u32 reg)
{ {
u32 timeout = SAA_DEVICE_TIMEOUT; u32 timeout = SAA_DEVICE_TIMEOUT;
while ((saa7164_readl(reg) & 0x01) == 0) { while ((saa7164_readl(reg) & 0x01) == 0) {
...@@ -53,7 +53,7 @@ int saa7164_dl_wait_ack(struct saa7164_dev *dev, u32 reg) ...@@ -53,7 +53,7 @@ int saa7164_dl_wait_ack(struct saa7164_dev *dev, u32 reg)
return 0; return 0;
} }
int saa7164_dl_wait_clr(struct saa7164_dev *dev, u32 reg) static int saa7164_dl_wait_clr(struct saa7164_dev *dev, u32 reg)
{ {
u32 timeout = SAA_DEVICE_TIMEOUT; u32 timeout = SAA_DEVICE_TIMEOUT;
while (saa7164_readl(reg) & 0x01) { while (saa7164_readl(reg) & 0x01) {
...@@ -71,7 +71,7 @@ int saa7164_dl_wait_clr(struct saa7164_dev *dev, u32 reg) ...@@ -71,7 +71,7 @@ int saa7164_dl_wait_clr(struct saa7164_dev *dev, u32 reg)
/* TODO: move dlflags into dev-> and change to write/readl/b */ /* TODO: move dlflags into dev-> and change to write/readl/b */
/* TODO: Excessive levels of debug */ /* TODO: Excessive levels of debug */
int saa7164_downloadimage(struct saa7164_dev *dev, u8 *src, u32 srcsize, static int saa7164_downloadimage(struct saa7164_dev *dev, u8 *src, u32 srcsize,
u32 dlflags, u8 *dst, u32 dstsize) u32 dlflags, u8 *dst, u32 dstsize)
{ {
u32 reg, timeout, offset; u32 reg, timeout, offset;
......
...@@ -984,7 +984,8 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port) ...@@ -984,7 +984,8 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port)
return ret; return ret;
} }
int saa7164_vbi_fmt(struct file *file, void *priv, struct v4l2_format *f) static int saa7164_vbi_fmt(struct file *file, void *priv,
struct v4l2_format *f)
{ {
/* ntsc */ /* ntsc */
f->fmt.vbi.samples_per_line = 1600; f->fmt.vbi.samples_per_line = 1600;
...@@ -1047,7 +1048,8 @@ static int fops_release(struct file *file) ...@@ -1047,7 +1048,8 @@ static int fops_release(struct file *file)
return 0; return 0;
} }
struct saa7164_user_buffer *saa7164_vbi_next_buf(struct saa7164_port *port) static struct
saa7164_user_buffer *saa7164_vbi_next_buf(struct saa7164_port *port)
{ {
struct saa7164_user_buffer *ubuf = NULL; struct saa7164_user_buffer *ubuf = NULL;
struct saa7164_dev *dev = port->dev; struct saa7164_dev *dev = port->dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment