From: Rusty Russell Date: Wed, 22 Oct 2008 15:00:22 +0000 (-0500) Subject: param: Fix duplicate module prefixes X-Git-Tag: v2.6.28-rc1~36^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b473de87209fa86eb421b23386693b461612f30;p=pandora-kernel.git 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 Cc: Greg Kroah-Hartman --- Reading git-diff-tree failed