Blackfin/ipipe: fix forward ref to barrier()
authorPhilippe Gerum <rpm@xenomai.org>
Tue, 27 Oct 2009 21:05:32 +0000 (22:05 +0100)
committerMike Frysinger <vapier@gentoo.org>
Tue, 15 Dec 2009 05:15:15 +0000 (00:15 -0500)
Signed-off-by: Philippe Gerum <rpm@xenomai.org>
Signed-off-by: Li Yi <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/irqflags.h

index 9b19a19..813a1af 100644 (file)
@@ -33,6 +33,7 @@ static inline unsigned long bfin_cli(void)
 
 #ifdef CONFIG_IPIPE
 
+#include <linux/compiler.h>
 #include <linux/ipipe_base.h>
 #include <linux/ipipe_trace.h>
 
@@ -49,12 +50,12 @@ static inline unsigned long bfin_cli(void)
                barrier();                              \
        } while (0)
 
-static inline void raw_local_irq_enable(void)
-{
-       barrier();
-       ipipe_check_context(ipipe_root_domain);
-       __ipipe_unstall_root();
-}
+#define raw_local_irq_enable()                         \
+       do {                                            \
+               barrier();                              \
+               ipipe_check_context(ipipe_root_domain); \
+               __ipipe_unstall_root();                 \
+       } while (0)
 
 #define raw_local_save_flags_ptr(x)                                    \
        do {                                                            \