Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933042AbbLVRjO (ORCPT ); Tue, 22 Dec 2015 12:39:14 -0500 Received: from mail-db3on0065.outbound.protection.outlook.com ([157.55.234.65]:6752 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754481AbbLVRiq (ORCPT ); Tue, 22 Dec 2015 12:38:46 -0500 Authentication-Results: spf=fail (sender IP is 12.216.194.146) smtp.mailfrom=ezchip.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=ezchip.com; From: Chris Metcalf To: CC: Chris Metcalf , Sudip Mukherjee Subject: [PATCH] tile: fix tilepro casts for readl, writel, etc Date: Tue, 22 Dec 2015 12:38:35 -0500 Message-ID: <1450805916-26638-2-git-send-email-cmetcalf@ezchip.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1450805916-26638-1-git-send-email-cmetcalf@ezchip.com> References: <1450805916-26638-1-git-send-email-cmetcalf@ezchip.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;DB3FFO11FD017;1:PcwCMO3JzHa3EF+odcSkTrC8W9Z+x7ug9u/Wc91BqK93OkMqE5BPWAm2EGpIahwWcp0EbsWqMV2hFRM7Xz0zYeayaYmuxSYk39OCY2SAhvR9BaocEjmb+IFrmyS+YQokYKVyLYZL7Vswy6fkbnv/CfGpgt9CwNr2fYL5pgGsCK3k58gg07JeojmeTGltGuU3JOhjPqIuNWO5YxaLWscnSeAtbXx+9clRBnOrKjj5hQl4AA6vZq68GtAWu7L5/7/te8cCvyOVadHaerX1Btayw8b8QGYXxDLBEQ2POhXlYiUBF9UWgD8pk2ZKXsya+cMmrhQk6Zsv2rpC3xAwobcrZGRBVosmoc9809l0cv2ef6cZMk7+MW+1fzN3oSgsJ4Qy+bS94/NAAOrHcnKGFJLFRA== X-Forefront-Antispam-Report: CIP:12.216.194.146;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(85426001)(19580405001)(92566002)(5008740100001)(19580395003)(87936001)(50226001)(48376002)(2950100001)(33646002)(229853001)(2351001)(6806005)(86362001)(110136002)(104016004)(5001970100001)(189998001)(50466002)(47776003)(36756003)(586003)(1096002)(106466001)(105606002)(1220700001)(5003940100001)(50986999)(11100500001)(42186005)(76176999);DIR:OUT;SFP:1101;SCL:1;SRVR:AMSPR02MB119;H:lab-41.internal.tilera.com;FPR:;SPF:Fail;PTR:wb-fw1.tilera.com;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;AMSPR02MB119;2:YdFaT88G0nVwBOaKF5aUUj5N3cu0uqfNfjdDvQQdBZUm3EQgSLleuMMOA+37hMfJ0JFaTuekXDhZiuWO+YT0dnqbZETfj0whi6/rrVOdBRDiysCJRd9Z0dDqzMGA3NJ6DoXO+xAWJY5lAUO9riVcJA==;3:HVE1r2Y0oc6j1dzNSignInT6hg18MwcGYYm63mEkDX4tSVxWZahUn1d4zwXryNG48rRUnHyTAzptwuhihIkBF6cRtGpKx17i4NSqfGpk/1Dwv6p+r8o59zPXilKqF99lkHX5AcPFnCvRkCdK7eL7oK1Zq2W1JQYKmyyUG8Zot9NUEnn96E+nlQAx2cf9zb3kJf2b4/lYIwCLrbUEvuYSthwpIfPKTTZby/boLvvnJpQ=;25:95hClfMriHStEoIKIqqsZuTSacFX5VjxoweUxCnBUcKo3JlzB2PlxjEHGd7y2SaCHA8pcmfQuixS+yf+Yv4VcKwcibTEyiW9m1HWMjq70cWPREqZmyN4/RwUdCOQ2gjtKstW5HHqsN+bi9TlrjRZOWx2qM4j9HvrtNX4I4RBJf/5EoG2L3Hgo+AQzf0femAnOXaqcnV0sawCETejkS5Zumv3YXn68aOIyM1m0YIY477xbEbULgl0RUQJ7r99maps;20:tK5RKNI2HbvaozBt2OgZzcl94+0zXA50NS3CJ7wmC1BdNqNDMtqs8KAV91Uf0flzMEzcU7B52MuvACaDDuGCTGetGeDDjDjmr/xo8/kTwM5AC6PJ3nwiSpCx1gdrbF6lbQ62Afe2m6LJzEa2haCZZb7MoU8OSZMpFu/+9x06A5I= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AMSPR02MB119; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(121898900299872); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001);SRVR:AMSPR02MB119;BCL:0;PCL:0;RULEID:;SRVR:AMSPR02MB119; X-Microsoft-Exchange-Diagnostics: 1;AMSPR02MB119;4:jnHjHPp1sEM33T0qbmPlBVus6KPhvqv+LyLrfsCVWJXFPLucL76v7u3AwRHDf25Aj38ENdk1HeZculqsbL6m1xUsP51kwW1Mzy43Nt66Ho/meHgcvImbgxatYaaVArt7O9w4cryiahXcE1CUHxE7zCi+pS0GsuZG+qE86KYkCgA/Ljx+CI95CSzhRFBcmeMAScucX9mafXedpyOaAzzpyIUu28f0aymrhe/1e+Z0HFlYkhY9gCzsm8XSy//cFE+X33+RVwmmqAG75ABjVqs0B6J8kvHA8wEeSaAj1gxUnQlCSIM/8oujkDjeHqLAJhC6pVnAC7s79CurKZOPh3wUyXE4CkToocrNbmlsVFqjtg6Ct0ZNSuPaGriOJNKE7OA3JpbdjDI2G/uTSajBz+PoME/9V7qWX2YcyCA9Uy05MGA= X-Forefront-PRVS: 0798146F16 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AMSPR02MB119;23:9nQt6vbl6eBgF050bWax7PdI+ehxg38lPBy0Bphhm6?= =?us-ascii?Q?lvHthVb1vksloGe/y+Aj6YA7hT7X5E6dktm+GmPaakZH4XGRO0btZF76Pei1?= =?us-ascii?Q?Czg3+gnTtDpOFn/qDGhJLoW7JIVo+2ShPnVSPr+ly03+GHOtco2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Exchange-Diagnostics: 1;AMSPR02MB119;5:LLVhPixkTfvvfgk7WzUazP9qHc9WY14IrsakKhatWagReEiZDci9duuSN87/21AZKme1ZHMSkVs/nvNJT1I1PbBCKpO74nfb9BNf4e3KZmgNS2QxCwplnbVFNp8rtAqD1QTElZMl9J8oSEVZ1ELC+A==;24:46IKlUzZSx9HetRUXFmTOGSicCSPhCuCYxM5BvMbL5zbG4NFS/WL1H2f+oQ9NMUrwtoRT3/6DoW/mjAj0VA6RQu4CCuXCFYShQ7eOP7DuiE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2015 17:38:43.3353 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3;Ip=[12.216.194.146];Helo=[lab-41.internal.tilera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AMSPR02MB119 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2049 Lines: 44 Missing parentheses could cause an argument of the form "integer + pointer" to get cast to "(long)integer + pointer" and remain a pointer type, causing compiler warnings. Signed-off-by: Chris Metcalf --- arch/tile/include/asm/io.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/tile/include/asm/io.h b/arch/tile/include/asm/io.h index 322b5fe94781..30f4a210d148 100644 --- a/arch/tile/include/asm/io.h +++ b/arch/tile/include/asm/io.h @@ -161,14 +161,14 @@ extern void _tile_writew(u16 val, unsigned long addr); extern void _tile_writel(u32 val, unsigned long addr); extern void _tile_writeq(u64 val, unsigned long addr); -#define __raw_readb(addr) _tile_readb((unsigned long)addr) -#define __raw_readw(addr) _tile_readw((unsigned long)addr) -#define __raw_readl(addr) _tile_readl((unsigned long)addr) -#define __raw_readq(addr) _tile_readq((unsigned long)addr) -#define __raw_writeb(val, addr) _tile_writeb(val, (unsigned long)addr) -#define __raw_writew(val, addr) _tile_writew(val, (unsigned long)addr) -#define __raw_writel(val, addr) _tile_writel(val, (unsigned long)addr) -#define __raw_writeq(val, addr) _tile_writeq(val, (unsigned long)addr) +#define __raw_readb(addr) _tile_readb((unsigned long)(addr)) +#define __raw_readw(addr) _tile_readw((unsigned long)(addr)) +#define __raw_readl(addr) _tile_readl((unsigned long)(addr)) +#define __raw_readq(addr) _tile_readq((unsigned long)(addr)) +#define __raw_writeb(val, addr) _tile_writeb(val, (unsigned long)(addr)) +#define __raw_writew(val, addr) _tile_writew(val, (unsigned long)(addr)) +#define __raw_writel(val, addr) _tile_writel(val, (unsigned long)(addr)) +#define __raw_writeq(val, addr) _tile_writeq(val, (unsigned long)(addr)) #else /* CONFIG_PCI */ -- 2.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/