Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3482132ima; Sun, 3 Feb 2019 23:23:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN4V8MDalWv7Fv3K/7Id75OeZBJIZm+ybu9puFJBCoAGDYApF6DXAPL0qmZ9x6p5AEZtB5Ez X-Received: by 2002:a17:902:4225:: with SMTP id g34mr51399406pld.152.1549265016601; Sun, 03 Feb 2019 23:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549265016; cv=none; d=google.com; s=arc-20160816; b=p4PDCxIE9de8B0GoCQW7rTFtOVFH4A8IKjJ2CTj0C3x98W+VvUZQQuA7IWMcBRIrTZ Vgu2+3nby2ct9AusFh+BLpGd3vM3vUYP4aa9JQg/QxkSB9rupJ1RJp6/h+G4+0JBSKbO aBjNW+exs4ubMUNcn6X/SkQKvnxiPyY4vIJtcuq8SatS6CsPPozEIyWZac2ZuhsfG1aa JU0b1ZmRDK2zvPRc+e2kjHnatt+rPVTVL16i0/xXTJcDO+O0hcSslvMluiTLoj05/p4I CmbGVRUb8MnrkpFArWgOanu9I0Db0xXatvx3HsT++/8F4Frhem0DBxE6+G1Y99/lBOp4 LXtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=YfWupKpI05HQtZPxOAhJiUCVvzK1hDrupvNdQdKnK/c=; b=nUkwLuXgKbscIUNCfUWDheikbZy4Mor+yvUgy5TjVrne9sKjsObSKS1/8HuO1m6ljz lczD1nK3YI7Y/eiDonjaHEMJRNhcLpbs6ymZS6WmfrZDVyhF/2GvIREEuasYNkzkiEFw +XHu9fE6L8M6fT0WOk54B87rVPj5iOepNgSYoGAHevKoGRKNfhChItMyBLHhF1PZyzbb TriWvPN8moiF9o8/EKfeGh/PtnpQJeg9eU/5YAZxbNcMzzgVkvVSxgS5BB5eas/ibBAC 2lFwb5Ww2PELhADkYzutPsMzsgrgD5o1NI7Hd50lIBODkGrbvb3t+3xy3lEcjpa5iDYO 3Neg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a193si421282pfa.214.2019.02.03.23.23.20; Sun, 03 Feb 2019 23:23:36 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727259AbfBDHWv (ORCPT + 99 others); Mon, 4 Feb 2019 02:22:51 -0500 Received: from terminus.zytor.com ([198.137.202.136]:59349 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725854AbfBDHWv (ORCPT ); Mon, 4 Feb 2019 02:22:51 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x147LxOX329548 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 3 Feb 2019 23:21:59 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x147LxAX329545; Sun, 3 Feb 2019 23:21:59 -0800 Date: Sun, 3 Feb 2019 23:21:59 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Sai Praneeth Prakhya Message-ID: Cc: jhugo@codeaurora.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, bjorn.andersson@linaro.org, hpa@zytor.com, agraf@suse.de, takahiro.akashi@linaro.org, ard.biesheuvel@linaro.org, mingo@kernel.org, bp@alien8.de, matt@codeblueprint.co.uk, pjones@redhat.com, leif.lindholm@linaro.org, sai.praneeth.prakhya@intel.com, xypron.glpk@gmx.de, torvalds@linux-foundation.org, lee.jones@linaro.org, peterz@infradead.org Reply-To: lee.jones@linaro.org, xypron.glpk@gmx.de, torvalds@linux-foundation.org, peterz@infradead.org, matt@codeblueprint.co.uk, bp@alien8.de, leif.lindholm@linaro.org, pjones@redhat.com, sai.praneeth.prakhya@intel.com, takahiro.akashi@linaro.org, agraf@suse.de, bjorn.andersson@linaro.org, hpa@zytor.com, mingo@kernel.org, ard.biesheuvel@linaro.org, jhugo@codeaurora.org, linux-kernel@vger.kernel.org, tglx@linutronix.de In-Reply-To: <20190202094119.13230-2-ard.biesheuvel@linaro.org> References: <20190202094119.13230-2-ard.biesheuvel@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:efi/core] x86/efi: Mark can_free_region() as an __init function Git-Commit-ID: 8fe55212aacfce9b7718de7964b3a3096ec30919 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, FREEMAIL_FORGED_REPLYTO,T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8fe55212aacfce9b7718de7964b3a3096ec30919 Gitweb: https://git.kernel.org/tip/8fe55212aacfce9b7718de7964b3a3096ec30919 Author: Sai Praneeth Prakhya AuthorDate: Sat, 2 Feb 2019 10:41:10 +0100 Committer: Ingo Molnar CommitDate: Mon, 4 Feb 2019 08:19:22 +0100 x86/efi: Mark can_free_region() as an __init function can_free_region() is called only once during boot, by efi_reserve_boot_services(). Hence, mark it as an __init function. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Ard Biesheuvel Cc: AKASHI Takahiro Cc: Alexander Graf Cc: Bjorn Andersson Cc: Borislav Petkov Cc: Heinrich Schuchardt Cc: Jeffrey Hugo Cc: Lee Jones Cc: Leif Lindholm Cc: Linus Torvalds Cc: Matt Fleming Cc: Peter Jones Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/20190202094119.13230-2-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar --- arch/x86/platform/efi/quirks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/efi/quirks.c b/arch/x86/platform/efi/quirks.c index 17456a1d3f04..9ce85e605052 100644 --- a/arch/x86/platform/efi/quirks.c +++ b/arch/x86/platform/efi/quirks.c @@ -304,7 +304,7 @@ void __init efi_arch_mem_reserve(phys_addr_t addr, u64 size) * - Not within any part of the kernel * - Not the BIOS reserved area (E820_TYPE_RESERVED, E820_TYPE_NVS, etc) */ -static bool can_free_region(u64 start, u64 size) +static __init bool can_free_region(u64 start, u64 size) { if (start + size > __pa_symbol(_text) && start <= __pa_symbol(_end)) return false;