[Top] [All Lists]

[PATCH] mips: cmpxchg: add missing include

Subject: [PATCH] mips: cmpxchg: add missing include
From: Aaro Koskinen <>
Date: Sun, 1 Apr 2012 19:54:13 +0300
Fix the following build breakage in v3.4-rc1:

  CC      kernel/irq_work.o
In file included from include/linux/irq_work.h:4:0,
                 from kernel/irq_work.c:10:
include/linux/llist.h: In function 'llist_del_all':
include/linux/llist.h:178:2: error: implicit declaration of function 
'BUILD_BUG_ON' [-Werror=implicit-function-declaration]

Signed-off-by: Aaro Koskinen <>
 arch/mips/include/asm/cmpxchg.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/mips/include/asm/cmpxchg.h b/arch/mips/include/asm/cmpxchg.h
index 285a41f..eee10dc 100644
--- a/arch/mips/include/asm/cmpxchg.h
+++ b/arch/mips/include/asm/cmpxchg.h
@@ -8,6 +8,7 @@
 #ifndef __ASM_CMPXCHG_H
 #define __ASM_CMPXCHG_H
+#include <linux/bug.h>
 #include <linux/irqflags.h>
 #include <asm/war.h>

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] mips: cmpxchg: add missing include, Aaro Koskinen <=