[PATCH] efi_runtime: fix gcc warning for efi_runtime_reset_system

Ivan Hu ivan.hu at canonical.com
Mon Apr 16 03:42:40 UTC 2018


efi_runtime_reset_system function currently not uesed,#if define it out.

Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
 efi_runtime/efi_runtime.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/efi_runtime/efi_runtime.c b/efi_runtime/efi_runtime.c
index a017a98..d79db78 100644
--- a/efi_runtime/efi_runtime.c
+++ b/efi_runtime/efi_runtime.c
@@ -561,6 +561,10 @@ static long efi_runtime_get_nexthighmonocount(unsigned long arg)
 	return 0;
 }
 
+#if 0
+/*
+ *  Note: efi_runtime_reset_system currently not used
+ */
 static long efi_runtime_reset_system(unsigned long arg)
 {
 	struct efi_resetsystem __user *resetsystem_user;
@@ -584,6 +588,7 @@ static long efi_runtime_reset_system(unsigned long arg)
 	kfree(data);
 	return 0;
 }
+#endif
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0)
 static long efi_runtime_query_variableinfo(unsigned long arg)
-- 
2.7.4




More information about the fwts-devel mailing list