Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64a6f950 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

signedness: module_param_array nump argument



... should be unsigned int

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 64b33619
Loading
Loading
Loading
Loading
+9 −9
Original line number Original line Diff line number Diff line
@@ -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"
		 " 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"
+2 −2
Original line number Original line Diff line number Diff line
@@ -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,
+3 −3
Original line number Original line Diff line number Diff line
@@ -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[] = "-";
+1 −1
Original line number Original line Diff line number Diff line
@@ -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.");
+2 −2
Original line number Original line Diff line number Diff line
@@ -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);
Loading