Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 07 Feb 2017 06:58:17 +0100 (CET) Received: from dev.gentoo.org ([IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]:34009 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23990514AbdBGF6Kk04br (ORCPT ); Tue, 7 Feb 2017 06:58:10 +0100 Received: from helcaraxe.arda (c-73-201-78-97.hsd1.md.comcast.net [73.201.78.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kumba) by smtp.gentoo.org (Postfix) with ESMTPSA id 5C4C8341698; Tue, 7 Feb 2017 05:58:04 +0000 (UTC) From: Joshua Kinard To: Ralf Baechle Cc: Linux/MIPS Subject: [PATCH 1/3] MIPS: Xtalk: Replace several IRIX-era typedefs Date: Tue, 7 Feb 2017 00:57:49 -0500 Message-Id: <20170207055751.8134-2-kumba@gentoo.org> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170207055751.8134-1-kumba@gentoo.org> References: <20170207055751.8134-1-kumba@gentoo.org> Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 56670 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: kumba@gentoo.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips From: Joshua Kinard The following IRIX-era typedefs are replaced with standard types: - xwidgetnum_t --> s8 - xwidget_part_num_t --> s32 - xwidget_rev_num_t --> s32 - xwidget_mfg_num_t --> s32 Remove the following typedefs: - xtalk_piomap_t (unsued anywhere) Other fixes made as detected by checkpatch. Signed-off-by: Joshua Kinard --- arch/mips/include/asm/sn/hub.h | 4 ++-- arch/mips/include/asm/xtalk/xtalk.h | 22 +++---------------- arch/mips/include/asm/xtalk/xwidget.h | 28 ++++++++++++------------- arch/mips/sgi-ip27/ip27-hubio.c | 2 +- arch/mips/sgi-ip27/ip27-xtalk.c | 4 ++-- 5 files changed, 22 insertions(+), 38 deletions(-) diff --git a/arch/mips/include/asm/sn/hub.h b/arch/mips/include/asm/sn/hub.h index 1992d9254a08..41166e4f3e8b 100644 --- a/arch/mips/include/asm/sn/hub.h +++ b/arch/mips/include/asm/sn/hub.h @@ -9,8 +9,8 @@ #include /* ip27-hubio.c */ -extern unsigned long hub_pio_map(cnodeid_t cnode, xwidgetnum_t widget, - unsigned long xtalk_addr, size_t size); +extern unsigned long hub_pio_map(cnodeid_t cnode, s8 widget, + unsigned long xtalk_addr, size_t size); extern void hub_pio_init(cnodeid_t cnode); #endif /* __ASM_SN_HUB_H */ diff --git a/arch/mips/include/asm/xtalk/xtalk.h b/arch/mips/include/asm/xtalk/xtalk.h index 26d2ed1fa917..9125bd85514d 100644 --- a/arch/mips/include/asm/xtalk/xtalk.h +++ b/arch/mips/include/asm/xtalk/xtalk.h @@ -13,30 +13,14 @@ #define _ASM_XTALK_XTALK_H #ifndef __ASSEMBLY__ -/* - * User-level device driver visible types - */ -typedef char xwidgetnum_t; /* xtalk widget number (0..15) */ +/* Xtalk "none" values. */ #define XWIDGET_NONE -1 - -typedef int xwidget_part_num_t; /* xtalk widget part number */ - #define XWIDGET_PART_NUM_NONE -1 - -typedef int xwidget_rev_num_t; /* xtalk widget revision number */ - #define XWIDGET_REV_NUM_NONE -1 - -typedef int xwidget_mfg_num_t; /* xtalk widget manufacturing ID */ - #define XWIDGET_MFG_NUM_NONE -1 -typedef struct xtalk_piomap_s *xtalk_piomap_t; - -/* It is often convenient to fold the XIO target port - * number into the XIO address. - */ +/* It is often convenient to fold the XIO target port */ #define XIO_NOWHERE (0xFFFFFFFFFFFFFFFFull) #define XIO_ADDR_BITS (0x0000FFFFFFFFFFFFull) #define XIO_PORT_BITS (0xF000000000000000ull) @@ -44,7 +28,7 @@ typedef struct xtalk_piomap_s *xtalk_piomap_t; #define XIO_PACKED(x) (((x)&XIO_PORT_BITS) != 0) #define XIO_ADDR(x) ((x)&XIO_ADDR_BITS) -#define XIO_PORT(x) ((xwidgetnum_t)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT)) +#define XIO_PORT(x) ((s8)(((x)&XIO_PORT_BITS) >> XIO_PORT_SHIFT)) #define XIO_PACK(p, o) ((((uint64_t)(p))<