Message ID | 20200624154218.7746-2-xypron.glpk@gmx.de |
---|---|
State | Accepted, archived |
Commit | 915f15ac5746739da0aa2ee2840c2d00dc65aaaa |
Delegated to: | Heinrich Schuchardt |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=K9szl46d; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49sS8P2CLNz9s1x for <incoming@patchwork.ozlabs.org>; Thu, 25 Jun 2020 01:42:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BCBB181FDD; Wed, 24 Jun 2020 17:42:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="K9szl46d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7CB5182056; Wed, 24 Jun 2020 17:42:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7FF2181FDD for <u-boot@lists.denx.de>; Wed, 24 Jun 2020 17:42:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1593013351; bh=4X4+H2YyP5f9rrOk3nFNRYsxq4ZJqIyyPbyqw42eMSk=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=K9szl46dgL87SkZoz2OC7E3zJmkovFcqC93wJ3V81mqV3no7vtezJ/wsSVTqOYUC8 yRncre992U6yfnQ3Tv+JupdPxg6xRnA8MSOh50jmyG836azi2CFUiPcIFKtx/LyvmR VBJnOZAqCT01LP6YlawyntpBRZ9NkDrW+Dcb7JCM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from workstation4.fritz.box ([88.152.145.75]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MAOJV-1jgfoj3iR9-00BvOO; Wed, 24 Jun 2020 17:42:31 +0200 From: Heinrich Schuchardt <xypron.glpk@gmx.de> To: AKASHI Takahiro <takahiro.akashi@linaro.org> Cc: Alexander Graf <agraf@csgraf.de>, u-boot@lists.denx.de, Heinrich Schuchardt <xypron.glpk@gmx.de> Subject: [PATCH 1/2] efi_loader: type of efi_secure_mode Date: Wed, 24 Jun 2020 17:42:17 +0200 Message-Id: <20200624154218.7746-2-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200624154218.7746-1-xypron.glpk@gmx.de> References: <20200624154218.7746-1-xypron.glpk@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:sr3E7FGlsvKKsspTgdvPath6bQ8rfgOAMhJ6cm62iz1YW0DirOe cMQhXwt/NHqSi2N4UYFQlIg9RFbGBb6gfWUy1iV7GbOfpNuue5TnJyG5BIMc97rDKJzTRXv veJ3Qs775OnfzcJYFi+7OmHV2Kfu8XHSPs45Lvq+a1Q7XI0d7VQzYpfcwwtPNdln+Ekt7N7 0IeL5dXLj1GiEesN/stVg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Ln0lQoBuiCs=:ffupcT8jNWvN11NM3fvbS6 rj5DpIxaFvfpQCExz1U48eDKQvvA2cYHELie41DT25M/4vAmy6wQGVaF70fZ5dvDDl3iC/DDr 7uSD7p/1mDN6MBOhL2oEen4hixb59LRF04ttr2GVPb8aFjA1aXIimvLjCDUZn7y2icKgdtBUr qwUvejhK9PMIm2WrDnXnEzHQq75/HLZu3zyvZ7GB1eRpyROnsHlRUtorT5pUgPCI1eesBsXob 5VnKNutvsLxQ3kYItnCGHjn9Up6WXK//5D8Su+CEbn+CyQsAna5q7Cy8WMZR2Dwie8zV6+IvQ iNcX3WHvp8CL0GIPkvVPd6pt25Zz+CibRcqsrWLcvKxahM1OQfaQb9NbkiUc7e9pIN+08WTL4 hYxTZfFOCaJfOuPRLA0C7sTKyVi+Du3XBikWJk+TseoXQFHSOvG+WTmu6NJDyXhOIWNOXjpMx V5+7fL0eAacSUYM3gx7ck9XtXMU5YEV4x9sOV5eoZbLA0NSK9QhUwVNWEpKnN0Zq25AHRJV7P yOuiwxD2O4OGKNVepSpRWUAnFFIp5uis8EriGmTocw0beUEJSn400vF+d7hrjDPrgFPVFV9i/ C7o9dmM06Pn5aJMSRJz2PVyX4uomfNSqmnQjHfBDOZugvTZeR0TbNDVL/kDoxwEar4Viy+OJs huEsSZTNnN52b2/Gpomuur67L17bdFI/2ONyyodBHwQlVrTHut20/b+sBXFpL2mLyZ9vHVl2i /Oph2PTgj1kJXOzR2y84BNUaqP4yucbxzYGP72wjZnST3izA3YNUDa/Or3az42unFIMO+v9tn CNVsItoCOLySp97HVJk6x1fiou+boJgEcKfsj3Op3QuxKG4VMcW2eRyv7AmYo4Tn5bpgccJ9d 32cqe1uO72hT/9vKlAS2biHgRW1IRNleORg0p6XDxXEVm9+QXhhfR7C7NrYsQZFhxhdZW02GH uuCo9hqmXw2x8NQIFEPROH2qXH5gQM5wmqG89MJd/vmuh7o1uy/4BPEdht6t+uFcw7lMG2BQC awD9eAO6lX9lrF3K2HHcyp/IHEvMQImGaU3YOXlIhfetkB1pH/jSzMOOq5UGOw6vQS2FcNKqE pCi3/2or4yBjAruxmcES8ECF3Z8+7Jx04F+6kAMiAYIVjVofIP3r2xT1IOA4yOz1Eb/dv40uF WD6hhUPsvNhZQF9GsU+/XrQ2PC/+h5CSMIqED4H0QL3pirrUHdrbOhSP1/KnSRFZdtn9TY1F6 35FaQbOcnT4zhukia X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
efi_loader: fix secure boot variables
|
expand
|
diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c index e097670e28..4d275b23ce 100644 --- a/lib/efi_loader/efi_variable.c +++ b/lib/efi_loader/efi_variable.c @@ -27,7 +27,7 @@ enum efi_secure_mode { }; static bool efi_secure_boot; -static int efi_secure_mode; +static enum efi_secure_mode efi_secure_mode; static u8 efi_vendor_keys; #define READ_ONLY BIT(31)
Variable efi_secure_mode is meant to hold a value of enum efi_secure_mode. So it should not be defined as int but as enum efi_secure_mode. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> --- lib/efi_loader/efi_variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0