Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3826042ybz; Mon, 4 May 2020 10:24:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJuUXZ+aCX1gQ3h/fV8crZnC39E5loXMn5ecEs8hz3PjqxevdgjEpmG9vnNJCW3+hfC7Wdr X-Received: by 2002:a50:81c5:: with SMTP id 63mr15205233ede.115.1588613041288; Mon, 04 May 2020 10:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588613041; cv=none; d=google.com; s=arc-20160816; b=yCGyLgSQ6OvLEXaMZmsk+C4yUXwxl6SurQnrSyYuY/Ry3cdmg36JcJ8isAM+Hvu0QG HTvO1dKgPbu2XCqIxVNDW4Y4azpzCh0YCEitrLbvJt9P8jkrDphsjRUmu8PtmvTnEGtE QrKX6dpvJLK+MPcHdyg82tYnpKcAW28GUv+UGZgEOY3vgq0RQF6YjSrg666nbLCQAjwv mgkCHSIiB8YET0nfPEFwkO5XxlboV3bknQn6Mk9h5QZBFdMJxx97UaLV+R6jI4l4CmSO H4GOXfRhn/qYmep8Q7d732OYYh/olPtrdP7mZMeJEWZXjDHDksf4Ufm/36Z8oOM09khh ihkg== 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 :dkim-signature; bh=MM253sF1U6dObDLa771vU13RUASD51CrGjHZh2c0+1E=; b=HTJEc2X+HLLbzwo7AeaK+3uvFJBhMZH2hrZ/yrThA9kz6OfvZHgF6p3HxXjO/tkFa2 xrVuDiFIHnh7m5YFsP5uJOasxUxx6AZBBJbEqs1EJejjaB/ChzH2xZai/jeR4W3nNzj9 XyheH4AdsrbFLQ4z1W4PuTwqhqsbRHWssB0vX1Vetl6M+JOAoeGiBsj6zD/JDkAlk/nA /Qb95/dcpxql+2NFJ/CuGGm/s83l+F9bOE8bqHF1Ckn+9tncMHkYN2tAhJDYeUXjcM6o d69ghUCENMhtwbBvhK6+OJk/fUTpDkUbDWjQDIoEVQRsYND+BZ58ux/xQAktvEyIOK63 JPmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DehRRxLf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si6598376edy.312.2020.05.04.10.23.37; Mon, 04 May 2020 10:24:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DehRRxLf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730259AbgEDRT4 (ORCPT + 99 others); Mon, 4 May 2020 13:19:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729667AbgEDRTz (ORCPT ); Mon, 4 May 2020 13:19:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7DA7C061A0E for ; Mon, 4 May 2020 10:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=MM253sF1U6dObDLa771vU13RUASD51CrGjHZh2c0+1E=; b=DehRRxLf8f91cTv3rjoJHqR1z9 Sc46SbNNkc8OBs2DdwUvjxf68P16HxlltRgLJ++nMzgBw3PuR54SWOWnRbCANkmn6ciintqEn5SGD 6Hm7QIdn5dUvRktx7dvuvbabBbTRVG8XArfITKLbjtSU//lNTR2OJU23fHxPidTWgQlcg1YFA+RwN 3vdn7lT5bSUsshQMDjtNqcFaevXgD0TYBmUQkwmpLA6RnZAF4xM53agPgvEpenWgE8Tnh7aXL7C6E oVDN81Y766LoV8oYUHk23iiyoWnocaC9aMUD9V7GDTtio4Gt5wMIAg6iovx9/3OBRSJDnUnJXv/2U H8yqajlA==; Received: from 089144205116.atnat0014.highway.webapn.at ([89.144.205.116] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVel0-0005EH-Se; Mon, 04 May 2020 17:19:55 +0000 From: Christoph Hellwig To: x86@kernel.org Cc: Mike Travis , linux-kernel@vger.kernel.org Subject: [PATCH 01/11] x86/uv: Mark uv_bios_call and uv_bios_call_irqsave static Date: Mon, 4 May 2020 19:15:17 +0200 Message-Id: <20200504171527.2845224-2-hch@lst.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200504171527.2845224-1-hch@lst.de> References: <20200504171527.2845224-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both functions are only used inside of bios_uv.c. Signed-off-by: Christoph Hellwig --- arch/x86/include/asm/uv/bios.h | 6 ------ arch/x86/platform/uv/bios_uv.c | 9 ++++----- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/arch/x86/include/asm/uv/bios.h b/arch/x86/include/asm/uv/bios.h index 389174eaec794..fc85dafa5e496 100644 --- a/arch/x86/include/asm/uv/bios.h +++ b/arch/x86/include/asm/uv/bios.h @@ -123,12 +123,6 @@ enum uv_memprotect { UV_MEMPROT_ALLOW_RW }; -/* - * bios calls have 6 parameters - */ -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_get_sn_info(int, int *, long *, long *, long *, long *); extern s64 uv_bios_freq_base(u64, u64 *); extern int uv_bios_mq_watchlist_alloc(unsigned long, unsigned int, diff --git a/arch/x86/platform/uv/bios_uv.c b/arch/x86/platform/uv/bios_uv.c index c60255da5a6cd..ca287554e2342 100644 --- a/arch/x86/platform/uv/bios_uv.c +++ b/arch/x86/platform/uv/bios_uv.c @@ -45,7 +45,8 @@ static s64 __uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, return ret; } -s64 uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, u64 a4, u64 a5) +static s64 uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, u64 a4, + u64 a5) { s64 ret; @@ -57,10 +58,9 @@ s64 uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, u64 a4, u64 a5) return ret; } -EXPORT_SYMBOL_GPL(uv_bios_call); -s64 uv_bios_call_irqsave(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, - u64 a4, u64 a5) +static s64 uv_bios_call_irqsave(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, + u64 a4, u64 a5) { unsigned long bios_flags; s64 ret; @@ -77,7 +77,6 @@ s64 uv_bios_call_irqsave(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, return ret; } - long sn_partition_id; EXPORT_SYMBOL_GPL(sn_partition_id); long sn_coherency_id; -- 2.26.2