[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1326779572.2564.47.camel@edumazet-laptop>
Date: Tue, 17 Jan 2012 06:52:52 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Daney <ddaney.cavm@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, ralf@...ux-mips.org,
linux-kernel@...r.kernel.org, linux-arch@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
David Rientjes <rientjes@...gle.com>, DM <dm.n9107@...il.com>,
David Howells <dhowells@...hat.com>,
David Daney <david.daney@...ium.com>
Subject: [PATCH] mips: remove custom BUILD_BUG()
Commit 1399ff86f2a2b (kernel.h: add BUILD_BUG() macro) broke mips build
In file included from /opt/src/linux/arch/mips/include/asm/io.h:16:0,
from /opt/src/linux/arch/mips/include/asm/page.h:54,
from include/linux/serial.h:16,
from include/linux/serial_core.h:23,
from include/linux/serial_8250.h:14,
from arch/mips/mti-malta/malta-platform.c:25:
include/linux/kernel.h:717:0: error: "BUILD_BUG" redefined [-Werror]
/opt/src/linux/arch/mips/include/asm/page.h:43:0: note: this is the
location of the previous definition
cc1: all warnings being treated as errors
Remove the conflicting mips macro.
Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
CC: Ralf Baechle <ralf@...ux-mips.org>
---
arch/mips/include/asm/page.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h
index d417909..da9bd7d 100644
--- a/arch/mips/include/asm/page.h
+++ b/arch/mips/include/asm/page.h
@@ -39,9 +39,6 @@
#define HPAGE_MASK (~(HPAGE_SIZE - 1))
#define HUGETLB_PAGE_ORDER (HPAGE_SHIFT - PAGE_SHIFT)
#else /* !CONFIG_HUGETLB_PAGE */
-# ifndef BUILD_BUG
-# define BUILD_BUG() do { extern void __build_bug(void); __build_bug(); } while (0)
-# endif
#define HPAGE_SHIFT ({BUILD_BUG(); 0; })
#define HPAGE_SIZE ({BUILD_BUG(); 0; })
#define HPAGE_MASK ({BUILD_BUG(); 0; })
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists