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 9b19a19d9ae933401cc1baf2aa0b6ce8fa7eea66..813a1af3e865e589f5cf17a822796e79297a884f 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 {                                                            \