From: Sitsofe Wheeler Date: Sun, 9 Jul 2017 07:32:47 +0000 (+0100) Subject: arch: raise an error when compiling for an unknown ARM platform X-Git-Tag: fio-3.0~27^2~6 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=4dbc7d3b076caf854e69e40e5fee8eb9994e9df3;ds=sidebyside arch: raise an error when compiling for an unknown ARM platform The nop, read_barrier() and write_barrier() macros have to always be defined but due to the way os/arch-arm.h is written it is possible for them to be undefined when the ARM platform is not recognized. Change things so compiling for an unknown ARM platform raises an explicit compilation error at the point of the problem. Signed-off-by: Sitsofe Wheeler --- diff --git a/arch/arch-arm.h b/arch/arch-arm.h index 31671fdb..dd286d04 100644 --- a/arch/arch-arm.h +++ b/arch/arch-arm.h @@ -14,6 +14,8 @@ #define nop __asm__ __volatile__ ("nop") #define read_barrier() __sync_synchronize() #define write_barrier() __sync_synchronize() +#else +#error "unsupported ARM architecture" #endif #endif