From patchwork Fri Feb 5 16:20:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102842 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp60951lbl; Fri, 5 Feb 2016 08:21:49 -0800 (PST) X-Received: by 10.67.30.201 with SMTP id kg9mr21166417pad.132.1454689308190; Fri, 05 Feb 2016 08:21:48 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xg10si24727607pab.141.2016.02.05.08.21.47; Fri, 05 Feb 2016 08:21:48 -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 S1756018AbcBEQVp (ORCPT + 30 others); Fri, 5 Feb 2016 11:21:45 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:64051 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755994AbcBEQVm (ORCPT ); Fri, 5 Feb 2016 11:21:42 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue004) with ESMTPA (Nemesis) id 0MSVlI-1aZOc329sy-00RXeu; Fri, 05 Feb 2016 17:21:15 +0100 From: Arnd Bergmann To: Imre Kaloz , Krzysztof Halasa Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] ARM: ixp4xx: avoid warning about ioport_map() macro argument processing Date: Fri, 5 Feb 2016 17:20:49 +0100 Message-Id: <1454689262-613421-2-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454689262-613421-1-git-send-email-arnd@arndb.de> References: <1454689262-613421-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:iru2NYxvqqWuEtDfzY3aokON8eP857u3RUYmcWW8aaEyuLA8Ask pE14t8xCNtvE0DHfRHghW6s63Jg/x5n/EANHfIz/8sywQDOP6e6w87gpmu3zOVEYG1GAGrX yQJN+pCVfATUFYOcVBlV8hodyqtWF3bStk5pgbwtjlrxH/0ChUunH03KFB5nPRVIzc8S4yb S/bEEnuniLKGuPO6UbmPw== X-UI-Out-Filterresults: notjunk:1; V01:K0:cZKaoc3+fY8=:418+vz9iIAzaStbMVbPINf 846WMRPmuCFKqMlbx40MVb8pXegnbcdnm4Idwl/ECQgf4StN2p8zwflGEVzdvP+b4Z94wOoDn tdzOJi7dbVMtQtu1VCYFcQFjACQT0p5qkfzONW8nJlffFJsANEaVjwxNLMywHEv6X5OW3pSli +SQRB30KCxec/rX7lUt2sainahRNbzfNArGvT1Yefb0oi075IfqyQ7bzqsHYKpP/bpaSPJa3J hsKOqwWxD4EitDC5VnCPnGT4vUoEWlu8gIpxG8vJRR8HdJvlwM6M0hrj4nuykN94uJyyqRCRp x8uQKmc5jaKbm4fOOy9hrM46kwfouJ5lW6RKlrGg+mUshHLTF5oAB3+qaxGdWokyFjBZSXSRp ugXizzknk6r4CxpyfgWXeiOOsV8DGcIDmtciVXTZnVru8l6EnapBmSjViXLw0uHg1c7DLgKjF N5wJuJgj3OSQ1HTc5VSKiA8jJueA2EAnNJu2HV/k770cvfuAjbQEcTM7VlZejgxWuDE/TpYDF I3KDIYVhz8GFiOaawyGhfyC1kfHh97yNCX2N73F00BNNsPHiksQPCtNeiLTYSVfHjAZ+rf2J2 gVDRhPKktH6/RThqUdVU8ziva5124KviJr1kLVjfHSQegJSuYAQZfgfRPXHCp62rUt7gnpXt0 2Y30r1A3vM9Df+RNk4TWATZoU48foE9eTyzJEgtnZq30c3Ja7+JecmONs6m5vumXCcvk= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get a harmless compiler warning when building the cs89x0 driver for ixp4xx: drivers/net/ethernet/cirrus/cs89x0.c: In function 'cs89x0_ioport_probe': drivers/net/ethernet/cirrus/cs89x0.c:1602:28: warning: suggest parentheses around '+' in operand of '&' [-Wparentheses] io_mem = ioport_map(ioport & ~3, NETCARD_IO_EXTENT); Simply adding parentheses in the macro avoids the warning Signed-off-by: Arnd Bergmann --- arch/arm/mach-ixp4xx/include/mach/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 diff --git a/arch/arm/mach-ixp4xx/include/mach/io.h b/arch/arm/mach-ixp4xx/include/mach/io.h index d04d3ec97ac0..d8c2a4dc54d7 100644 --- a/arch/arm/mach-ixp4xx/include/mach/io.h +++ b/arch/arm/mach-ixp4xx/include/mach/io.h @@ -534,7 +534,7 @@ static inline void iowrite32_rep(void __iomem *addr, const void *vaddr, #endif } -#define ioport_map(port, nr) ((void __iomem*)(port + PIO_OFFSET)) +#define ioport_map(port, nr) ((void __iomem*)((port) + PIO_OFFSET)) #define ioport_unmap(addr) #endif /* CONFIG_PCI */