Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3835499ybz; Mon, 4 May 2020 10:34:20 -0700 (PDT) X-Google-Smtp-Source: APiQypJLgwHt/1xM7We3iy6Nw/IRlGSWjGqq+BKuCLFle2IOIzd/Krr8rwkunfPjLE9ODKa9Zoob X-Received: by 2002:a50:baa6:: with SMTP id x35mr16144749ede.54.1588613660709; Mon, 04 May 2020 10:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588613660; cv=none; d=google.com; s=arc-20160816; b=VzXMbmu77XmaKB3Vsg02EeCyc9FT+NB72th/4G1PZ/9wJ9YPyl/uQBz73ENWYLa09O AGiS6Ji1sbzKC3MwQbvJKVsqlo7QtJyfxNNPgRAqD0yvPYViUHBJNwO/Acmh0uB0IuC3 A4TeYfQHiveiHqA7GZwV6Z977QSxtrVM751oFCB1oFQo4bnOIPA5FOALnY5c3d69/idz inDc+ZVxDyxK5qaiMdbnRFQOBJsFTOgCbLkr0S/zXSi4tAZMkZxNj++hiz9CiJKgnP4F VVd9QKuhu4n4H8Qll5vwBIybQ80MmBXKCvqE40a0moosXThl6AIBkPzCbAkcWZL5Us5z Ootw== 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=wpAchFK0XXJsltEJOn1VsdwOaYFdXnj1scPu0+J57Lo=; b=vW2cO+eCwZpEiO2R5zFVCcivcQr2CCI/4BXhluQf2XEVXkgDyvzH7aXIb8ChYjLrz7 3Agbt4Qcorb8+UdgTsBEsOrhA46H2OQIBuXI4YGCodbnZZ0NvvVTiMnkb1az0hjZs8Hl w7E+MUkuYNKijMnarkcDRvhT5Mbi7xuaoWRy8dj8OmMaafTcm57emKX0oFg5df+COUB8 xCNSAIxnXTgiZfDT6it4/31ex9DsD44Z9PCMd7wEdLSevmVDpn1/0JBdwY97NDgdI9ND iO5UTmEeXLYQo8ihYjV08lB+5p64mZKRBleVOe9LCj/HA/raPhOSyoi8guO92IBdUAXl /uEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VbcWCICn; 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 w20si6742528ejq.91.2020.05.04.10.33.56; Mon, 04 May 2020 10:34:20 -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=VbcWCICn; 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 S1730329AbgEDR3C (ORCPT + 99 others); Mon, 4 May 2020 13:29:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730297AbgEDR3A (ORCPT ); Mon, 4 May 2020 13:29:00 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E767EC061A0E for ; Mon, 4 May 2020 10:28:59 -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=wpAchFK0XXJsltEJOn1VsdwOaYFdXnj1scPu0+J57Lo=; b=VbcWCICn0hvvFdqlYReNYNLHGa cQO/1GeA2/l8wGw3JUCCOVH14qmZTxXELlp1RRUJ9HGwIgbEZOB3UKXJ/wfrqW9WZmi1Z7/fFN3iD Npz8RXGZJE1heGN4le9AvBj/xXGEdJuvh3BN6h5ed+xbuBXIFPyfWnvBrelcljcf3L+dmG1E+Bf14 CEmHh4Af0EXQYDuCXNmO1IPNjSngDmlepa5ldbkdY9uhEWhSaDdEkqKJuxug8nQEYjfyTHyZfA6Wu DujHynL4FaYAbnx1z0PosIERkoMwlHIyaT0rQcvvZLoQQvRmTmPeKknJJGdBU2gYxeG4uhN0ID+EN ocEpGuPw==; Received: from [2001:4bb8:18c:10bd:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVetn-0004IE-2c; Mon, 04 May 2020 17:28:59 +0000 From: Christoph Hellwig To: x86@kernel.org Cc: Mike Travis , linux-kernel@vger.kernel.org Subject: [PATCH 09/11] x86/uv: Remove _uv_hub_info_check Date: Mon, 4 May 2020 19:15:25 +0200 Message-Id: <20200504171527.2845224-10-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 Neither this functions not the helpers used to implement it are used anywhere in the kernel tree. Signed-off-by: Christoph Hellwig --- arch/x86/include/asm/uv/uv_hub.h | 14 -------------- arch/x86/kernel/apic/x2apic_uv_x.c | 6 ------ 2 files changed, 20 deletions(-) diff --git a/arch/x86/include/asm/uv/uv_hub.h b/arch/x86/include/asm/uv/uv_hub.h index 8a25d95cdf200..9eabd7e52fd15 100644 --- a/arch/x86/include/asm/uv/uv_hub.h +++ b/arch/x86/include/asm/uv/uv_hub.h @@ -219,20 +219,6 @@ static inline struct uv_hub_info_s *uv_cpu_hub_info(int cpu) return (struct uv_hub_info_s *)uv_cpu_info_per(cpu)->p_uv_hub_info; } -#define UV_HUB_INFO_VERSION 0x7150 -extern int uv_hub_info_version(void); -static inline int uv_hub_info_check(int version) -{ - if (uv_hub_info_version() == version) - return 0; - - pr_crit("UV: uv_hub_info version(%x) mismatch, expecting(%x)\n", - uv_hub_info_version(), version); - - BUG(); /* Catastrophic - cannot continue on unknown UV system */ -} -#define _uv_hub_info_check() uv_hub_info_check(UV_HUB_INFO_VERSION) - /* * HUB revision ranges for each UV HUB architecture. * This is a software convention - NOT the hardware revision numbers in diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c index 3830538095e6a..8cf0e24cf8835 100644 --- a/arch/x86/kernel/apic/x2apic_uv_x.c +++ b/arch/x86/kernel/apic/x2apic_uv_x.c @@ -415,12 +415,6 @@ static __initdata struct uv_gam_range_s *_gr_table; #define SOCK_EMPTY ((unsigned short)~0) -extern int uv_hub_info_version(void) -{ - return UV_HUB_INFO_VERSION; -} -EXPORT_SYMBOL(uv_hub_info_version); - /* Default UV memory block size is 2GB */ static unsigned long mem_block_size __initdata = (2UL << 30); -- 2.26.2