From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6CEC8C76188 for ; Wed, 5 Apr 2023 14:43:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 640D085FD6; Wed, 5 Apr 2023 16:43:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9FFC285F73; Wed, 5 Apr 2023 14:15:39 +0200 (CEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9FB9E85F7A for ; Wed, 5 Apr 2023 14:15:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng@tinylab.org X-QQ-mid: bizesmtp71t1680696925ty5hgky8 Received: from ubuntu.. ( [111.196.129.125]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 05 Apr 2023 20:15:24 +0800 (CST) X-QQ-SSF: 01200000002000D0F000B00A0000000 X-QQ-FEAT: uGhnJwy6xZIRXT0heswj0synIZ8U1Z3hXYOP+EZ11jXyNPCFWGPewCWfnlHYr F3HxHiy7p/IRByHgvkpmbpJmOvV5aHj9ooYCbcNiBK6Ee68xbXo5A7QRm6cmu/J6njfXDJM WHDD+QbtXkQVV/AF9hnwzV7DC3OHZJh0jatudalxXPQT3pLEMnddyxrNIw46V5te2jCB8id d4ZB+S5tadTe0EwkP6L1DE0gcL3eYioO31IWXRclQyMN++2FibPxFUmHe8y31MiyfCSrgHw zMsz71OG7eoXj7datUw9aKRIhokyNtouuRqhrx5m94Lr/FJYAjpUKeNu1czpuqD4Ajf+B9X fZRJLlGwO2Vm+gujEggFkY9hsBNS6BcfWi0jVFGtTD7qvx7DKQ= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 16758817964269433763 From: Bin Meng To: Heinrich Schuchardt , Ilias Apalodimas , u-boot@lists.denx.de Subject: [PATCH 3/5] efi: loader: Make efi_event_queue and efi_register_notify_events static Date: Wed, 5 Apr 2023 20:15:17 +0800 Message-Id: <20230405121519.778846-3-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230405121519.778846-1-bmeng@tinylab.org> References: <20230405121519.778846-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvr:qybglogicsvr3 X-Mailman-Approved-At: Wed, 05 Apr 2023 16:43:25 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean efi_event_queue and efi_register_notify_events are only referenced in efi_boottime.c Signed-off-by: Bin Meng --- include/efi_loader.h | 3 --- lib/efi_loader/efi_boottime.c | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/efi_loader.h b/include/efi_loader.h index 1542b4b625..0a2083c39a 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -509,9 +509,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 */ diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index caaab685ee..d5065f296a 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -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; -- 2.34.1