Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp579904imu; Wed, 9 Jan 2019 02:54:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN5MzFRIeggef756dCnDwCO/EXZVdF2ea1wmM/OtnUedPgvT8IiFfNG5kWj2NPmR9RxaUEp/ X-Received: by 2002:a62:7f93:: with SMTP id a141mr5506862pfd.96.1547031243274; Wed, 09 Jan 2019 02:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547031243; cv=none; d=google.com; s=arc-20160816; b=w/wjd8jyyztHu/pGmStsgh3jS6HHYDyjO/1mMMYmHWv/Xpah6l/b8H3L028ubxVjp1 kX8CXYRuKF6QYmxTWXn397srPFBtPrOy1gS3dcidDHuTHXf5ee+F9poHOwId/p5u5lgt gAOSvSqFogR615FNDjVd5DeFY45Ds1FIcXTthefH6b4Ngr/Qgxz9aluKbWnBs6/Jlskv bmcZqVtl5SzFC9geRDd5CNfykxTXIeC6i2ek4UyKnTl8nC52bBrDsn50F1WHqzwiYiUf IyIl/BtnM0sN91StpVnlxG9mVI7qm1IiraAcsbvxO997ud+IODdF8s6qfYk3FCjK9Wwb gE/Q== 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=oBcIbyYL5ctDpZarf1xOcIgAYdcwvd0WozAJFEklvz8=; b=oC8AIQ844qBEMfxTM1xuCh3tqZBxtfYJDjzUj3m75lxNZYpw7C1Zy89cI7vDfKIjEA 53EegfWfRS6mpqPpMIDwXqLwpea1MCTncdkj27N+RnBrnimUnX7E+N7k7CfN3ib7Rzdp 8jP+ZYlGS/Xr/6hCZxRUiwRoRDjelsUtJTmF0qbe/nVggrAPdT0qMzvVi5YEZfwoXGUC uS9hEwalxDIir6NpTdrWtmfmpURo6LURPSjPtK4J2IH0j+LK1JjF/krlzO6el85bc6nP 55y1pxM7qpD3oGznGlM8PL44lwGf1DHp0M9zdknxJHMgT4eyWSEPQW36fOXYwsz4NO5R JUPQ== 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 m19si2944218pls.437.2019.01.09.02.53.46; Wed, 09 Jan 2019 02:54:03 -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 S1730381AbfAIKvr (ORCPT + 99 others); Wed, 9 Jan 2019 05:51:47 -0500 Received: from g2t1383g.austin.hpe.com ([15.233.16.89]:15719 "EHLO g2t1383g.austin.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729607AbfAIKvp (ORCPT ); Wed, 9 Jan 2019 05:51:45 -0500 Received: from g4t3428.houston.hpe.com (g4t3428.houston.hpe.com [15.241.140.76]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by g2t1383g.austin.hpe.com (Postfix) with ESMTPS id 3F2051177; Wed, 9 Jan 2019 10:46:03 +0000 (UTC) Received: from sarge.linuxathome.me (unknown [16.214.81.200]) by g4t3428.houston.hpe.com (Postfix) with ESMTP id A500C55; Wed, 9 Jan 2019 10:46:03 +0000 (UTC) From: Hedi Berriche To: Ard Biesheuvel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Cc: x86@kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Hedi Berriche , Russ Anderson , Mike Travis , Dimitri Sivanich , Steve Wahl Subject: [PATCH 2/3] x86/platform/UV: kill uv_bios_call_reentrant() as it has no callers Date: Wed, 9 Jan 2019 10:45:40 +0000 Message-Id: <20190109104541.25733-3-hedi.berriche@hpe.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190109104541.25733-1-hedi.berriche@hpe.com> References: <20190109104541.25733-1-hedi.berriche@hpe.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org uv_bios_call_reentrant() has no callers nor is it exported, kill it. Signed-off-by: Hedi Berriche Reviewed-by: Russ Anderson Reviewed-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Steve Wahl --- arch/x86/include/asm/uv/bios.h | 1 - arch/x86/platform/uv/bios_uv.c | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/arch/x86/include/asm/uv/bios.h b/arch/x86/include/asm/uv/bios.h index e652a7cc6186..4eee646544b2 100644 --- a/arch/x86/include/asm/uv/bios.h +++ b/arch/x86/include/asm/uv/bios.h @@ -140,7 +140,6 @@ enum uv_memprotect { */ extern s64 uv_bios_call(enum uv_bios_cmd, u64, u64, u64, u64, u64); extern s64 uv_bios_call_irqsave(enum uv_bios_cmd, u64, u64, u64, u64, u64); -extern s64 uv_bios_call_reentrant(enum uv_bios_cmd, u64, u64, u64, u64, u64); extern s64 uv_bios_get_sn_info(int, int *, long *, long *, long *, long *); extern s64 uv_bios_freq_base(u64, u64 *); diff --git a/arch/x86/platform/uv/bios_uv.c b/arch/x86/platform/uv/bios_uv.c index 4a6a5a26c582..cd05af157763 100644 --- a/arch/x86/platform/uv/bios_uv.c +++ b/arch/x86/platform/uv/bios_uv.c @@ -66,18 +66,6 @@ s64 uv_bios_call_irqsave(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, return ret; } -s64 uv_bios_call_reentrant(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, - u64 a4, u64 a5) -{ - s64 ret; - - preempt_disable(); - ret = uv_bios_call(which, a1, a2, a3, a4, a5); - preempt_enable(); - - return ret; -} - long sn_partition_id; EXPORT_SYMBOL_GPL(sn_partition_id); -- 2.20.0