From patchwork Fri Feb 26 14:20:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 63062 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp745058lbc; Fri, 26 Feb 2016 06:22:19 -0800 (PST) X-Received: by 10.66.220.162 with SMTP id px2mr2398443pac.15.1456496539794; Fri, 26 Feb 2016 06:22:19 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id q78si20231326pfa.198.2016.02.26.06.22.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2016 06:22:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aZJGT-00065U-UL; Fri, 26 Feb 2016 14:21:05 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aZJGQ-0005yP-E6 for linux-arm-kernel@lists.infradead.org; Fri, 26 Feb 2016 14:21:03 +0000 Received: by mail-wm0-x22b.google.com with SMTP id b205so73942270wmb.1 for ; Fri, 26 Feb 2016 06:20:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=mnnTTvqvw1Z93sjj0jWA6ebR+xOuhm9LTUQ/cWZ7e/o=; b=UmcFeF6p1AABN1PRNXqolJ+/enhxcg/+amhDUzFNxbVP8Tj6+QL6gSBm3nXUONeYCd Ne3qrJ9al4V4iD5Uv4RdEJtKu2aaCv6+qxseE9yZgtkvgL1TKDRFdnULul2P/CMcg9uT Wr7+FNwu54z7fEYgCvDzZ5zAMhKYyNfUmgrjk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mnnTTvqvw1Z93sjj0jWA6ebR+xOuhm9LTUQ/cWZ7e/o=; b=YvnVstQNYHs1HF4mV4mqIzgl6gWIw9DPDX3efEEiXlrmUUhuPqGJFAhU9JwGcj9OEq QZEvFElkRt38mvaUMlr+j4cemaen2y+8ND6CkzDTPb00JdtSIX/udq3CZzOJLT2iobzN 8euqIFlyM6HU3rSv24HO0uCxXa36D6Vi7tom0/H6+BJCX7r8gL3ZcLWdRHIRq+Ac8lEj 8Qjw2Y1Knvn6+9/bfwZ88V9fzdKGUb06JAzTmNyQik6txYhAP/Fe21Hec4+S5vw067zS fniGecOUAAxEJlbqTfmkcXyVV+4OZV9ebhwVkTqvK1Voh0nOtGWd9AaaWUbo+iD3a2tF 5IsA== X-Gm-Message-State: AD7BkJLkOxNLd4pX9Y1MRwoUkZSqY50gVqTHz0OaNFmAXZ68A0R6jI3BM2sjdpo+E3f+Kgoe X-Received: by 10.194.85.161 with SMTP id i1mr2186840wjz.95.1456496440704; Fri, 26 Feb 2016 06:20:40 -0800 (PST) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id pd1sm12626623wjb.19.2016.02.26.06.20.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Feb 2016 06:20:39 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, linux-efi@vger.kernel.org, matt@codeblueprint.co.uk, leif.lindholm@linaro.org, mark.rutland@arm.com Subject: [PATCH 1/2] efi: get rid of EFI_SYSTEM_TABLES status bit Date: Fri, 26 Feb 2016 15:20:34 +0100 Message-Id: <1456496435-12679-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160226_062102_788015_BC1DE822 X-CRM114-Status: GOOD ( 12.54 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:22b listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The EFI_SYSTEM_TABLES status bit is set by all EFI supporting architectures upon discovery of the EFI system table, but the bit is never tested in any code we have in the tree. So remove it. Signed-off-by: Ard Biesheuvel --- arch/ia64/kernel/efi.c | 2 -- arch/x86/platform/efi/efi.c | 2 -- drivers/firmware/efi/arm-runtime.c | 1 - include/linux/efi.h | 1 - 4 files changed, 6 deletions(-) -- 2.5.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c index caae3f4e4341..e3456698a2a7 100644 --- a/arch/ia64/kernel/efi.c +++ b/arch/ia64/kernel/efi.c @@ -531,8 +531,6 @@ efi_init (void) efi.systab->hdr.revision >> 16, efi.systab->hdr.revision & 0xffff, vendor); - set_bit(EFI_SYSTEM_TABLES, &efi.flags); - palo_phys = EFI_INVALID_TABLE_ADDR; if (efi_config_init(arch_tables) != 0) diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index ad285404ea7f..48dd701dacf6 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c @@ -352,8 +352,6 @@ static int __init efi_systab_init(void *phys) efi.systab->hdr.revision >> 16, efi.systab->hdr.revision & 0xffff); - set_bit(EFI_SYSTEM_TABLES, &efi.flags); - return 0; } diff --git a/drivers/firmware/efi/arm-runtime.c b/drivers/firmware/efi/arm-runtime.c index 6ae21e41a429..16c7d2a71156 100644 --- a/drivers/firmware/efi/arm-runtime.c +++ b/drivers/firmware/efi/arm-runtime.c @@ -105,7 +105,6 @@ static int __init arm_enable_runtime_services(void) pr_err("Failed to remap EFI System Table\n"); return -ENOMEM; } - set_bit(EFI_SYSTEM_TABLES, &efi.flags); if (!efi_virtmap_init()) { pr_err("No UEFI virtual mapping was installed -- runtime services will not be available\n"); diff --git a/include/linux/efi.h b/include/linux/efi.h index e747eb08b2be..99bc85f708d4 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -975,7 +975,6 @@ extern int __init efi_setup_pcdp_console(char *); * possible, remove EFI-related code altogether. */ #define EFI_BOOT 0 /* Were we booted from EFI? */ -#define EFI_SYSTEM_TABLES 1 /* Can we use EFI system tables? */ #define EFI_CONFIG_TABLES 2 /* Can we use EFI config tables? */ #define EFI_RUNTIME_SERVICES 3 /* Can we use runtime services? */ #define EFI_MEMMAP 4 /* Can we use EFI memory map? */