diff mbox

dvb: fix sparse warnings

Message ID 20100214183932.46d678c9.randy.dunlap@oracle.com (mailing list archive)
State Accepted
Headers show

Commit Message

Randy Dunlap Feb. 15, 2010, 2:39 a.m. UTC
None
diff mbox

Patch

--- linux-2.6.33-rc8.orig/drivers/media/dvb/frontends/dib0090.c
+++ linux-2.6.33-rc8/drivers/media/dvb/frontends/dib0090.c
@@ -283,7 +283,7 @@  static int dib0090_sleep(struct dvb_fron
 	return 0;
 }
 
-extern void dib0090_dcc_freq(struct dvb_frontend *fe, u8 fast)
+void dib0090_dcc_freq(struct dvb_frontend *fe, u8 fast)
 {
 	struct dib0090_state *state = fe->tuner_priv;
 	if (fast)
--- linux-2.6.33-rc8.orig/drivers/media/dvb/frontends/dibx000_common.c
+++ linux-2.6.33-rc8/drivers/media/dvb/frontends/dibx000_common.c
@@ -174,7 +174,7 @@  void dibx000_exit_i2c_master(struct dibx
 EXPORT_SYMBOL(dibx000_exit_i2c_master);
 
 
-u32 systime()
+u32 systime(void)
 {
     struct timespec t;
 
--- linux-2.6.33-rc8.orig/drivers/media/dvb/frontends/tda665x.c
+++ linux-2.6.33-rc8/drivers/media/dvb/frontends/tda665x.c
@@ -133,7 +133,7 @@  static int tda665x_set_state(struct dvb_
 		frequency += config->ref_divider >> 1;
 		frequency /= config->ref_divider;
 
-		buf[0] = (u8) (frequency & 0x7f00) >> 8;
+		buf[0] = (u8) ((frequency & 0x7f00) >> 8);
 		buf[1] = (u8) (frequency & 0x00ff) >> 0;
 		buf[2] = 0x80 | 0x40 | 0x02;
 		buf[3] = 0x00;