提交 64a6f950 编写于 作者: A Al Viro 提交者: Linus Torvalds

signedness: module_param_array nump argument

... should be unsigned int
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 64b33619
...@@ -1072,19 +1072,19 @@ static char *si_type[SI_MAX_PARMS]; ...@@ -1072,19 +1072,19 @@ static char *si_type[SI_MAX_PARMS];
#define MAX_SI_TYPE_STR 30 #define MAX_SI_TYPE_STR 30
static char si_type_str[MAX_SI_TYPE_STR]; static char si_type_str[MAX_SI_TYPE_STR];
static unsigned long addrs[SI_MAX_PARMS]; static unsigned long addrs[SI_MAX_PARMS];
static int num_addrs; static unsigned int num_addrs;
static unsigned int ports[SI_MAX_PARMS]; static unsigned int ports[SI_MAX_PARMS];
static int num_ports; static unsigned int num_ports;
static int irqs[SI_MAX_PARMS]; static int irqs[SI_MAX_PARMS];
static int num_irqs; static unsigned int num_irqs;
static int regspacings[SI_MAX_PARMS]; static int regspacings[SI_MAX_PARMS];
static int num_regspacings; static unsigned int num_regspacings;
static int regsizes[SI_MAX_PARMS]; static int regsizes[SI_MAX_PARMS];
static int num_regsizes; static unsigned int num_regsizes;
static int regshifts[SI_MAX_PARMS]; static int regshifts[SI_MAX_PARMS];
static int num_regshifts; static unsigned int num_regshifts;
static int slave_addrs[SI_MAX_PARMS]; static int slave_addrs[SI_MAX_PARMS];
static int num_slave_addrs; static unsigned int num_slave_addrs;
#define IPMI_IO_ADDR_SPACE 0 #define IPMI_IO_ADDR_SPACE 0
#define IPMI_MEM_ADDR_SPACE 1 #define IPMI_MEM_ADDR_SPACE 1
...@@ -1106,12 +1106,12 @@ MODULE_PARM_DESC(type, "Defines the type of each interface, each" ...@@ -1106,12 +1106,12 @@ MODULE_PARM_DESC(type, "Defines the type of each interface, each"
" interface separated by commas. The types are 'kcs'," " interface separated by commas. The types are 'kcs',"
" 'smic', and 'bt'. For example si_type=kcs,bt will set" " 'smic', and 'bt'. For example si_type=kcs,bt will set"
" the first interface to kcs and the second to bt"); " the first interface to kcs and the second to bt");
module_param_array(addrs, long, &num_addrs, 0); module_param_array(addrs, ulong, &num_addrs, 0);
MODULE_PARM_DESC(addrs, "Sets the memory address of each interface, the" MODULE_PARM_DESC(addrs, "Sets the memory address of each interface, the"
" addresses separated by commas. Only use if an interface" " addresses separated by commas. Only use if an interface"
" is in memory. Otherwise, set it to zero or leave" " is in memory. Otherwise, set it to zero or leave"
" it blank."); " it blank.");
module_param_array(ports, int, &num_ports, 0); module_param_array(ports, uint, &num_ports, 0);
MODULE_PARM_DESC(ports, "Sets the port address of each interface, the" MODULE_PARM_DESC(ports, "Sets the port address of each interface, the"
" addresses separated by commas. Only use if an interface" " addresses separated by commas. Only use if an interface"
" is a port. Otherwise, set it to zero or leave" " is a port. Otherwise, set it to zero or leave"
......
...@@ -35,9 +35,9 @@ static struct eisa_device_info __initdata eisa_table[] = { ...@@ -35,9 +35,9 @@ static struct eisa_device_info __initdata eisa_table[] = {
#define EISA_MAX_FORCED_DEV 16 #define EISA_MAX_FORCED_DEV 16
static int enable_dev[EISA_MAX_FORCED_DEV]; static int enable_dev[EISA_MAX_FORCED_DEV];
static int enable_dev_count; static unsigned int enable_dev_count;
static int disable_dev[EISA_MAX_FORCED_DEV]; static int disable_dev[EISA_MAX_FORCED_DEV];
static int disable_dev_count; static unsigned int disable_dev_count;
static int is_forced_dev (int *forced_tab, static int is_forced_dev (int *forced_tab,
int forced_count, int forced_count,
......
...@@ -98,9 +98,9 @@ static int radio[IVTV_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1, ...@@ -98,9 +98,9 @@ static int radio[IVTV_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1 }; -1, -1, -1, -1, -1, -1, -1, -1 };
static int cardtype_c = 1; static unsigned int cardtype_c = 1;
static int tuner_c = 1; static unsigned int tuner_c = 1;
static int radio_c = 1; static unsigned int radio_c = 1;
static char pal[] = "--"; static char pal[] = "--";
static char secam[] = "--"; static char secam[] = "--";
static char ntsc[] = "-"; static char ntsc[] = "-";
......
...@@ -181,7 +181,7 @@ module_param(force_palette, int, 0); ...@@ -181,7 +181,7 @@ module_param(force_palette, int, 0);
MODULE_PARM_DESC(force_palette, "Force the palette to a specific value"); MODULE_PARM_DESC(force_palette, "Force the palette to a specific value");
module_param(backlight, int, 0); module_param(backlight, int, 0);
MODULE_PARM_DESC(backlight, "For objects that are lit from behind"); MODULE_PARM_DESC(backlight, "For objects that are lit from behind");
static int num_uv; static unsigned int num_uv;
module_param_array(unit_video, int, &num_uv, 0); module_param_array(unit_video, int, &num_uv, 0);
MODULE_PARM_DESC(unit_video, MODULE_PARM_DESC(unit_video,
"Force use of specific minor number(s). 0 is not allowed."); "Force use of specific minor number(s). 0 is not allowed.");
......
...@@ -1903,9 +1903,9 @@ static int fbufs; ...@@ -1903,9 +1903,9 @@ static int fbufs;
static int mbufs; static int mbufs;
static int compression = -1; static int compression = -1;
static int leds[2] = { -1, -1 }; static int leds[2] = { -1, -1 };
static int leds_nargs; static unsigned int leds_nargs;
static char *dev_hint[MAX_DEV_HINTS]; static char *dev_hint[MAX_DEV_HINTS];
static int dev_hint_nargs; static unsigned int dev_hint_nargs;
module_param(size, charp, 0444); module_param(size, charp, 0444);
module_param(fps, int, 0444); module_param(fps, int, 0444);
......
...@@ -80,7 +80,7 @@ module_param(regdebug, int, 0644); ...@@ -80,7 +80,7 @@ module_param(regdebug, int, 0644);
static int checkecc = 1; static int checkecc = 1;
module_param(checkecc, int, 0644); module_param(checkecc, int, 0644);
static int numtimings; static unsigned int numtimings;
static int timing[3]; static int timing[3];
module_param_array(timing, int, &numtimings, 0644); module_param_array(timing, int, &numtimings, 0644);
......
...@@ -101,7 +101,7 @@ static int ignore = -1; ...@@ -101,7 +101,7 @@ static int ignore = -1;
/* Bit map or list of interrupts to choose from */ /* Bit map or list of interrupts to choose from */
static u_int irq_mask = 0xffff; static u_int irq_mask = 0xffff;
static int irq_list[16]; static int irq_list[16];
static int irq_list_count; static unsigned int irq_list_count;
/* The card status change interrupt -- 0 means autoselect */ /* The card status change interrupt -- 0 means autoselect */
static int cs_irq = 0; static int cs_irq = 0;
......
...@@ -58,7 +58,7 @@ MODULE_AUTHOR("Jun Komuro <komurojun-mbn@nifty.com>"); ...@@ -58,7 +58,7 @@ MODULE_AUTHOR("Jun Komuro <komurojun-mbn@nifty.com>");
static int irq_mode = 1; /* 0 = ISA interrupt, 1 = PCI interrupt */ static int irq_mode = 1; /* 0 = ISA interrupt, 1 = PCI interrupt */
static int irq_list[16]; static int irq_list[16];
static int irq_list_count = 0; static unsigned int irq_list_count = 0;
module_param(irq_mode, int, 0444); module_param(irq_mode, int, 0444);
module_param_array(irq_list, int, &irq_list_count, 0444); module_param_array(irq_list, int, &irq_list_count, 0444);
......
...@@ -90,7 +90,7 @@ static int do_scan = 1; ...@@ -90,7 +90,7 @@ static int do_scan = 1;
/* Bit map of interrupts to choose from */ /* Bit map of interrupts to choose from */
static u_int irq_mask = 0xffff; static u_int irq_mask = 0xffff;
static int irq_list[16]; static int irq_list[16];
static int irq_list_count; static unsigned int irq_list_count;
/* The card status change interrupt -- 0 means autoselect */ /* The card status change interrupt -- 0 means autoselect */
static int cs_irq; static int cs_irq;
......
...@@ -88,7 +88,7 @@ static const unsigned char DEFAULT_MODEM_OPTION[MODEM_OPTION_LENGTH] = { ...@@ -88,7 +88,7 @@ static const unsigned char DEFAULT_MODEM_OPTION[MODEM_OPTION_LENGTH] = {
static unsigned int BMaxDSL = DEFAULT_B_MAX_DSL; static unsigned int BMaxDSL = DEFAULT_B_MAX_DSL;
static unsigned char ModemMode = DEFAULT_MODEM_MODE; static unsigned char ModemMode = DEFAULT_MODEM_MODE;
static unsigned char ModemOption[MODEM_OPTION_LENGTH]; static unsigned char ModemOption[MODEM_OPTION_LENGTH];
static int num_ModemOption; static unsigned int num_ModemOption;
module_param(altsetting, uint, S_IRUGO | S_IWUSR); module_param(altsetting, uint, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(altsetting, MODULE_PARM_DESC(altsetting,
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#define XUSBATM_PARM(name, type, parmtype, desc) \ #define XUSBATM_PARM(name, type, parmtype, desc) \
static type name[XUSBATM_DRIVERS_MAX]; \ static type name[XUSBATM_DRIVERS_MAX]; \
static int num_##name; \ static unsigned int num_##name; \
module_param_array(name, parmtype, &num_##name, 0444); \ module_param_array(name, parmtype, &num_##name, 0444); \
MODULE_PARM_DESC(name, desc) MODULE_PARM_DESC(name, desc)
......
...@@ -214,13 +214,13 @@ static int debug; ...@@ -214,13 +214,13 @@ static int debug;
static int low_latency = TI_DEFAULT_LOW_LATENCY; static int low_latency = TI_DEFAULT_LOW_LATENCY;
static int closing_wait = TI_DEFAULT_CLOSING_WAIT; static int closing_wait = TI_DEFAULT_CLOSING_WAIT;
static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT]; static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT];
static int vendor_3410_count; static unsigned int vendor_3410_count;
static ushort product_3410[TI_EXTRA_VID_PID_COUNT]; static ushort product_3410[TI_EXTRA_VID_PID_COUNT];
static int product_3410_count; static unsigned int product_3410_count;
static ushort vendor_5052[TI_EXTRA_VID_PID_COUNT]; static ushort vendor_5052[TI_EXTRA_VID_PID_COUNT];
static int vendor_5052_count; static unsigned int vendor_5052_count;
static ushort product_5052[TI_EXTRA_VID_PID_COUNT]; static ushort product_5052[TI_EXTRA_VID_PID_COUNT];
static int product_5052_count; static unsigned int product_5052_count;
/* supported devices */ /* supported devices */
/* the array dimension is the number of default entries plus */ /* the array dimension is the number of default entries plus */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册