summaryrefslogtreecommitdiffstats
path: root/kernel/params.c
diff options
context:
space:
mode:
authorLinus Torvalds2008-10-23 21:07:17 +0200
committerLinus Torvalds2008-10-23 21:09:00 +0200
commitd2441183dc222d12961ff2201f5086c846505d93 (patch)
treedcede8bab98871d7fd4739a063c533d6fd79921d /kernel/params.c
parentMerge branch 'proc' of git://git.kernel.org/pub/scm/linux/kernel/git/adobriya... (diff)
downloadkernel-qcow2-linux-d2441183dc222d12961ff2201f5086c846505d93.tar.gz
kernel-qcow2-linux-d2441183dc222d12961ff2201f5086c846505d93.tar.xz
kernel-qcow2-linux-d2441183dc222d12961ff2201f5086c846505d93.zip
Fix compile warning in kernel/params.c
Move free_module_param_attrs() into the CONFIG_MODULES section, since it's only used inside there. Thus avoiding the warning kernel/params.c:514: warning: 'free_module_param_attrs' defined but not used Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/params.c')
-rw-r--r--kernel/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c
index b077f1b045d3..a1e3025b19a9 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -510,6 +510,7 @@ fail:
return err;
}
+#ifdef CONFIG_MODULES
static void free_module_param_attrs(struct module_kobject *mk)
{
kfree(mk->mp->grp.attrs);
@@ -517,7 +518,6 @@ static void free_module_param_attrs(struct module_kobject *mk)
mk->mp = NULL;
}
-#ifdef CONFIG_MODULES
/*
* module_param_sysfs_setup - setup sysfs support for one module
* @mod: module