From: Nobuhiro Iwamatsu Date: Sat, 27 Aug 2011 21:34:37 +0000 (+0900) Subject: Fix compile on environment of SuperH X-Git-Tag: fio-1.58~20 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=5f739e0e2912b809635fac635a8c1140155577e6 Fix compile on environment of SuperH Signed-off-by: Nobuhiro Iwamatsu Signed-off-by: Jens Axboe --- 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