Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+9 -9
+1 -1
drivers/media/dvb/dvb-usb/anysee.c
··· 41 41 static int dvb_usb_anysee_debug; 42 42 module_param_named(debug, dvb_usb_anysee_debug, int, 0644); 43 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 45 module_param_named(delsys, dvb_usb_anysee_delsys, int, 0644); 46 46 MODULE_PARM_DESC(delsys, "select delivery mode (0=DVB-C, 1=DVB-T)"); 47 47 DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr);
+1 -1
drivers/media/dvb/frontends/cx24116.c
··· 369 369 * Not all S2 mmodulation schemes are support and not all rates with 370 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 373 fe_delivery_system_t delivery_system; 374 374 fe_modulation_t modulation; 375 375 fe_code_rate_t fec;
+2 -2
drivers/media/dvb/frontends/stb0899_algo.c
··· 54 54 * stb0899_get_srate 55 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 59 struct stb0899_internal *internal = &state->internal; 60 60 u8 sfr[3]; ··· 763 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 768 int i; 769 769
+3 -3
drivers/media/dvb/frontends/stb0899_drv.c
··· 134 134 }; 135 135 136 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 138 { 0, 0 }, 139 139 { 0, 100 }, 140 140 { 600, 200 }, ··· 177 177 }; 178 178 179 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 181 { 0, 0 }, 182 182 { 0, 1 }, 183 183 { 301, 2 }, ··· 217 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 222 int ret; 223 223
+1 -1
drivers/media/dvb/ttpci/budget-ci.c
··· 1337 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 1341 .tuner_address = 0x60, 1342 1342 .refclock = 27000000, 1343 1343 };
+1 -1
drivers/media/video/gspca/m5602/m5602_s5k83a.c
··· 113 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 118 int address; 119 119 u8 page, old_page;