An error occurred while fetching folder content.
params: make dashes and underscores in parameter names truly equal
Michal Schmidt authored
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: default avatarMichal Schmidt <mschmidt@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (neatened implementations)
b1e4d20c
Name Last commit Last update
..
debug Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb
events perf_event: Fix broken calc_timer_values()
gcov gcov: disable CONSTRUCTORS for UML
irq irq: Fix check for already initialized irq_domain in irq_domain_add
power PM / Domains: Fix build for CONFIG_PM_RUNTIME unset
time alarmtimers: Avoid possible denial of service with high freq periodic timers
trace Merge branch 'for-linus' of git://git.kernel.dk/linux-block
.gitignore Update kernel/.gitignore with new auto-generated files
Kconfig.freezer container freezer: implement freezer cgroup subsystem
Kconfig.hz sched: fix SCHED_HRTICK dependency
Kconfig.locks arch:Kconfig.locks Remove unused config option.
Kconfig.preempt sched: Isolate preempt counting in its own config option
Makefile jump label: Reduce the cycle count by changing the link order
acct.c pass a struct path to vfs_statfs
async.c async: Fixed an include coding style issue
audit.c atomic: use <linux/atomic.h>
audit.h audit: make functions static
audit_tree.c audit_tree,rcu: Convert call_rcu(__put_tree) to kfree_rcu()
audit_watch.c kill path_lookup()
auditfilter.c netlink: kill loginuid/sessionid/sid members from struct netlink_skb_parms
auditsc.c atomic: use <linux/atomic.h>
backtracetest.c backtrace: replace timer with tasklet + completions
bounds.c memcg: remove direct page_cgroup-to-page pointer
capability.c Merge branch 'master' into next
cgroup.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
cgroup_freezer.c cgroups: add per-thread subsystem callbacks
compat.c Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6
configs.c kernel/configs.c: include MODULE_*() when CONFIG_IKCONFIG_PROC=n
cpu.c Fix common misspellings
cpuset.c atomic: use <linux/atomic.h>
crash_dump.c crash_dump: export is_kdump_kernel to modules, consolidate elfcorehdr_addr, setup_elfcorehdr and saved_max_pfn
cred.c move RLIMIT_NPROC check from set_user() to do_execve_common()
delayacct.c KVM: Steal time implementation
dma.c kernel/dma.c: remove a CVS keyword
elfcore.c elf coredump: add extended numbering support
exec_domain.c sys_personality: remove the bogus checks in sys_personality()->__set_personality() path
exit.c ipc: introduce shm_rmid_forced sysctl
extable.c extable, core_kernel_data(): Make sure all archs define _sdata
fork.c move RLIMIT_NPROC check from set_user() to do_execve_common()
freezer.c Freezer: Use SMP barriers
futex.c Merge branch 'linus' into core/urgent
futex_compat.c userns: user namespaces: convert several capable() calls
groups.c userns: user namespaces: convert several capable() calls
hrtimer.c hrtimers: Fix typo causing erratic timers
hung_task.c watchdog, hung_task_timeout: Add Kconfig configurable default
irq_work.c irq_work: Use per cpu atomics instead of regular atomics
itimer.c itimers: Fix racy writes to cpu_itimer fields
jump_label.c jump_label: Fix jump_label update for modules
kallsyms.c Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
kexec.c treewide: Convert uses of struct resource to resource_size(ptr)
kfifo.c
kmod.c
kprobes.c
ksysfs.c
kthread.c
latencytop.c
lockdep.c
lockdep_internals.h
lockdep_proc.c
lockdep_states.h
module.c
mutex-debug.c
mutex-debug.h
mutex.c
mutex.h
notifier.c
nsproxy.c
padata.c
panic.c
params.c
pid.c
pid_namespace.c
pm_qos_params.c
posix-cpu-timers.c
posix-timers.c
printk.c
profile.c
ptrace.c
range.c
rcupdate.c
rcutiny.c
rcutiny_plugin.h
rcutorture.c
rcutree.c
rcutree.h
rcutree_plugin.h
rcutree_trace.c
relay.c
res_counter.c
resource.c
rtmutex-debug.c
rtmutex-debug.h
rtmutex-tester.c
rtmutex.c
rtmutex.h
rtmutex_common.h
rwsem.c
sched.c
sched_autogroup.c
sched_autogroup.h