diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2008-10-22 10:00:22 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2008-10-22 10:00:23 +1100 |
commit | 9b473de87209fa86eb421b23386693b461612f30 (patch) | |
tree | 7fe30a3f37347d5bb6f2ade2cc09133ae158ea3d /init | |
parent | 730b69d225259565c705f5f5a11cb1aba69568f1 (diff) | |
download | op-kernel-dev-9b473de87209fa86eb421b23386693b461612f30.zip op-kernel-dev-9b473de87209fa86eb421b23386693b461612f30.tar.gz |
param: Fix duplicate module prefixes
Instead of insisting each new module_param sysfs entry is unique,
handle the case where it already exists (for builtin modules).
The current code assumes that all identical prefixes are together in
the section: true for normal uses, but not necessarily so if someone
overrides MODULE_PARAM_PREFIX. More importantly, it's not true with
the new "core_param()" code which uses "kernel" as a prefix.
This simplifies the caller for the builtin case, at a slight loss of
efficiency (we do the lookup every time to see if the directory
exists).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions