From 5f739e0e2912b809635fac635a8c1140155577e6 Mon Sep 17 00:00:00 2001 From: Nobuhiro Iwamatsu Date: Sun, 28 Aug 2011 06:34:37 +0900 Subject: [PATCH] Fix compile on environment of SuperH Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: Jens Axboe --- arch/arch-sh.h | 5 +++++ arch/arch.h | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/arch/arch-sh.h b/arch/arch-sh.h index ef4ee032..f5f313d8 100644 --- a/arch/arch-sh.h +++ b/arch/arch-sh.h @@ -33,6 +33,11 @@ #define read_barrier() mb() #define write_barrier() mb() +#include +#include + +extern unsigned long arch_flags; + #define CPU_HAS_LLSC 0x0040 static inline int arch_init(char *envp[]) diff --git a/arch/arch.h b/arch/arch.h index 16f4c3ab..d598652b 100644 --- a/arch/arch.h +++ b/arch/arch.h @@ -23,6 +23,13 @@ enum { arch_generic, }; +enum { + ARCH_FLAG_1 = 1 << 0, + ARCH_FLAG_2 = 1 << 1, + ARCH_FLAG_3 = 1 << 2, + ARCH_FLAG_4 = 1 << 3, +}; + #if defined(__i386__) #include "arch-x86.h" #elif defined(__x86_64__) @@ -65,11 +72,4 @@ static inline int arch_init(char *envp[]) } #endif -enum { - ARCH_FLAG_1 = 1 << 0, - ARCH_FLAG_2 = 1 << 1, - ARCH_FLAG_3 = 1 << 2, - ARCH_FLAG_4 = 1 << 3, -}; - #endif -- 2.25.1