Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3826002ybz; Mon, 4 May 2020 10:23:59 -0700 (PDT) X-Google-Smtp-Source: APiQypJu7q0+ycv/A48r7AjdLZv39Z6Y4FNjZl9zhzg7Ff10H0yQ/luAyT71Mf80R+qPlb5OCa6U X-Received: by 2002:a17:906:5918:: with SMTP id h24mr16206351ejq.210.1588613039206; Mon, 04 May 2020 10:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588613039; cv=none; d=google.com; s=arc-20160816; b=bioxsmQputwkZSFMt10x4R8RXEjFxnsQyOm08p5E+rWApmw8DqW+D6XJmGuQqS3jBx EVB2kzAias8AzZTeHLCRB4xqasGXPWCXcq/hT1RbOSr6ELrCp0z9Acx4OPJJWyOs9Myt FM+AEoPZrnJ9oIpKI+LSr5tL19wSvj7lSCbQbFQcsqlB/l3vJHr5MWUT6W0eOR+oO5rM QhWyjRdC5UMa7rHH8hVjygQM50c45hsWSSNtBbKTsxbuM8rtIyOtX258zzWa4dCWW9p7 GvylFfJnBN6TBXNL7eFX0qc51LCUaeLt0h66ZHNZCejlKEcH85wWQTydezA1Xfg7emeG JUuQ== 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=Tl/t8Argnrjl74YSR8dZbdLmuYRfU0RXLsTShjlC7yQ=; b=zhfmEhez3D4kFCfvHJXYG1ZtKjq35f9YnB4qMTI4g7lJ8GuM91mIk7EkOwNRb2duKq w4tJS5CpAQdaWVErlSXl98ASUOVf4mh3REEYDFhiXgZ4lLPJKeb+3p1//ZT0PKsi+kk4 zMqLxNrVSUuVbI5LrIJNV7hDfbQ9BBG/41Uh1BczJTMGB68+Zsan2Tec2485ED8roQEa bxGMQ8qhzDdszl3D1hd75T0wubWcLUMYlt3X6S+pg51o6/6SIcIamrn4tI+lLau7I+Bs zXBxnihuCnkV0Rsqvms212qppsSxzlU26v3WnvDMvamxiWKudVOyRdGLKIwEf1mX23Bh EX0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jgY22NFK; 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 lw1si7158943ejb.294.2020.05.04.10.23.35; Mon, 04 May 2020 10:23:59 -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=jgY22NFK; 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 S1730039AbgEDRWJ (ORCPT + 99 others); Mon, 4 May 2020 13:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729667AbgEDRWJ (ORCPT ); Mon, 4 May 2020 13:22:09 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 389FBC061A0E for ; Mon, 4 May 2020 10:22:09 -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=Tl/t8Argnrjl74YSR8dZbdLmuYRfU0RXLsTShjlC7yQ=; b=jgY22NFKJJKITvIfqmlCVwVekQ 2c1IYo4QSrFabRLHgMINiCXrtH4POPyi2jiFmOlnDBGzkohJXaovYhoWZiktM/h/hJiCrgOhwM03K xoJj9vI02LSGoJtYJsj+mCvuIpjk2gFMIXXEwKaJyeLuiDj6uwd0/agowPgTp6M2hlq/Iic+/j1pq lLvKedHdqmap/SnI4sgDOM7Fj58qHuWkaG6Hka2Ap0FBLhdErN0eRhErsY5Vlk4LemllOyNFiJqHD j7kej5XvIVYd0tl4IptOv6Gz5eP8ZGDG+iZK+JYcEffKjZKR1r8m/mCpCLUxa6fZKKJgQ9+K2qeHq dmivnyAA==; 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 1jVenA-0008Ln-1h; Mon, 04 May 2020 17:22:08 +0000 From: Christoph Hellwig To: x86@kernel.org Cc: Mike Travis , linux-kernel@vger.kernel.org Subject: [PATCH 02/11] x86/uv: Remove the uv_partition_coherence_id macro Date: Mon, 4 May 2020 19:15:18 +0200 Message-Id: <20200504171527.2845224-3-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 uv_partition_coherence_id is only used once. Just open code it in the only user. Signed-off-by: Christoph Hellwig --- arch/x86/include/asm/uv/bios.h | 1 - arch/x86/platform/uv/uv_sysfs.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/include/asm/uv/bios.h b/arch/x86/include/asm/uv/bios.h index fc85dafa5e496..2fcc3ac12e76c 100644 --- a/arch/x86/include/asm/uv/bios.h +++ b/arch/x86/include/asm/uv/bios.h @@ -140,7 +140,6 @@ extern long sn_partition_id; extern long sn_coherency_id; extern long sn_region_size; extern long system_serial_number; -#define uv_partition_coherence_id() (sn_coherency_id) extern struct kobject *sgi_uv_kobj; /* /sys/firmware/sgi_uv */ diff --git a/arch/x86/platform/uv/uv_sysfs.c b/arch/x86/platform/uv/uv_sysfs.c index 62214731fea5e..266773e2fb379 100644 --- a/arch/x86/platform/uv/uv_sysfs.c +++ b/arch/x86/platform/uv/uv_sysfs.c @@ -21,7 +21,7 @@ static ssize_t partition_id_show(struct kobject *kobj, static ssize_t coherence_id_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) { - return snprintf(buf, PAGE_SIZE, "%ld\n", uv_partition_coherence_id()); + return snprintf(buf, PAGE_SIZE, "%ld\n", sn_coherency_id); } static struct kobj_attribute partition_id_attr = -- 2.26.2