Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1049901imj; Wed, 13 Feb 2019 23:58:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IbiEdLe3u6paGR3uUlRSh/RsySl4UvTU8sxZjXC0zQezdK4GcElMxFmxmgKHlFlr1LDSPy8 X-Received: by 2002:a62:6f49:: with SMTP id k70mr2671017pfc.7.1550131118584; Wed, 13 Feb 2019 23:58:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550131118; cv=none; d=google.com; s=arc-20160816; b=jbfhrV+NaxmIKUCOvvjnxrqr3zKbQv0rHNPOsB9Iu5MHGFKOPuSDTVLisEOGRDb6LR 26FRg/1h0gvcpCPiksbvsI1c1pWZV6mnoplZ3fmkkpq1JLG9b5JG2ZZiccv+cp8JG44f kUVC/ylVfOyilx4POxdxyuI5S7pMVvmcKFec4Zv4uERi9cBl7jsCqliZ5aYg8hSwGo4z H0T0SQ74hnMqiEAFA+tRI6fOiKCEjv9s6qMk7p95u+J1G37qWVMeRoPy6EuyHm06Amf3 c7ACX8EA6ESlmJBY6DOChVeE0pPKQ6yMlOrnUSojGuYX27ihtEJhrE8hJkXAiMbg4BTj h38Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gV61VOQ+T0X+8B/2Yh3od3uTXakyJKFk4kaYVvlDYgE=; b=uhv/M5yuJhiALo+KILtgySmka/a1+xs1ShRNKV9yVo2TwGSqevXGwSdjQzG2EHMogh vODuAJV1BNLNwY3CP4fKzBx0npndMl8sr3H5OdEHaRft0QXIoXRq5Ry9e2tsjbdHhK3X j+9yw5xC9mK08xyXko6bh9ExLN61qecGiPGoSMLchUz8pqYRpJdM8V3SKm245gc7c/WT bGK4XjeqfsxnstDs1eLSqzszK6b7v6zzt81y0FOjjSqFnE+5In53UhsUd51oc7hZT//z IBQcFg+hcJeHD/tMARYawAlQ6D8nubDmEw8CIQ35umw5N+zx8TCQJMMkdJF25hVMXMxL oiAw== 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 bc7si1804371plb.120.2019.02.13.23.58.22; Wed, 13 Feb 2019 23:58:38 -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 S2394474AbfBMTfL (ORCPT + 99 others); Wed, 13 Feb 2019 14:35:11 -0500 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:37180 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394427AbfBMTe4 (ORCPT ); Wed, 13 Feb 2019 14:34:56 -0500 Received: from pps.filterd (m0150244.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1DJLmJq001350; Wed, 13 Feb 2019 19:34:30 GMT Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0b-002e3701.pphosted.com with ESMTP id 2qmrew8g24-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Feb 2019 19:34:30 +0000 Received: from sarge.linuxathome.me (unknown [16.99.162.65]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id 3F7C2AC; Wed, 13 Feb 2019 19:34:27 +0000 (UTC) From: Hedi Berriche To: linux-kernel@vger.kernel.org, Ard Biesheuvel , Thomas Gleixner , Bhupesh Sharma Cc: Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , linux-efi@vger.kernel.org, x86@kernel.org, Russ Anderson , Mike Travis , Dimitri Sivanich , Steve Wahl , stable@vger.kernel.org Subject: [Patch v3 1/4] x86/platform/UV: remove unnecessary #ifdef CONFIG_EFI Date: Wed, 13 Feb 2019 19:34:10 +0000 Message-Id: <20190213193413.25560-2-hedi.berriche@hpe.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213193413.25560-1-hedi.berriche@hpe.com> References: <20190213193413.25560-1-hedi.berriche@hpe.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-13_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=527 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902130132 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cc: Russ Anderson Cc: Mike Travis Cc: Dimitri Sivanich Cc: Steve Wahl Cc: stable@vger.kernel.org # v4.9+ Signed-off-by: Hedi Berriche --- 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 -- 2.20.1