lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Tue, 05 Jul 2011 08:45:37 +0100
From:	"Jan Beulich" <JBeulich@...ell.com>
To:	<Matt_Domsch@...l.com>
Cc:	<linux-kernel@...r.kernel.org>
Subject: [PATCH] efivars: remove stray exports

There's no in-tree consumer, and the way they are currently prototyped
it doesn't look like they're really usable from anywhere but the base
EFI implementation.

Signed-off-by: Jan Beulich <jbeulich@...ell.com>

---
 drivers/firmware/efivars.c |   13 ++++++-------
 include/linux/efi.h        |    5 -----
 2 files changed, 6 insertions(+), 12 deletions(-)

--- 3.0-rc6/drivers/firmware/efivars.c
+++ 3.0-rc6-EFI-vars/drivers/firmware/efivars.c
@@ -625,7 +625,7 @@ efivar_create_sysfs_entry(struct efivars
 	return 0;
 }
 
-static int
+static int __init
 create_efivars_bin_attributes(struct efivars *efivars)
 {
 	struct bin_attribute *attr;
@@ -684,7 +684,7 @@ out_free:
 	return error;
 }
 
-void unregister_efivars(struct efivars *efivars)
+static void unregister_efivars(struct efivars *efivars)
 {
 	struct efivar_entry *entry, *n;
 
@@ -702,11 +702,11 @@ void unregister_efivars(struct efivars *
 	kfree(efivars->del_var);
 	kset_unregister(efivars->kset);
 }
-EXPORT_SYMBOL_GPL(unregister_efivars);
 
-int register_efivars(struct efivars *efivars,
-		     const struct efivar_operations *ops,
-		     struct kobject *parent_kobj)
+static int __init
+register_efivars(struct efivars *efivars,
+		 const struct efivar_operations *ops,
+		 struct kobject *parent_kobj)
 {
 	efi_status_t status = EFI_NOT_FOUND;
 	efi_guid_t vendor_guid;
@@ -768,7 +768,6 @@ out:
 
 	return error;
 }
-EXPORT_SYMBOL_GPL(register_efivars);
 
 static struct efivars __efivars;
 static struct efivar_operations ops;
--- 3.0-rc6/include/linux/efi.h
+++ 3.0-rc6-EFI-vars/include/linux/efi.h
@@ -428,11 +428,6 @@ struct efivars {
 	const struct efivar_operations *ops;
 };
 
-int register_efivars(struct efivars *efivars,
-		     const struct efivar_operations *ops,
-		     struct kobject *parent_kobj);
-void unregister_efivars(struct efivars *efivars);
-
 #endif /* CONFIG_EFI_VARS */
 
 #endif /* _LINUX_EFI_H */



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ