]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi: loader: Make efi_event_queue and efi_register_notify_events static
authorBin Meng <bmeng@tinylab.org>
Wed, 5 Apr 2023 12:15:17 +0000 (20:15 +0800)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 8 Apr 2023 05:46:44 +0000 (07:46 +0200)
efi_event_queue and efi_register_notify_events are only referenced
in efi_boottime.c

Signed-off-by: Bin Meng <bmeng@tinylab.org>
include/efi_loader.h
lib/efi_loader/efi_boottime.c

index 4b89b9816d4b6c966f3b2e39e33c32b7c699bda4..b395eef9e790a984ef1d51c437d5064560269713 100644 (file)
@@ -513,9 +513,6 @@ struct efi_register_notify_event {
        struct list_head handles;
 };
 
-/* List of all events registered by RegisterProtocolNotify() */
-extern struct list_head efi_register_notify_events;
-
 /* called at pre-initialization */
 int efi_init_early(void);
 /* Initialize efi execution environment */
index caaab685ee0c379dbb579bad904d6c5210d524a0..d5065f296aee0c53a62f045119a2801d43275f38 100644 (file)
@@ -35,7 +35,7 @@ LIST_HEAD(efi_obj_list);
 __efi_runtime_data LIST_HEAD(efi_events);
 
 /* List of queued events */
-LIST_HEAD(efi_event_queue);
+static LIST_HEAD(efi_event_queue);
 
 /* Flag to disable timer activity in ExitBootServices() */
 static bool timers_enabled = true;
@@ -44,7 +44,7 @@ static bool timers_enabled = true;
 bool efi_st_keep_devices;
 
 /* List of all events registered by RegisterProtocolNotify() */
-LIST_HEAD(efi_register_notify_events);
+static LIST_HEAD(efi_register_notify_events);
 
 /* Handle of the currently executing image */
 static efi_handle_t current_image;