diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-10-14 14:35:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 15:41:52 -0400 |
commit | 64a6f9500d8e8a8e1b1adc2120e56cc88df5727f (patch) | |
tree | 19949f0c50538e08b7e434db7860bef02d8aa611 /drivers/char/ipmi | |
parent | 64b33619a30ff18c1535ee779572ecffcc4711d2 (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/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 18 |
1 files changed, 9 insertions, 9 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 |
1073 | static char si_type_str[MAX_SI_TYPE_STR]; | 1073 | static char si_type_str[MAX_SI_TYPE_STR]; |
1074 | static unsigned long addrs[SI_MAX_PARMS]; | 1074 | static unsigned long addrs[SI_MAX_PARMS]; |
1075 | static int num_addrs; | 1075 | static unsigned int num_addrs; |
1076 | static unsigned int ports[SI_MAX_PARMS]; | 1076 | static unsigned int ports[SI_MAX_PARMS]; |
1077 | static int num_ports; | 1077 | static unsigned int num_ports; |
1078 | static int irqs[SI_MAX_PARMS]; | 1078 | static int irqs[SI_MAX_PARMS]; |
1079 | static int num_irqs; | 1079 | static unsigned int num_irqs; |
1080 | static int regspacings[SI_MAX_PARMS]; | 1080 | static int regspacings[SI_MAX_PARMS]; |
1081 | static int num_regspacings; | 1081 | static unsigned int num_regspacings; |
1082 | static int regsizes[SI_MAX_PARMS]; | 1082 | static int regsizes[SI_MAX_PARMS]; |
1083 | static int num_regsizes; | 1083 | static unsigned int num_regsizes; |
1084 | static int regshifts[SI_MAX_PARMS]; | 1084 | static int regshifts[SI_MAX_PARMS]; |
1085 | static int num_regshifts; | 1085 | static unsigned int num_regshifts; |
1086 | static int slave_addrs[SI_MAX_PARMS]; | 1086 | static int slave_addrs[SI_MAX_PARMS]; |
1087 | static int num_slave_addrs; | 1087 | static 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"); |
1109 | module_param_array(addrs, long, &num_addrs, 0); | 1109 | module_param_array(addrs, ulong, &num_addrs, 0); |
1110 | MODULE_PARM_DESC(addrs, "Sets the memory address of each interface, the" | 1110 | MODULE_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."); |
1114 | module_param_array(ports, int, &num_ports, 0); | 1114 | module_param_array(ports, uint, &num_ports, 0); |
1115 | MODULE_PARM_DESC(ports, "Sets the port address of each interface, the" | 1115 | MODULE_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" |