Skip to contentSkip to conversation

ARM: zynq: fix "'IO_SPACE_LIMIT' redefined" warning

PATCH Applied Antony Pavlov 2 participants 2 messages Jan 22, 2019 – Jan 24, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: zynq: fix "'IO_SPACE_LIMIT' redefined" warning

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 <[email protected]>
---
 arch/arm/mach-zynq/zynq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-zynq/zynq.c +1 -1
index a0a8d0d249..f6112fd249 100644
@@ -14,7 +14,7 @@
  */
 
 #include <asm/system.h>
-#include <asm-generic/io.h>
+#include <io.h>
 #include <common.h>
 #include <init.h>
 #include <restart.h>
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 12 lines · Antony Pavlov

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

Quoted 5 lines
Cc Steffen Trumtrar <[email protected]>
---
 arch/arm/mach-zynq/zynq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox