From patchwork Wed Jul 11 09:40:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 141707 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp69771ljj; Wed, 11 Jul 2018 02:41:00 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc8f3KUAsGTi8fPwSdX6sdDWa642kdJwrvuT6dmz4Gw/QXACmsV5ZzEuTJwlBm9Bl4Wd2Kh X-Received: by 2002:a63:4857:: with SMTP id x23-v6mr20374014pgk.30.1531302059941; Wed, 11 Jul 2018 02:40:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531302059; cv=none; d=google.com; s=arc-20160816; b=STK3PkSvEfebpQbbVEjk+wkd72xpBLTf5O5/ECWJkeIHL05ncO69Q5Be9TdccXcISd 0MX4PQrplwsH4PgeuI4cHHdyK8ZWPuHUN5TiH5RAKk/lh+gS+x+unpAiiURZL4ODBO0d Bg4oXY9wyxrS/gcgAi/+MR0r3yJ/wcA+bcFroopAK3hw93D2VX2326HkMX6y/bkYQHTH ShgPbnQJr5M5jlD+LnXqfUz64wCs3AidAzq0MmSoGsnvUIWKRjmtGyIW3A7cFDLrqmxY ARFwemnLQKHAl9EVBmVYqNkUezyO/qtwSr6e7865SCx3/ooNFt7ssBKZC3Zx4ZPyiFRb eGsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ZqeNzGml4afcm1ZwxUqSeHEL0c5jVKB8hlqShvm+ZHg=; b=yOXmaSlxECsDCYCqJHmIN77PRI19q0MBFp4lb7qimKTBJZkU4+YjmjBne4DE84iUVS h+/Uy+uVWMUfFSb4NG2jv6O5c34g/p+9X9BtGKAid35t/BN1HOzRHKzbNM8C7tUgBqaH 5ILHebAIovSR073KI83ISLLFJxwN/IBs3w51bzpjKMymjHuEol3+/741PUGne6ZVkUIo XZ8zfpWLRAyCJYW+D4wjXh/ZLXxd+E10dyhVJ8WezIg0lWnWSrDYoDiWqv/0J9+RiMQ9 8xvyZdWMkkNUNImkw4UGyE9eMxN+mFMc6bfLqPrGxlmA8ZUSpsuHpfXILsK32IN8unbM k2IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tcv2EhEE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17-v6si17367412pgv.383.2018.07.11.02.40.59; Wed, 11 Jul 2018 02:40:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Tcv2EhEE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732693AbeGKJoY (ORCPT + 22 others); Wed, 11 Jul 2018 05:44:24 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45399 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732649AbeGKJoX (ORCPT ); Wed, 11 Jul 2018 05:44:23 -0400 Received: by mail-wr1-f68.google.com with SMTP id c4-v6so4782333wrs.12 for ; Wed, 11 Jul 2018 02:40:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZqeNzGml4afcm1ZwxUqSeHEL0c5jVKB8hlqShvm+ZHg=; b=Tcv2EhEEOtrXUYNV09XvwqVSoCBg//nX/8XAtsntwXu2BZ5E53pgKDFOOvodUN+Vz9 2NuIHbzOFyrs+i9vTuaSGUqbHHNtOKZgRKPzxhSYO/fpXlvM4emXy7+wvOkUbPXle5Yk 92f3gmWOfPyoc8YAcxPJG5Qvwj/ksOzSIKXQU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZqeNzGml4afcm1ZwxUqSeHEL0c5jVKB8hlqShvm+ZHg=; b=YO3iaIW1qQzs7WLZNRHOVssDQLjqMarJ6iA6xHZn2Xhyab17USfX3yPYK7gCo42vIv sNX3slAEXZCFLF6roHhOe0R6/p01FxqfDjERfJnV0jDP4Nud3zS68q4GjTDazfXByicA u7Myls9+HQHBz64pJlhL8ToFYXWAIj6jxvFl8b0qWMg1v0yFMJZTl/Pt0XlbdNKG4Kko BvWZddheu9uL5E6Bd5ZSvoSZZ6VTABYjgdT+GRqDIvx33QXmnArzUcnxeVqJFFaloPYE EILDYCBX9ddF9RZAxGSdF3dt/FKZrbUrgoN3irdnw0ZHGcZ8S4kBLcYi6CaLBzu2GqGM /e8w== X-Gm-Message-State: APt69E0I4NhoX0nb3K2LwhlrFV3LsdKuAme2Gw674T+2sXv5A8Tl815l Db7h+ZQnI2upcxCk8gr2XTMFFg== X-Received: by 2002:adf:c321:: with SMTP id n30-v6mr19899750wrf.235.1531302055747; Wed, 11 Jul 2018 02:40:55 -0700 (PDT) Received: from localhost.localdomain (33.153.69.91.rev.sfr.net. [91.69.153.33]) by smtp.gmail.com with ESMTPSA id t124-v6sm1641311wmt.29.2018.07.11.02.40.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 02:40:55 -0700 (PDT) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Sai Praneeth , Ard Biesheuvel , linux-kernel@vger.kernel.org Subject: [PATCH 5/8] efi: Remove the declaration of efi_late_init() as the function is unused Date: Wed, 11 Jul 2018 11:40:37 +0200 Message-Id: <20180711094040.12506-6-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180711094040.12506-1-ard.biesheuvel@linaro.org> References: <20180711094040.12506-1-ard.biesheuvel@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sai Praneeth Commit 7b0a911478c74 (efi/x86: Move the EFI BGRT init code to early init code), removed the implementation and all the references to efi_late_init() but the function is still declared at include/linux/efi.h. Hence, remove the unnecessary declaration. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Ard Biesheuvel --- include/linux/efi.h | 2 -- 1 file changed, 2 deletions(-) -- 2.17.1 diff --git a/include/linux/efi.h b/include/linux/efi.h index 8ba0cdd244b2..e190652f5ef9 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -988,14 +988,12 @@ extern void efi_memmap_walk (efi_freemem_callback_t callback, void *arg); extern void efi_gettimeofday (struct timespec64 *ts); extern void efi_enter_virtual_mode (void); /* switch EFI to virtual mode, if possible */ #ifdef CONFIG_X86 -extern void efi_late_init(void); extern void efi_free_boot_services(void); extern efi_status_t efi_query_variable_store(u32 attributes, unsigned long size, bool nonblocking); extern void efi_find_mirror(void); #else -static inline void efi_late_init(void) {} static inline void efi_free_boot_services(void) {} static inline efi_status_t efi_query_variable_store(u32 attributes,