mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 07:01:32 +00:00
V4L/DVB (5838): dvb-core: Fix signedness warnings (gcc 4.1.1, kernel 2.6.22)
Fix signedness warnings (gcc 4.1.1, kernel 2.6.22). Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
0402a6c2aa
commit
260f8d7c4c
@ -97,7 +97,7 @@ static ssize_t dvb_dmxdev_buffer_read(struct dvb_ringbuffer *src,
|
|||||||
if (avail > todo)
|
if (avail > todo)
|
||||||
avail = todo;
|
avail = todo;
|
||||||
|
|
||||||
ret = dvb_ringbuffer_read(src, buf, avail, 1);
|
ret = dvb_ringbuffer_read(src, (u8 *)buf, avail, 1);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@ static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * e
|
|||||||
* @param nlen Number of bytes in needle.
|
* @param nlen Number of bytes in needle.
|
||||||
* @return Pointer into haystack needle was found at, or NULL if not found.
|
* @return Pointer into haystack needle was found at, or NULL if not found.
|
||||||
*/
|
*/
|
||||||
static u8 *findstr(u8 * haystack, int hlen, u8 * needle, int nlen)
|
static char *findstr(char * haystack, int hlen, char * needle, int nlen)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -482,7 +482,7 @@ static int dvb_ca_en50221_parse_attributes(struct dvb_ca_private *ca, int slot)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* check it contains the correct DVB string */
|
/* check it contains the correct DVB string */
|
||||||
dvb_str = findstr(tuple, tupleLength, "DVB_CI_V", 8);
|
dvb_str = findstr((char *)tuple, tupleLength, "DVB_CI_V", 8);
|
||||||
if (dvb_str == NULL)
|
if (dvb_str == NULL)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (tupleLength < ((dvb_str - (char *) tuple) + 12))
|
if (tupleLength < ((dvb_str - (char *) tuple) + 12))
|
||||||
@ -513,8 +513,8 @@ static int dvb_ca_en50221_parse_attributes(struct dvb_ca_private *ca, int slot)
|
|||||||
ca->slot_info[slot].config_option = tuple[0] & 0x3f;
|
ca->slot_info[slot].config_option = tuple[0] & 0x3f;
|
||||||
|
|
||||||
/* OK, check it contains the correct strings */
|
/* OK, check it contains the correct strings */
|
||||||
if ((findstr(tuple, tupleLength, "DVB_HOST", 8) == NULL) ||
|
if ((findstr((char *)tuple, tupleLength, "DVB_HOST", 8) == NULL) ||
|
||||||
(findstr(tuple, tupleLength, "DVB_CI_MODULE", 13) == NULL))
|
(findstr((char *)tuple, tupleLength, "DVB_CI_MODULE", 13) == NULL))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
got_cftableentry = 1;
|
got_cftableentry = 1;
|
||||||
@ -1300,7 +1300,7 @@ static ssize_t dvb_ca_en50221_io_write(struct file *file,
|
|||||||
struct dvb_ca_private *ca = dvbdev->priv;
|
struct dvb_ca_private *ca = dvbdev->priv;
|
||||||
u8 slot, connection_id;
|
u8 slot, connection_id;
|
||||||
int status;
|
int status;
|
||||||
char fragbuf[HOST_LINK_BUF_SIZE];
|
u8 fragbuf[HOST_LINK_BUF_SIZE];
|
||||||
int fragpos = 0;
|
int fragpos = 0;
|
||||||
int fraglen;
|
int fraglen;
|
||||||
unsigned long timeout;
|
unsigned long timeout;
|
||||||
@ -1486,7 +1486,7 @@ static ssize_t dvb_ca_en50221_io_read(struct file *file, char __user * buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((status = dvb_ringbuffer_pkt_read(&ca->slot_info[slot].rx_buffer, idx, 2,
|
if ((status = dvb_ringbuffer_pkt_read(&ca->slot_info[slot].rx_buffer, idx, 2,
|
||||||
buf + pktlen, fraglen, 1)) < 0) {
|
(u8 *)buf + pktlen, fraglen, 1)) < 0) {
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
pktlen += fraglen;
|
pktlen += fraglen;
|
||||||
|
@ -1068,7 +1068,7 @@ static int dvbdmx_write(struct dmx_demux *demux, const char *buf, size_t count)
|
|||||||
|
|
||||||
if (mutex_lock_interruptible(&dvbdemux->mutex))
|
if (mutex_lock_interruptible(&dvbdemux->mutex))
|
||||||
return -ERESTARTSYS;
|
return -ERESTARTSYS;
|
||||||
dvb_dmx_swfilter(dvbdemux, buf, count);
|
dvb_dmx_swfilter(dvbdemux, (u8 *)buf, count);
|
||||||
mutex_unlock(&dvbdemux->mutex);
|
mutex_unlock(&dvbdemux->mutex);
|
||||||
|
|
||||||
if (signal_pending(current))
|
if (signal_pending(current))
|
||||||
|
@ -103,7 +103,7 @@ struct dvb_frontend_ops {
|
|||||||
int (*tune)(struct dvb_frontend* fe,
|
int (*tune)(struct dvb_frontend* fe,
|
||||||
struct dvb_frontend_parameters* params,
|
struct dvb_frontend_parameters* params,
|
||||||
unsigned int mode_flags,
|
unsigned int mode_flags,
|
||||||
int *delay,
|
unsigned int *delay,
|
||||||
fe_status_t *status);
|
fe_status_t *status);
|
||||||
/* get frontend tuning algorithm from the module */
|
/* get frontend tuning algorithm from the module */
|
||||||
int (*get_frontend_algo)(struct dvb_frontend *fe);
|
int (*get_frontend_algo)(struct dvb_frontend *fe);
|
||||||
|
Loading…
Reference in New Issue
Block a user