Commit d2441183 authored by Linus Torvalds's avatar Linus Torvalds

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: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 88ed86fe
...@@ -510,6 +510,7 @@ static __modinit int add_sysfs_param(struct module_kobject *mk, ...@@ -510,6 +510,7 @@ static __modinit int add_sysfs_param(struct module_kobject *mk,
return err; return err;
} }
#ifdef CONFIG_MODULES
static void free_module_param_attrs(struct module_kobject *mk) static void free_module_param_attrs(struct module_kobject *mk)
{ {
kfree(mk->mp->grp.attrs); kfree(mk->mp->grp.attrs);
...@@ -517,7 +518,6 @@ static void free_module_param_attrs(struct module_kobject *mk) ...@@ -517,7 +518,6 @@ static void free_module_param_attrs(struct module_kobject *mk)
mk->mp = NULL; mk->mp = NULL;
} }
#ifdef CONFIG_MODULES
/* /*
* module_param_sysfs_setup - setup sysfs support for one module * module_param_sysfs_setup - setup sysfs support for one module
* @mod: module * @mod: module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment