]> git.hungrycats.org Git - linux/commit
[PATCH] module_param_array() should take a pointer
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 20 Oct 2004 01:10:43 +0000 (18:10 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 20 Oct 2004 01:10:43 +0000 (18:10 -0700)
commit9229204bae3b2928b68351bc3a2c26769ea74047
treed680f21ea2fce07de9e672511fde3bbeb51447e0
parent1c854f6f64e327b63d3e0814e705ac2c4f5d9052
[PATCH] module_param_array() should take a pointer

module_param_array() takes a variable to put the number of elements in.
Looking through the uses, many people don't care, so they declare a dummy
or share one variable between several parameters.  The latter is
problematic because sysfs uses that number to decide how many to display.

The solution is to change the variable arg to a pointer, and if the pointer
is NULL, use the "max" value.  This change is fairly small, but fixing up
the callers is a lot of (trivial) churn.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
97 files changed:
drivers/char/ipmi/ipmi_si_intf.c
drivers/eisa/eisa-bus.c
drivers/i2c/busses/scx200_acb.c
drivers/input/joystick/amijoy.c
drivers/input/joystick/analog.c
drivers/input/joystick/db9.c
drivers/input/joystick/gamecon.c
drivers/input/joystick/turbografx.c
drivers/net/acenic.c
drivers/net/pcnet32.c
drivers/pcmcia/i82365.c
drivers/pcmcia/tcic.c
drivers/s390/block/xpram.c
drivers/scsi/pcmcia/sym53c500_cs.c
drivers/scsi/tmscsim.c
drivers/serial/8250.c
drivers/serial/serial_cs.c
drivers/usb/gadget/file_storage.c
drivers/usb/media/sn9c102_core.c
drivers/usb/media/w9968cf.c
include/linux/i2c.h
include/linux/moduleparam.h
kernel/params.c
net/decnet/dn_dev.c
net/ipv4/ipvs/ip_vs_ftp.c
net/ipv4/netfilter/ip_conntrack_ftp.c
net/ipv4/netfilter/ip_conntrack_irc.c
net/ipv4/netfilter/ip_conntrack_tftp.c
net/ipv4/netfilter/ip_nat_ftp.c
net/ipv4/netfilter/ip_nat_irc.c
net/ipv4/netfilter/ip_nat_tftp.c
sound/core/memalloc.c
sound/core/oss/pcm_oss.c
sound/core/rawmidi.c
sound/core/seq/seq.c
sound/drivers/dummy.c
sound/drivers/mpu401/mpu401.c
sound/drivers/serial-u16550.c
sound/drivers/virmidi.c
sound/isa/ad1816a/ad1816a.c
sound/isa/ad1848/ad1848.c
sound/isa/als100.c
sound/isa/azt2320.c
sound/isa/cmi8330.c
sound/isa/cs423x/cs4231.c
sound/isa/cs423x/cs4236.c
sound/isa/dt019x.c
sound/isa/es1688/es1688.c
sound/isa/es18xx.c
sound/isa/gus/gusclassic.c
sound/isa/gus/gusextreme.c
sound/isa/gus/gusmax.c
sound/isa/gus/interwave.c
sound/isa/opl3sa2.c
sound/isa/sb/es968.c
sound/isa/sb/sb16.c
sound/isa/sb/sb8.c
sound/isa/sgalaxy.c
sound/isa/sscape.c
sound/isa/wavefront/wavefront.c
sound/parisc/harmony.c
sound/pci/ali5451/ali5451.c
sound/pci/als4000.c
sound/pci/atiixp.c
sound/pci/atiixp_modem.c
sound/pci/au88x0/au88x0.c
sound/pci/azt3328.c
sound/pci/bt87x.c
sound/pci/cmipci.c
sound/pci/cs4281.c
sound/pci/cs46xx/cs46xx.c
sound/pci/emu10k1/emu10k1.c
sound/pci/ens1370.c
sound/pci/es1938.c
sound/pci/es1968.c
sound/pci/fm801.c
sound/pci/ice1712/ice1712.c
sound/pci/intel8x0.c
sound/pci/intel8x0m.c
sound/pci/korg1212/korg1212.c
sound/pci/maestro3.c
sound/pci/mixart/mixart.c
sound/pci/nm256/nm256.c
sound/pci/rme32.c
sound/pci/rme9652/hdsp.c
sound/pci/rme9652/rme9652.c
sound/pci/sonicvibes.c
sound/pci/trident/trident.c
sound/pci/via82xx.c
sound/pci/vx222/vx222.c
sound/pci/ymfpci/ymfpci.c
sound/pcmcia/pdaudiocf/pdaudiocf.c
sound/pcmcia/vx/vxpocket.c
sound/sparc/amd7930.c
sound/sparc/cs4231.c
sound/usb/usbaudio.c
sound/usb/usx2y/usbusx2y.c