From: Randy Dunlap <randy.dunlap@xxxxxxxxxx> 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 Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx> --- 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(-) --- 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; --- ~Randy -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html