Message ID | 1447805093-8716-1-git-send-email-ddaney.cavm@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm64/include/asm/barrier.h b/arch/arm64/include/asm/barrier.h index 624f967..52eb9b9 100644 --- a/arch/arm64/include/asm/barrier.h +++ b/arch/arm64/include/asm/barrier.h @@ -64,7 +64,8 @@ do { \ #define smp_load_acquire(p) \ ({ \ - typeof(*p) ___p1; \ + typeof((typeof(*p))(*p + 0)) ___p1; \ + compiletime_assert(sizeof(___p1) == sizeof(*p), "remove const"); \ compiletime_assert_atomic_type(*p); \ switch (sizeof(*p)) { \ case 1: \