aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-10-14 14:35:30 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-14 15:41:52 -0400
commit64a6f9500d8e8a8e1b1adc2120e56cc88df5727f (patch)
tree19949f0c50538e08b7e434db7860bef02d8aa611 /drivers
parent64b33619a30ff18c1535ee779572ecffcc4711d2 (diff)
signedness: module_param_array nump argument
... should be unsigned int Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/ipmi/ipmi_si_intf.c18
-rw-r--r--drivers/eisa/eisa-bus.c4
-rw-r--r--drivers/media/video/ivtv/ivtv-driver.c6
-rw-r--r--drivers/media/video/ov511.c2
-rw-r--r--drivers/media/video/pwc/pwc-if.c4
-rw-r--r--drivers/mtd/nand/cafe_nand.c2
-rw-r--r--drivers/pcmcia/i82365.c2
-rw-r--r--drivers/pcmcia/pd6729.c2
-rw-r--r--drivers/pcmcia/tcic.c2
-rw-r--r--drivers/usb/atm/speedtch.c2
-rw-r--r--drivers/usb/atm/xusbatm.c2
-rw-r--r--drivers/usb/serial/ti_usb_3410_5052.c8
12 files changed, 27 insertions, 27 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
index a2894d425153..c1222e98525d 100644
--- a/drivers/char/ipmi/ipmi_si_intf.c
+++ b/drivers/char/ipmi/ipmi_si_intf.c
@@ -1072,19 +1072,19 @@ static char *si_type[SI_MAX_PARMS];
1072#define MAX_SI_TYPE_STR 30 1072#define MAX_SI_TYPE_STR 30
1073static char si_type_str[MAX_SI_TYPE_STR]; 1073static char si_type_str[MAX_SI_TYPE_STR];
1074static unsigned long addrs[SI_MAX_PARMS]; 1074static unsigned long addrs[SI_MAX_PARMS];
1075static int num_addrs; 1075static unsigned int num_addrs;
1076static unsigned int ports[SI_MAX_PARMS]; 1076static unsigned int ports[SI_MAX_PARMS];
1077static int num_ports; 1077static unsigned int num_ports;
1078static int irqs[SI_MAX_PARMS]; 1078static int irqs[SI_MAX_PARMS];
1079static int num_irqs; 1079static unsigned int num_irqs;
1080static int regspacings[SI_MAX_PARMS]; 1080static int regspacings[SI_MAX_PARMS];
1081static int num_regspacings; 1081static unsigned int num_regspacings;
1082static int regsizes[SI_MAX_PARMS]; 1082static int regsizes[SI_MAX_PARMS];
1083static int num_regsizes; 1083static unsigned int num_regsizes;
1084static int regshifts[SI_MAX_PARMS]; 1084static int regshifts[SI_MAX_PARMS];
1085static int num_regshifts; 1085static unsigned int num_regshifts;
1086static int slave_addrs[SI_MAX_PARMS]; 1086static int slave_addrs[SI_MAX_PARMS];
1087static int num_slave_addrs; 1087static unsigned int num_slave_addrs;
1088 1088
1089#define IPMI_IO_ADDR_SPACE 0 1089#define IPMI_IO_ADDR_SPACE 0
1090#define IPMI_MEM_ADDR_SPACE 1 1090#define IPMI_MEM_ADDR_SPACE 1
@@ -1106,12 +1106,12 @@ MODULE_PARM_DESC(type, "Defines the type of each interface, each"
1106 " interface separated by commas. The types are 'kcs'," 1106 " interface separated by commas. The types are 'kcs',"
1107 " 'smic', and 'bt'. For example si_type=kcs,bt will set" 1107 " 'smic', and 'bt'. For example si_type=kcs,bt will set"
1108 " the first interface to kcs and the second to bt"); 1108 " the first interface to kcs and the second to bt");
1109module_param_array(addrs, long, &num_addrs, 0); 1109module_param_array(addrs, ulong, &num_addrs, 0);
1110MODULE_PARM_DESC(addrs, "Sets the memory address of each interface, the" 1110MODULE_PARM_DESC(addrs, "Sets the memory address of each interface, the"
1111 " addresses separated by commas. Only use if an interface" 1111 " addresses separated by commas. Only use if an interface"
1112 " is in memory. Otherwise, set it to zero or leave" 1112 " is in memory. Otherwise, set it to zero or leave"
1113 " it blank."); 1113 " it blank.");
1114module_param_array(ports, int, &num_ports, 0); 1114module_param_array(ports, uint, &num_ports, 0);
1115MODULE_PARM_DESC(ports, "Sets the port address of each interface, the" 1115MODULE_PARM_DESC(ports, "Sets the port address of each interface, the"
1116 " addresses separated by commas. Only use if an interface" 1116 " addresses separated by commas. Only use if an interface"
1117 " is a port. Otherwise, set it to zero or leave" 1117 " is a port. Otherwise, set it to zero or leave"
diff --git a/drivers/eisa/eisa-bus.c b/drivers/eisa/eisa-bus.c
index 4d4a47393909..65dcf0432653 100644
--- a/drivers/eisa/eisa-bus.c
+++ b/drivers/eisa/eisa-bus.c
@@ -35,9 +35,9 @@ static struct eisa_device_info __initdata eisa_table[] = {
35#define EISA_MAX_FORCED_DEV 16 35#define EISA_MAX_FORCED_DEV 16
36 36
37static int enable_dev[EISA_MAX_FORCED_DEV]; 37static int enable_dev[EISA_MAX_FORCED_DEV];
38static int enable_dev_count; 38static unsigned int enable_dev_count;
39static int disable_dev[EISA_MAX_FORCED_DEV]; 39static int disable_dev[EISA_MAX_FORCED_DEV];
40static int disable_dev_count; 40static unsigned int disable_dev_count;
41 41
42static int is_forced_dev (int *forced_tab, 42static int is_forced_dev (int *forced_tab,
43 int forced_count, 43 int forced_count,
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c
index 511a66252413..fd7a932e1d33 100644
--- a/drivers/media/video/ivtv/ivtv-driver.c
+++ b/drivers/media/video/ivtv/ivtv-driver.c
@@ -98,9 +98,9 @@ static int radio[IVTV_MAX_CARDS] = { -1, -1, -1, -1, -1, -1, -1, -1,
98 -1, -1, -1, -1, -1, -1, -1, -1, 98 -1, -1, -1, -1, -1, -1, -1, -1,
99 -1, -1, -1, -1, -1, -1, -1, -1 }; 99 -1, -1, -1, -1, -1, -1, -1, -1 };
100 100
101static int cardtype_c = 1; 101static unsigned int cardtype_c = 1;
102static int tuner_c = 1; 102static unsigned int tuner_c = 1;
103static int radio_c = 1; 103static unsigned int radio_c = 1;
104static char pal[] = "--"; 104static char pal[] = "--";
105static char secam[] = "--"; 105static char secam[] = "--";
106static char ntsc[] = "-"; 106static char ntsc[] = "-";
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c
index 9eb2562347a8..b8d4ac0d938e 100644
--- a/drivers/media/video/ov511.c
+++ b/drivers/media/video/ov511.c
@@ -181,7 +181,7 @@ module_param(force_palette, int, 0);
181MODULE_PARM_DESC(force_palette, "Force the palette to a specific value"); 181MODULE_PARM_DESC(force_palette, "Force the palette to a specific value");
182module_param(backlight, int, 0); 182module_param(backlight, int, 0);
183MODULE_PARM_DESC(backlight, "For objects that are lit from behind"); 183MODULE_PARM_DESC(backlight, "For objects that are lit from behind");
184static int num_uv; 184static unsigned int num_uv;
185module_param_array(unit_video, int, &num_uv, 0); 185module_param_array(unit_video, int, &num_uv, 0);
186MODULE_PARM_DESC(unit_video, 186MODULE_PARM_DESC(unit_video,
187 "Force use of specific minor number(s). 0 is not allowed."); 187 "Force use of specific minor number(s). 0 is not allowed.");
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c
index 0b67d4ec0318..950da2542148 100644
--- a/drivers/media/video/pwc/pwc-if.c
+++ b/drivers/media/video/pwc/pwc-if.c
@@ -1903,9 +1903,9 @@ static int fbufs;
1903static int mbufs; 1903static int mbufs;
1904static int compression = -1; 1904static int compression = -1;
1905static int leds[2] = { -1, -1 }; 1905static int leds[2] = { -1, -1 };
1906static int leds_nargs; 1906static unsigned int leds_nargs;
1907static char *dev_hint[MAX_DEV_HINTS]; 1907static char *dev_hint[MAX_DEV_HINTS];
1908static int dev_hint_nargs; 1908static unsigned int dev_hint_nargs;
1909 1909
1910module_param(size, charp, 0444); 1910module_param(size, charp, 0444);
1911module_param(fps, int, 0444); 1911module_param(fps, int, 0444);
diff --git a/drivers/mtd/nand/cafe_nand.c b/drivers/mtd/nand/cafe_nand.c
index e2832d0b9899..1e811715211a 100644
--- a/drivers/mtd/nand/cafe_nand.c
+++ b/drivers/mtd/nand/cafe_nand.c
@@ -80,7 +80,7 @@ module_param(regdebug, int, 0644);
80static int checkecc = 1; 80static int checkecc = 1;
81module_param(checkecc, int, 0644); 81module_param(checkecc, int, 0644);
82 82
83static int numtimings; 83static unsigned int numtimings;
84static int timing[3]; 84static int timing[3];
85module_param_array(timing, int, &numtimings, 0644); 85module_param_array(timing, int, &numtimings, 0644);
86 86
diff --git a/drivers/pcmcia/i82365.c b/drivers/pcmcia/i82365.c
index 71b33707117f..839bb1c0db58 100644
--- a/drivers/pcmcia/i82365.c
+++ b/drivers/pcmcia/i82365.c
@@ -101,7 +101,7 @@ static int ignore = -1;
101/* Bit map or list of interrupts to choose from */ 101/* Bit map or list of interrupts to choose from */
102static u_int irq_mask = 0xffff; 102static u_int irq_mask = 0xffff;
103static int irq_list[16]; 103static int irq_list[16];
104static int irq_list_count; 104static unsigned int irq_list_count;
105/* The card status change interrupt -- 0 means autoselect */ 105/* The card status change interrupt -- 0 means autoselect */
106static int cs_irq = 0; 106static int cs_irq = 0;
107 107
diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c
index dd0ddf19ee57..abc10fe49bd8 100644
--- a/drivers/pcmcia/pd6729.c
+++ b/drivers/pcmcia/pd6729.c
@@ -58,7 +58,7 @@ MODULE_AUTHOR("Jun Komuro <komurojun-mbn@nifty.com>");
58 58
59static int irq_mode = 1; /* 0 = ISA interrupt, 1 = PCI interrupt */ 59static int irq_mode = 1; /* 0 = ISA interrupt, 1 = PCI interrupt */
60static int irq_list[16]; 60static int irq_list[16];
61static int irq_list_count = 0; 61static unsigned int irq_list_count = 0;
62 62
63module_param(irq_mode, int, 0444); 63module_param(irq_mode, int, 0444);
64module_param_array(irq_list, int, &irq_list_count, 0444); 64module_param_array(irq_list, int, &irq_list_count, 0444);
diff --git a/drivers/pcmcia/tcic.c b/drivers/pcmcia/tcic.c
index c158cf38b9dd..749ac3710914 100644
--- a/drivers/pcmcia/tcic.c
+++ b/drivers/pcmcia/tcic.c
@@ -90,7 +90,7 @@ static int do_scan = 1;
90/* Bit map of interrupts to choose from */ 90/* Bit map of interrupts to choose from */
91static u_int irq_mask = 0xffff; 91static u_int irq_mask = 0xffff;
92static int irq_list[16]; 92static int irq_list[16];
93static int irq_list_count; 93static unsigned int irq_list_count;
94 94
95/* The card status change interrupt -- 0 means autoselect */ 95/* The card status change interrupt -- 0 means autoselect */
96static int cs_irq; 96static int cs_irq;
diff --git a/drivers/usb/atm/speedtch.c b/drivers/usb/atm/speedtch.c
index 8b132c4a503b..7d27c9cf3c43 100644
--- a/drivers/usb/atm/speedtch.c
+++ b/drivers/usb/atm/speedtch.c
@@ -88,7 +88,7 @@ static const unsigned char DEFAULT_MODEM_OPTION[MODEM_OPTION_LENGTH] = {
88static unsigned int BMaxDSL = DEFAULT_B_MAX_DSL; 88static unsigned int BMaxDSL = DEFAULT_B_MAX_DSL;
89static unsigned char ModemMode = DEFAULT_MODEM_MODE; 89static unsigned char ModemMode = DEFAULT_MODEM_MODE;
90static unsigned char ModemOption[MODEM_OPTION_LENGTH]; 90static unsigned char ModemOption[MODEM_OPTION_LENGTH];
91static int num_ModemOption; 91static unsigned int num_ModemOption;
92 92
93module_param(altsetting, uint, S_IRUGO | S_IWUSR); 93module_param(altsetting, uint, S_IRUGO | S_IWUSR);
94MODULE_PARM_DESC(altsetting, 94MODULE_PARM_DESC(altsetting,
diff --git a/drivers/usb/atm/xusbatm.c b/drivers/usb/atm/xusbatm.c
index 70125c6d3be4..8472543eee81 100644
--- a/drivers/usb/atm/xusbatm.c
+++ b/drivers/usb/atm/xusbatm.c
@@ -29,7 +29,7 @@
29 29
30#define XUSBATM_PARM(name, type, parmtype, desc) \ 30#define XUSBATM_PARM(name, type, parmtype, desc) \
31 static type name[XUSBATM_DRIVERS_MAX]; \ 31 static type name[XUSBATM_DRIVERS_MAX]; \
32 static int num_##name; \ 32 static unsigned int num_##name; \
33 module_param_array(name, parmtype, &num_##name, 0444); \ 33 module_param_array(name, parmtype, &num_##name, 0444); \
34 MODULE_PARM_DESC(name, desc) 34 MODULE_PARM_DESC(name, desc)
35 35
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c
index f98626ae75fe..1f0149495fb4 100644
--- a/drivers/usb/serial/ti_usb_3410_5052.c
+++ b/drivers/usb/serial/ti_usb_3410_5052.c
@@ -214,13 +214,13 @@ static int debug;
214static int low_latency = TI_DEFAULT_LOW_LATENCY; 214static int low_latency = TI_DEFAULT_LOW_LATENCY;
215static int closing_wait = TI_DEFAULT_CLOSING_WAIT; 215static int closing_wait = TI_DEFAULT_CLOSING_WAIT;
216static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT]; 216static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT];
217static int vendor_3410_count; 217static unsigned int vendor_3410_count;
218static ushort product_3410[TI_EXTRA_VID_PID_COUNT]; 218static ushort product_3410[TI_EXTRA_VID_PID_COUNT];
219static int product_3410_count; 219static unsigned int product_3410_count;
220static ushort vendor_5052[TI_EXTRA_VID_PID_COUNT]; 220static ushort vendor_5052[TI_EXTRA_VID_PID_COUNT];
221static int vendor_5052_count; 221static unsigned int vendor_5052_count;
222static ushort product_5052[TI_EXTRA_VID_PID_COUNT]; 222static ushort product_5052[TI_EXTRA_VID_PID_COUNT];
223static int product_5052_count; 223static unsigned int product_5052_count;
224 224
225/* supported devices */ 225/* supported devices */
226/* the array dimension is the number of default entries plus */ 226/* the array dimension is the number of default entries plus */