From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from asavdk4.altibox.net ([109.247.116.15]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghL4Y-0003et-My for barebox@lists.infradead.org; Wed, 09 Jan 2019 21:07:37 +0000 Date: Wed, 9 Jan 2019 22:07:25 +0100 From: Sam Ravnborg Message-ID: <20190109210725.GA9601@ravnborg.org> References: <20190109202754.29784-1-antonynpavlov@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190109202754.29784-1-antonynpavlov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [RFC] ARM: zynq: fix "'IO_SPACE_LIMIT' redefined" warning To: Antony Pavlov Cc: barebox@lists.infradead.org, Steffen Trumtrar Hi Anthony. On Wed, Jan 09, 2019 at 11:27:54PM +0300, Antony Pavlov wrote: > The patch fixes the following compiler's warning: > > In file included from include/common.h:33:0, > from arch/arm/mach-zynq/zynq.c:18: > arch/arm/include/asm/io.h:4:0: warning: "IO_SPACE_LIMIT" redefined > #define IO_SPACE_LIMIT 0 > > In file included from > arch/arm/mach-zynq/zynq.c:17:0: > include/asm-generic/io.h:92:0: note: this is the location of the previous definition > #define IO_SPACE_LIMIT 0xffff > > Cc: Steffen Trumtrar > Signed-off-by: Antony Pavlov > --- > arch/arm/mach-zynq/zynq.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/arm/mach-zynq/zynq.c b/arch/arm/mach-zynq/zynq.c > index a0a8d0d249..dd8f12c16a 100644 > --- a/arch/arm/mach-zynq/zynq.c > +++ b/arch/arm/mach-zynq/zynq.c > @@ -14,7 +14,6 @@ > */ > > #include > -#include > #include > #include > #include This patch rely on other headers to pull in . As zynq.c uses a lot of functions from then using an explicit include would be better. Just my opinion, you could argue this is bikeshedding. Sam _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox