[Top] [All Lists]

[PATCH] MIPS: Fix multiple definitions of UNCAC_BASE.

Subject: [PATCH] MIPS: Fix multiple definitions of UNCAC_BASE.
From: "Steven J. Hill" <>
Date: Wed, 3 Jul 2013 13:28:22 -0500
Cc: "Steven J. Hill" <>,
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
From: "Steven J. Hill" <>

Fix build error below:

arch/mips/include/asm/mach-generic/spaces.h:29:0: warning:
"UNCAC_BASE" redefined [enabled by default]
In file included from arch/mips/include/asm/addrspace.h:13:0,
                 from arch/mips/include/asm/barrier.h:11,
                 from arch/mips/include/asm/bitops.h:18,
                 from include/linux/bitops.h:22,
                 from include/linux/kernel.h:10,
                 from include/asm-generic/bug.h:13,
                 from arch/mips/include/asm/bug.h:41,
                 from include/linux/bug.h:4,
                 from include/linux/page-flags.h:9,
                 from kernel/bounds.c:9:
arch/mips/include/asm/mach-ar7/spaces.h:20:0: note: this is the
location of the previous definition

Signed-off-by: Steven J. Hill <>

 arch/mips/include/asm/mach-generic/spaces.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/mips/include/asm/mach-generic/spaces.h 
index 5b2f2e6..9488fa5 100644
--- a/arch/mips/include/asm/mach-generic/spaces.h
+++ b/arch/mips/include/asm/mach-generic/spaces.h
@@ -25,8 +25,12 @@
 #define CAC_BASE               _AC(0x80000000, UL)
+#ifndef IO_BASE
 #define IO_BASE                        _AC(0xa0000000, UL)
+#ifndef UNCAC_BASE
 #define UNCAC_BASE             _AC(0xa0000000, UL)
 #ifndef MAP_BASE

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: Fix multiple definitions of UNCAC_BASE., Steven J. Hill <=