mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
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>
This commit is contained in:
parent
88ed86fee6
commit
d2441183dc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue