Commit a37b9589 authored by Christopher Covington's avatar Christopher Covington Committed by Pavel Emelyanov

Complain about missing CONFIG_ARMV*

Without this a user may encounter the following error.

arch/arm/include/asm/atomic.h:38:2: error: implicit declaration of function ‘smp_mb’

With the #error pragma a user is a least pointed to the specific
section in the file that's causing the problem

arch/arm/include/asm/atomic.h:21:2: error: #error ARM architecture version (CONFIG_ARMV*) not set or unsupported.
Acked-by: 's avatarAlexander Kartashov <alekskartashov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d6005ed1
...@@ -16,6 +16,10 @@ typedef struct { ...@@ -16,6 +16,10 @@ typedef struct {
#define smp_mb() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory") #define smp_mb() __asm__ __volatile__ ("mcr p15, 0, %0, c7, c10, 5" : : "r" (0) : "memory")
#else
#error ARM architecture version (CONFIG_ARMV*) not set or unsupported.
#endif #endif
static inline int atomic_read(const atomic_t *v) static inline int atomic_read(const atomic_t *v)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment