diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-04 23:34:20 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-07 19:18:55 -0500 |
commit | ffbc5f88148ff77039a4269e3f945e8471b2e0bb (patch) | |
tree | b17c606278bf17868f433fa04bfffda3e58a7d04 | |
parent | 4c27f1a4da4902c70b84a8bce66f8fe909fb829b (diff) |
V4L/DVB (10180): drivers/media: Fix a number of sparse warnings
anysee.c:44:5: warning: symbol 'dvb_usb_anysee_delsys' was not declared. Should it be static?
cx24116.c:378:3: warning: symbol 'CX24116_MODFEC_MODES' was not declared. Should it be static?
stb0899_algo.c:57:5: warning: symbol 'stb0899_get_srate' was not declared. Should it be static?
stb0899_algo.c:766:6: warning: symbol 'Log2Int' was not declared. Should it be static?
stb0899_drv.c:137:20: warning: symbol 'stb0899_quant_tab' was not declared. Should it be static?
stb0899_drv.c:180:20: warning: symbol 'stb0899_est_tab' was not declared. Should it be static?
stb0899_drv.c:220:5: warning: symbol '_stb0899_read_reg' was not declared. Should it be static?
budget-ci.c:1348:23: warning: symbol 'tt3200_stb6100_config' was not declared. Should it be static?
/home/v4l/master/v4l/cx25840-core.c:190:6: warning: symbol 'cx25840_work_handler' was not declared. Should it be static?
/home/v4l/master/v4l/m5602_s5k83a.c:116:6: warning: symbol 's5k83a_dump_registers' was not declared. Should it be static?
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/dvb/dvb-usb/anysee.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/cx24116.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_algo.c | 4 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/stb0899_drv.c | 6 | ||||
-rw-r--r-- | drivers/media/dvb/ttpci/budget-ci.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_s5k83a.c | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/dvb/dvb-usb/anysee.c b/drivers/media/dvb/dvb-usb/anysee.c index 5017f08b14a6..c6e7b4215d6b 100644 --- a/drivers/media/dvb/dvb-usb/anysee.c +++ b/drivers/media/dvb/dvb-usb/anysee.c | |||
@@ -41,7 +41,7 @@ | |||
41 | static int dvb_usb_anysee_debug; | 41 | static int dvb_usb_anysee_debug; |
42 | module_param_named(debug, dvb_usb_anysee_debug, int, 0644); | 42 | module_param_named(debug, dvb_usb_anysee_debug, int, 0644); |
43 | MODULE_PARM_DESC(debug, "set debugging level" DVB_USB_DEBUG_STATUS); | 43 | MODULE_PARM_DESC(debug, "set debugging level" DVB_USB_DEBUG_STATUS); |
44 | int dvb_usb_anysee_delsys; | 44 | static int dvb_usb_anysee_delsys; |
45 | module_param_named(delsys, dvb_usb_anysee_delsys, int, 0644); | 45 | module_param_named(delsys, dvb_usb_anysee_delsys, int, 0644); |
46 | MODULE_PARM_DESC(delsys, "select delivery mode (0=DVB-C, 1=DVB-T)"); | 46 | MODULE_PARM_DESC(delsys, "select delivery mode (0=DVB-C, 1=DVB-T)"); |
47 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | 47 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); |
diff --git a/drivers/media/dvb/frontends/cx24116.c b/drivers/media/dvb/frontends/cx24116.c index 4f514d39b98f..28ad609e73f4 100644 --- a/drivers/media/dvb/frontends/cx24116.c +++ b/drivers/media/dvb/frontends/cx24116.c | |||
@@ -369,7 +369,7 @@ static int cx24116_set_inversion(struct cx24116_state *state, | |||
369 | * Not all S2 mmodulation schemes are support and not all rates with | 369 | * Not all S2 mmodulation schemes are support and not all rates with |
370 | * a scheme are support. Especially, no auto detect when in S2 mode. | 370 | * a scheme are support. Especially, no auto detect when in S2 mode. |
371 | */ | 371 | */ |
372 | struct cx24116_modfec { | 372 | static struct cx24116_modfec { |
373 | fe_delivery_system_t delivery_system; | 373 | fe_delivery_system_t delivery_system; |
374 | fe_modulation_t modulation; | 374 | fe_modulation_t modulation; |
375 | fe_code_rate_t fec; | 375 | fe_code_rate_t fec; |
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c index ced9b7ae7d50..83dc7e12d5f0 100644 --- a/drivers/media/dvb/frontends/stb0899_algo.c +++ b/drivers/media/dvb/frontends/stb0899_algo.c | |||
@@ -54,7 +54,7 @@ static u32 stb0899_calc_srate(u32 master_clk, u8 *sfr) | |||
54 | * stb0899_get_srate | 54 | * stb0899_get_srate |
55 | * Get the current symbol rate | 55 | * Get the current symbol rate |
56 | */ | 56 | */ |
57 | u32 stb0899_get_srate(struct stb0899_state *state) | 57 | static u32 stb0899_get_srate(struct stb0899_state *state) |
58 | { | 58 | { |
59 | struct stb0899_internal *internal = &state->internal; | 59 | struct stb0899_internal *internal = &state->internal; |
60 | u8 sfr[3]; | 60 | u8 sfr[3]; |
@@ -763,7 +763,7 @@ static void stb0899_dvbs2_config_csm_auto(struct stb0899_state *state) | |||
763 | stb0899_write_s2reg(state, STB0899_S2DEMOD, STB0899_BASE_CSM_CNTRL1, STB0899_OFF0_CSM_CNTRL1, reg); | 763 | stb0899_write_s2reg(state, STB0899_S2DEMOD, STB0899_BASE_CSM_CNTRL1, STB0899_OFF0_CSM_CNTRL1, reg); |
764 | } | 764 | } |
765 | 765 | ||
766 | long Log2Int(int number) | 766 | static long Log2Int(int number) |
767 | { | 767 | { |
768 | int i; | 768 | int i; |
769 | 769 | ||
diff --git a/drivers/media/dvb/frontends/stb0899_drv.c b/drivers/media/dvb/frontends/stb0899_drv.c index bee28f77b93f..10613acf18f5 100644 --- a/drivers/media/dvb/frontends/stb0899_drv.c +++ b/drivers/media/dvb/frontends/stb0899_drv.c | |||
@@ -134,7 +134,7 @@ static const struct stb0899_tab stb0899_dvbs2rf_tab[] = { | |||
134 | }; | 134 | }; |
135 | 135 | ||
136 | /* DVB-S2 Es/N0 quant in dB/100 vs read value * 100*/ | 136 | /* DVB-S2 Es/N0 quant in dB/100 vs read value * 100*/ |
137 | struct stb0899_tab stb0899_quant_tab[] = { | 137 | static struct stb0899_tab stb0899_quant_tab[] = { |
138 | { 0, 0 }, | 138 | { 0, 0 }, |
139 | { 0, 100 }, | 139 | { 0, 100 }, |
140 | { 600, 200 }, | 140 | { 600, 200 }, |
@@ -177,7 +177,7 @@ struct stb0899_tab stb0899_quant_tab[] = { | |||
177 | }; | 177 | }; |
178 | 178 | ||
179 | /* DVB-S2 Es/N0 estimate in dB/100 vs read value */ | 179 | /* DVB-S2 Es/N0 estimate in dB/100 vs read value */ |
180 | struct stb0899_tab stb0899_est_tab[] = { | 180 | static struct stb0899_tab stb0899_est_tab[] = { |
181 | { 0, 0 }, | 181 | { 0, 0 }, |
182 | { 0, 1 }, | 182 | { 0, 1 }, |
183 | { 301, 2 }, | 183 | { 301, 2 }, |
@@ -217,7 +217,7 @@ struct stb0899_tab stb0899_est_tab[] = { | |||
217 | { 5721, 526017 }, | 217 | { 5721, 526017 }, |
218 | }; | 218 | }; |
219 | 219 | ||
220 | int _stb0899_read_reg(struct stb0899_state *state, unsigned int reg) | 220 | static int _stb0899_read_reg(struct stb0899_state *state, unsigned int reg) |
221 | { | 221 | { |
222 | int ret; | 222 | int ret; |
223 | 223 | ||
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c index 3507463fdac9..16ef35afd33a 100644 --- a/drivers/media/dvb/ttpci/budget-ci.c +++ b/drivers/media/dvb/ttpci/budget-ci.c | |||
@@ -1337,7 +1337,7 @@ static struct stb0899_config tt3200_config = { | |||
1337 | .tuner_set_rfsiggain = NULL | 1337 | .tuner_set_rfsiggain = NULL |
1338 | }; | 1338 | }; |
1339 | 1339 | ||
1340 | struct stb6100_config tt3200_stb6100_config = { | 1340 | static struct stb6100_config tt3200_stb6100_config = { |
1341 | .tuner_address = 0x60, | 1341 | .tuner_address = 0x60, |
1342 | .refclock = 27000000, | 1342 | .refclock = 27000000, |
1343 | }; | 1343 | }; |
diff --git a/drivers/media/video/gspca/m5602/m5602_s5k83a.c b/drivers/media/video/gspca/m5602/m5602_s5k83a.c index af3f2dc2c702..ccea4a758464 100644 --- a/drivers/media/video/gspca/m5602/m5602_s5k83a.c +++ b/drivers/media/video/gspca/m5602/m5602_s5k83a.c | |||
@@ -113,7 +113,7 @@ int s5k83a_power_down(struct sd *sd) | |||
113 | return 0; | 113 | return 0; |
114 | } | 114 | } |
115 | 115 | ||
116 | void s5k83a_dump_registers(struct sd *sd) | 116 | static void s5k83a_dump_registers(struct sd *sd) |
117 | { | 117 | { |
118 | int address; | 118 | int address; |
119 | u8 page, old_page; | 119 | u8 page, old_page; |