From patchwork Wed Aug 20 14:46:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 82 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701217; bh=hBuIGTVtEAIp3CqNW5Uz2r/XqwaH1GkOCd+lV8UlgCo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=XoMaKPWlLoRmPXwIsgG1G1bG2AdV//0DqyZouS7a3NqfFYZ3zymqFxYU1sHQg8RNY WAZaubcvHa28k8SZe1NZN0E/NrzNquaRxX193fPDteGt/HKYLJg2YB+t2bFekQzvy4 oc2OsTqH0Mx+t+zRIDySwcCILk4nrk5+fQLrXv2iHH/Z+6oldqVq70ip2fYNOy9mm+ iJh5I3gfb5ee4NS/wUEXLdcKie/Wq5hWQAHDQhhdLoTCsRpacSa1YeVk4z3QSZ2V4y LWJ6lRM6wFdCa3Dm7svcZkmiRXx4bv4RbcoLYKjKzR+LEdjdJ3VI/MmVaYSE26eS8i sk3LjzhARnriQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C277467694 for ; Wed, 20 Aug 2025 08:46:57 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id MvrFzE7b-k1U for ; Wed, 20 Aug 2025 08:46:57 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701210; bh=hBuIGTVtEAIp3CqNW5Uz2r/XqwaH1GkOCd+lV8UlgCo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=hSF0QLJlJFlyFF38iMELi0eGAUu9REI/7Np3nuLon7c8jFAmMFZILQPUE+NtCxDf6 ORXd/ykfthvurCphPlxbWFcFyNaHFk/AOl1YWDz1LdtZ8q2lAeBMvza9Fg1RkJQpF5 kIRMbmSWJxOGWPlKZEQKvzmB3f+HuAGjpwXOfI1WewFvxBFyWmAXh1tNKcocU68+ca DiKffahRPpQP5kNVg0HotTvxORYFCqX9g72HerzfFKtEEruPhug7PWPJ3VdN6pr5PW PS9R2pdcw4sFvQzsaKPzEmgcVeSIaTgGgL8pfOeWs+0M9nHAjktJFdCJHoBaBJEb7x llAyCpjLS24vg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 47A49676A6 for ; Wed, 20 Aug 2025 08:46:50 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701207; bh=PEgLgzXFnOdepyffMYVKa8iKvacFQPIEwphhpFGJcvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZzNNhpEPsT3hYd5kVIB4WE2ahBYcpLtU6ZPD1651IcAye5vCNMbCcAcvLs/vcZ2mV tgh0GlRHwgpCsCpFa0Du10js7PCsWbInPmEOwtrF2OTmo8xhJBbVH7auJmU6IfW/YY iwM3mumOmvAz3C6rptqtYZJb3l3xMfdhw0KJZFBuA7JAZLA7Khm1BlZV4iC3r6Hzp8 v++UlUenVelLj3HDFsnNTO8W4wy9Gad2+0q3jjkArjqeupk7tjWcyNd0KSxrSxtCXe oUOrCB/xoja3rU/9hoiJS3iDJFYhwl8uXZy/8vJ4YozKsPnqFYhYXDJt19DsL7/jkK GxbrvA7jbkYAg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 96684674FA; Wed, 20 Aug 2025 08:46:47 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 0VJib2vZoPhd; Wed, 20 Aug 2025 08:46:47 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701206; bh=WdbB4dIl9Om7Btn53M0UrYpPtu/KezsnKZFKHpjWfcA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AHPFGlVJXUFGH0a/E56SwBL4kONNaN8PtL94wvxERbQjP8KD/TX4aAAgcoD55lfa+ BTvHb1wjo+7wtLBRMofnSDZGKvz/LHbO8A7mLHqi1AyLRo8Ufr9OZ6bIZumXk4kH0H 7czYs1iaXfFHMzOVq2RLBvE2uZIm0AtXknC7DcPhgqdNQtFfrP6X3pY18pZqsH34Wu NSY62+cOm3LAQB8Ap2NlfM5Nx5eCm9BrisMcPpGLRYqjHc2kamz6tJwU+e+HSPFFkE urYOBEIw4u++Ke8XCXBvthAYoBxsfByyl7HAHzSK3YG2ptZzLDeB3dG2TervjQxleb 5HY11GjfRZpGw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id EA316674F4; Wed, 20 Aug 2025 08:46:45 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Wed, 20 Aug 2025 08:46:06 -0600 Message-ID: <20250820144621.1073679-5-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250820144621.1073679-1-sjg@u-boot.org> References: <20250820144621.1073679-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: HP53UFNNIMVF462QX2VLHDHR7UOH6ZJO X-Message-ID-Hash: HP53UFNNIMVF462QX2VLHDHR7UOH6ZJO X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 04/14] efi: Drop the BS macro with efi debug List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Even if this is a subtle dig at EFI, it is only used once and there is not much benefit in retaining it. Access the system-table directly, instead. Signed-off-by: Simon Glass --- cmd/efidebug.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/efidebug.c b/cmd/efidebug.c index 2df0fc4e221..3a4429a3928 100644 --- a/cmd/efidebug.c +++ b/cmd/efidebug.c @@ -26,8 +26,6 @@ #include #include -#define BS systab.boottime - static bool app_not_supported(const char *cmd) { if (!IS_ENABLED(CONFIG_EFI_APP)) @@ -493,7 +491,8 @@ static int do_efi_show_handles(struct cmd_tbl *cmdtp, int flag, &handler); if (ret == EFI_SUCCESS) printf(" %pD\n", handler->protocol_interface); - ret = BS->protocols_per_handle(handles[i], &guid, &count); + ret = systab.boottime->protocols_per_handle(handles[i], &guid, + &count); /* Print other protocols */ for (j = 0; j < count; j++) { if (guidcmp(guid[j], &efi_guid_device_path))