]> git.karo-electronics.de Git - karo-tx-linux.git/commit
params: make dashes and underscores in parameter names truly equal
authorMichal Schmidt <mschmidt@redhat.com>
Sun, 9 Oct 2011 22:03:37 +0000 (00:03 +0200)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 1 Nov 2011 00:15:20 +0000 (11:15 +1100)
commitc7335bdb1e1b335d5a2e58b1ac23a778eb2dde2b
treeca7156561b9286e0300534a0bbf7215a8086dbf9
parent314108a3ab4f9243b93a824869a2a62bfd22e5e2
params: make dashes and underscores in parameter names truly equal

The user may use "foo-bar" for a kernel parameter defined as "foo_bar".
Make sure it works the other way around too.

Apply the equality of dashes and underscores on early_params and __setup
params as well.

The example given in Documentation/kernel-parameters.txt indicates that
this is the intended behaviour.

With the patch the kernel accepts "log-buf-len=1M" as expected.
https://bugzilla.redhat.com/show_bug.cgi?id=744545

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (neatened implementations)
include/linux/moduleparam.h
init/main.c
kernel/params.c