Skip to content

Commit 5d3c861

Browse files
committed
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>
1 parent c9b51a2 commit 5d3c861

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

drivers/firmware/efi/efivars.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ static void efivars_sysfs_exit(void)
638638
kset_unregister(efivars_kset);
639639
}
640640

641-
int efivars_sysfs_init(void)
641+
static int efivars_sysfs_init(void)
642642
{
643643
struct kobject *parent_kobj = efivars_kobject();
644644
int error = 0;
@@ -666,7 +666,6 @@ int efivars_sysfs_init(void)
666666

667667
return 0;
668668
}
669-
EXPORT_SYMBOL_GPL(efivars_sysfs_init);
670669

671670
module_init(efivars_sysfs_init);
672671
module_exit(efivars_sysfs_exit);

include/linux/efi.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,10 +1037,6 @@ bool efivar_validate(efi_guid_t vendor, efi_char16_t *var_name, u8 *data,
10371037
bool efivar_variable_is_removable(efi_guid_t vendor, const char *name,
10381038
size_t len);
10391039

1040-
#if defined(CONFIG_EFI_VARS) || defined(CONFIG_EFI_VARS_MODULE)
1041-
int efivars_sysfs_init(void);
1042-
1043-
#endif /* CONFIG_EFI_VARS */
10441040
extern bool efi_capsule_pending(int *reset_type);
10451041

10461042
extern int efi_capsule_supported(efi_guid_t guid, u32 flags,

0 commit comments

Comments
 (0)