Skip to contentSkip to conversation

dvb: fix sparse warnings

PATCH New Randy Dunlap 1 participant 1 message Feb 15, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dvb: fix sparse warnings

From: Randy Dunlap <[email protected]>

Fix sparse warnings in media/dvb/frontends:

drivers/media/dvb/frontends/dibx000_common.c:177:13: warning: non-ANSI function declaration of function 'systime' drivers/media/dvb/frontends/dib0090.c:286:13: warning: function 'dib0090_dcc_freq' with external linkage has definition drivers/media/dvb/frontends/tda665x.c:136:55: warning: right shift by bigger than source value

---
 drivers/media/dvb/frontends/dib0090.c        |    2 +-
 drivers/media/dvb/frontends/dibx000_common.c |    2 +-
 drivers/media/dvb/frontends/tda665x.c        |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/media/dvb/frontends/dib0090.c +1 -1
@@ -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)
drivers/media/dvb/frontends/dibx000_common.c +1 -1
@@ -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;
 
drivers/media/dvb/frontends/tda665x.c +1 -1
@@ -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;

---
~Randy