Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 -6
+1 -2
drivers/firmware/efi/efivars.c
··· 638 638 kset_unregister(efivars_kset); 639 639 } 640 640 641 - int efivars_sysfs_init(void) 641 + static int efivars_sysfs_init(void) 642 642 { 643 643 struct kobject *parent_kobj = efivars_kobject(); 644 644 int error = 0; ··· 666 666 667 667 return 0; 668 668 } 669 - EXPORT_SYMBOL_GPL(efivars_sysfs_init); 670 669 671 670 module_init(efivars_sysfs_init); 672 671 module_exit(efivars_sysfs_exit);
-4
include/linux/efi.h
··· 1037 1037 bool efivar_variable_is_removable(efi_guid_t vendor, const char *name, 1038 1038 size_t len); 1039 1039 1040 - #if defined(CONFIG_EFI_VARS) || defined(CONFIG_EFI_VARS_MODULE) 1041 - int efivars_sysfs_init(void); 1042 - 1043 - #endif /* CONFIG_EFI_VARS */ 1044 1040 extern bool efi_capsule_pending(int *reset_type); 1045 1041 1046 1042 extern int efi_capsule_supported(efi_guid_t guid, u32 flags,