Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp888105imj; Fri, 15 Feb 2019 08:25:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IbHAonPnxJRo9mcaFtGRHcVTb0uDw4k0adLWT52A6te3vFtCs4Mhwf4oB/JJa//oLhdRXac X-Received: by 2002:a63:fa10:: with SMTP id y16mr5952470pgh.88.1550247923187; Fri, 15 Feb 2019 08:25:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247923; cv=none; d=google.com; s=arc-20160816; b=dE+YBRwiNO5qRWiDETg0QjMSdfsfmR95vM5prHQSB8mOnwCIODvKHOVCI5TEPEtSvz y1+/R+8m4dsP9CZl31KEIwaAiGNM5MRmFcimGaZbAtz/3gIPOLUVWnZOJtr92WChr1dk uUelCWJIrBSNEOCsSt6GWqnccP5qF/kRkhuMkXUx+fLO1Y+2SF+8tnQcgnpsdOun/qiA N1OyVL6xXYqVOl49TKE4HrHZPwgG4Zu066XGghik6iJtTXnu38e3k1RW41rfofaSO67D +unuJiqSghgRdOsNYALiO1LsjTMwm0JIoxnV3ducgLFIJpCzp6oqWXz8lssbIepdfMbB /ecA== 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=ju3yCW+ABfZ5OWDeFOT8Zz5N8H3fIzu2k7ag0XD8MnE=; b=G1ObKKSruAWInQFhJM7jm9Thv9LQyNDbaqzg3xUwkgqXXL3PKI375+PQQ0o8hxd+WG UyILa5fjxrrFO7dBe/rYguFBIpXWQMsdXKSXlUonrvi/xpBrvARb7WsA08/MSUfuqwzb T5Es4mk0A2s2jyxoBZm/vVgmN87yLAFZ2CFOXTtg4v1Sg2bxRW4yiypVgK9Da1IYFTf4 yUT+xHFDq9KcOK3/GDc3P84x4QJexqa9XESc/YMizRx5gbKqC/wB8kaV/Cg/v0dEtf5p e2UXx/Eum7j+Xoy8a+SxKy82U4h6ahTmtwPxs3F+XU+gY5iqwiQyxWp4yOhgoDslH6hN DPKg== 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 r135si3971387pfc.123.2019.02.15.08.25.06; Fri, 15 Feb 2019 08:25:23 -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 S1731254AbfBOPEl (ORCPT + 99 others); Fri, 15 Feb 2019 10:04:41 -0500 Received: from terminus.zytor.com ([198.137.202.136]:39267 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfBOPEl (ORCPT ); Fri, 15 Feb 2019 10:04:41 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x1FF4Bhk1224872 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 15 Feb 2019 07:04:11 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x1FF4B1b1224620; Fri, 15 Feb 2019 07:04:11 -0800 Date: Fri, 15 Feb 2019 07:04:11 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Hedi Berriche Message-ID: Cc: linux-efi@vger.kernel.org, rja@hpe.com, x86@kernel.org, bp@suse.de, ard.biesheuvel@linaro.org, sivanich@hpe.com, mingo@kernel.org, mingo@redhat.com, dvhart@infradead.org, hpa@zytor.com, tglx@linutronix.de, bhsharma@redhat.com, mike.travis@hpe.com, steve.wahl@hpe.com, linux-kernel@vger.kernel.org, andy@infradead.org, hedi.berriche@hpe.com Reply-To: andy@infradead.org, hedi.berriche@hpe.com, bhsharma@redhat.com, tglx@linutronix.de, mike.travis@hpe.com, steve.wahl@hpe.com, linux-kernel@vger.kernel.org, sivanich@hpe.com, mingo@kernel.org, dvhart@infradead.org, mingo@redhat.com, hpa@zytor.com, linux-efi@vger.kernel.org, rja@hpe.com, x86@kernel.org, bp@suse.de, ard.biesheuvel@linaro.org In-Reply-To: <20190213193413.25560-2-hedi.berriche@hpe.com> References: <20190213193413.25560-2-hedi.berriche@hpe.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/uv] x86/platform/UV: Remove unnecessary #ifdef CONFIG_EFI Git-Commit-ID: 30ad3e031d2feae075cd5fd2c443baa2d86c0195 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=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham 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: 30ad3e031d2feae075cd5fd2c443baa2d86c0195 Gitweb: https://git.kernel.org/tip/30ad3e031d2feae075cd5fd2c443baa2d86c0195 Author: Hedi Berriche AuthorDate: Wed, 13 Feb 2019 19:34:10 +0000 Committer: Borislav Petkov CommitDate: Fri, 15 Feb 2019 15:05:15 +0100 x86/platform/UV: Remove unnecessary #ifdef CONFIG_EFI CONFIG_EFI is implied by CONFIG_X86_UV and x86/platform/uv/bios_uv.c requires the latter, get rid of the redundant #ifdef CONFIG_EFI directives. Cleanup, no functional changes. Signed-off-by: Hedi Berriche Signed-off-by: Borislav Petkov Reviewed-by: Ard Biesheuvel Reviewed-by: Russ Anderson Reviewed-by: Dimitri Sivanich Reviewed-by: Mike Travis Cc: Andy Shevchenko Cc: Bhupesh Sharma Cc: Darren Hart Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: linux-efi Cc: platform-driver-x86@vger.kernel.org Cc: Steve Wahl Cc: Thomas Gleixner Cc: x86-ml Link: https://lkml.kernel.org/r/20190213193413.25560-2-hedi.berriche@hpe.com --- arch/x86/include/asm/uv/bios.h | 4 ---- arch/x86/platform/uv/bios_uv.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/arch/x86/include/asm/uv/bios.h b/arch/x86/include/asm/uv/bios.h index e652a7cc6186..00d862cfbcbe 100644 --- a/arch/x86/include/asm/uv/bios.h +++ b/arch/x86/include/asm/uv/bios.h @@ -151,11 +151,7 @@ extern s64 uv_bios_change_memprotect(u64, u64, enum uv_memprotect); extern s64 uv_bios_reserved_page_pa(u64, u64 *, u64 *, u64 *); extern int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus); -#ifdef CONFIG_EFI extern void uv_bios_init(void); -#else -void uv_bios_init(void) { } -#endif extern unsigned long sn_rtc_cycles_per_second; extern int uv_type; diff --git a/arch/x86/platform/uv/bios_uv.c b/arch/x86/platform/uv/bios_uv.c index 4a6a5a26c582..4a61ed2a7bb8 100644 --- a/arch/x86/platform/uv/bios_uv.c +++ b/arch/x86/platform/uv/bios_uv.c @@ -188,7 +188,6 @@ int uv_bios_set_legacy_vga_target(bool decode, int domain, int bus) } EXPORT_SYMBOL_GPL(uv_bios_set_legacy_vga_target); -#ifdef CONFIG_EFI void uv_bios_init(void) { uv_systab = NULL; @@ -218,4 +217,3 @@ void uv_bios_init(void) } pr_info("UV: UVsystab: Revision:%x\n", uv_systab->revision); } -#endif