summaryrefslogtreecommitdiff
path: root/drivers/firmware/efi/efivars.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-09-23 11:13:07 +0300
committerArd Biesheuvel <ardb@kernel.org>2020-09-29 20:40:57 +0300
commit5d3c8617ccee6387ba73a5dba77fb9dc21cb85f4 (patch)
treed3005a3042ddf562c380343dbb79bebc519ede03 /drivers/firmware/efi/efivars.c
parentc9b51a2dbfe7f47643e133bf48e1bf28f1b85d2a (diff)
downloadlinux-5d3c8617ccee6387ba73a5dba77fb9dc21cb85f4.tar.xz
efi: efivars: un-export efivars_sysfs_init()
efivars_sysfs_init() is only used locally in the source file that defines it, so make it static and unexport it. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/efivars.c')
-rw-r--r--drivers/firmware/efi/efivars.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firmware/efi/efivars.c b/drivers/firmware/efi/efivars.c
index f39321dbc29f..a76f50e15e6d 100644
--- a/drivers/firmware/efi/efivars.c
+++ b/drivers/firmware/efi/efivars.c
@@ -638,7 +638,7 @@ static void efivars_sysfs_exit(void)
kset_unregister(efivars_kset);
}
-int efivars_sysfs_init(void)
+static int efivars_sysfs_init(void)
{
struct kobject *parent_kobj = efivars_kobject();
int error = 0;
@@ -666,7 +666,6 @@ int efivars_sysfs_init(void)
return 0;
}
-EXPORT_SYMBOL_GPL(efivars_sysfs_init);
module_init(efivars_sysfs_init);
module_exit(efivars_sysfs_exit);