Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2103113ybl; Thu, 9 Jan 2020 07:00:04 -0800 (PST) X-Google-Smtp-Source: APXvYqw3YjFaMywU5/0z78FDBTZwQW66zfpTI7d0QlliHUw9tbNe8lttG+w6qrjL7Tddov/+XFI3 X-Received: by 2002:a05:6808:9b4:: with SMTP id e20mr3164270oig.37.1578582004770; Thu, 09 Jan 2020 07:00:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578582004; cv=none; d=google.com; s=arc-20160816; b=sbsh5E37uRc68l2iHKeVi8YgOKqLFmNHTneEE6XR/7OIO/g5CgLZPSjnjt1o15nvsD sRXDdsGWpAZT3j4hojoSQNF2a4NkQxxu2jh6G3HS0Tv/HYgVy4YJsUr8hj/rIJfR9fy3 3t5oc5iV7wTxii+uzKRys4UzapVTsHbnRoUe5+nw5emqpBAz4QKSTgUDfXcmuZM/CiYR SANWZ/ohIcNCpjQLpl71Xtf0KZAgT6BMXuMB2alJWHVjZLsrfmisb91eUDgJiQWeuMIc 2nVWnj3xL/gkmuX4Yyb/k5c/M61a1LAVuGIhjtSLAIYJL0HegD6fDATHmUVpYg4jGVEl 561g== 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=90hgAIzppOvpQwUY9Hln0JZSpGcZ4xnyY1Ka+Ga6MXo=; b=Dx94su+wnxD/B53Cw78wJ4RdAm46WbM4CzL/sTdluNI2XW20FtJaO6VY2zIrlTuzp2 /1qUG6bV3kjX3lGDYwHYJER0HGgm+V+obFGo+Da+LnUHi87xday8iJqyTKO/L4K55xKb TFhFDY/Fyu6sTXX3ObYiJtCD0rl7p5awdm5x45a+kJ54GlnKXP3q1vCUr9h2eUhhSDNm LV3YtRGOBACF5txJHKpfgcJt6Jgt1NQA2w9uC5aE8/nNQwakL4YxR4CmkZJWOvpNBtj8 NYlx/mlmav0lg3MKQuo+gtIeiDW0LHR+NryaFy00obd7V/6LtLzg0SnVXMhDmmbo+ipE GcIQ== 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 r5si3605636oic.19.2020.01.09.06.59.53; Thu, 09 Jan 2020 07:00:04 -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 S1731072AbgAIMep (ORCPT + 99 others); Thu, 9 Jan 2020 07:34:45 -0500 Received: from mx2.suse.de ([195.135.220.15]:38026 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730964AbgAIMeK (ORCPT ); Thu, 9 Jan 2020 07:34:10 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id F1884B220E; Thu, 9 Jan 2020 12:34:05 +0000 (UTC) From: Thomas Bogendoerfer To: Paul Burton Cc: Ralf Baechle , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/14] MIPS: SGI-IP27: Use union instead of typedef Date: Thu, 9 Jan 2020 13:33:45 +0100 Message-Id: <20200109123353.5656-9-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200109123353.5656-1-tbogendoerfer@suse.de> References: <20200109123353.5656-1-tbogendoerfer@suse.de> 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 The upcoming header files for SGI-IP35 shouldn't add new typedef. To be able to share ip27-hubio.c we need to access register layouts no longer via a typedef. Signed-off-by: Thomas Bogendoerfer --- arch/mips/sgi-ip27/ip27-hubio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/sgi-ip27/ip27-hubio.c b/arch/mips/sgi-ip27/ip27-hubio.c index 298cfdf8b44e..8352eb6403b4 100644 --- a/arch/mips/sgi-ip27/ip27-hubio.c +++ b/arch/mips/sgi-ip27/ip27-hubio.c @@ -84,7 +84,7 @@ unsigned long hub_pio_map(nasid_t nasid, xwidgetnum_t widget, */ static void hub_setup_prb(nasid_t nasid, int prbnum, int credits) { - iprb_t prb; + union iprb_u prb; int prb_offset; /* @@ -137,7 +137,7 @@ static void hub_setup_prb(nasid_t nasid, int prbnum, int credits) static void hub_set_piomode(nasid_t nasid) { u64 ii_iowa; - hubii_wcr_t ii_wcr; + union hubii_wcr_u ii_wcr; unsigned i; ii_iowa = REMOTE_HUB_L(nasid, IIO_OUTWIDGET_ACCESS); -- 2.24.1