Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1048756imj; Wed, 13 Feb 2019 23:56:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IaIHxGSCkc8k3XsZGLm6PqXXFNeMLcEBXw0DFY0o9WffAGqbNt+bFtOv9ViyJgs7Erowhh/ X-Received: by 2002:a17:902:724c:: with SMTP id c12mr2724262pll.144.1550131015982; Wed, 13 Feb 2019 23:56:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550131015; cv=none; d=google.com; s=arc-20160816; b=ftGeX0ubZ6jxlN7YD2FJz7c3AWpGTcECFn+RjOBECF+jCoNpEhZGnGbUJzTyKWmm56 1vHcOhK8pHwWYc8Y2F9ApC0rwaXEKku4ltjhTIlz/HIjkT9Hna89PNsR47GPAVoJ2+Om Wro68ucmPArT2xHRiKT3/kzQQR4ugW0p3+sOv5aR+hDF/5e+DGePLI3S3+OX4myyJvvU +xwTHUbgKMlTJ4BY28A06qyDGnOoW3uDAStO/KhadPw6BypDuzlRTbqz7iZKljhUha1K IFeDNpbt7jQZraGApQWfFkLEBqsjymF2OQXltzJlXNCAOAAD334q/xnLOewpfO4jFU6H 1ehQ== 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=f5iFnFp3jSKFUwru52ALaURJ+NkEnRZZk4ZKzXZ2imU=; b=SadgFCuj+xssgtrPRL1Fk2ShQgVMnhGbGMXgCY/eN76ZOZ3HXPhuJOdh/3hE8PVNnD /sFzWyoGuybIn7bEmeO/dE94TAC3xNR01UgafKylXwQjs/8xwTkLPFzTEJLmuQgIz/BF ta0KLpSONl+izlp90s9OCU6XxmaGANyjsoM6Ltrb4gLa56qOjVOwdKgRFjvA92Kx32wt 8OVHG4z8qb7IoM9E2+4ogk2YzpkzZ4Co2MJg6siKzTq1J7UNH7+ncG7giOGZs3XcHZE0 HiAk3KRIX25EHi4vvL1SITemo7KmL9NZN1XOYZKEL99SMsrkU8mVtRrVhxTT3Np1CcKM ytYw== 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 p64si1830263pfa.94.2019.02.13.23.56.40; Wed, 13 Feb 2019 23:56:55 -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 S2394448AbfBMTe7 (ORCPT + 99 others); Wed, 13 Feb 2019 14:34:59 -0500 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:51678 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394421AbfBMTey (ORCPT ); Wed, 13 Feb 2019 14:34:54 -0500 Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1DJMQIa006022; Wed, 13 Feb 2019 19:34:33 GMT Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0b-002e3701.pphosted.com with ESMTP id 2qmnqthxy0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Feb 2019 19:34:33 +0000 Received: from sarge.linuxathome.me (unknown [16.99.162.65]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id EFED1B4; Wed, 13 Feb 2019 19:34:29 +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 2/4] x86/platform/UV: kill uv_bios_call_reentrant() Date: Wed, 13 Feb 2019 19:34:11 +0000 Message-Id: <20190213193413.25560-3-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=232 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 uv_bios_call_reentrant() has no callers nor is it exported, kill it. 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 | 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 00d862cfbcbe..8c6ac271b5b3 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 4a61ed2a7bb8..91e3d5285836 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.1