smp_mb__after_clear_bit() was renamed to smp_mb__after_atomic() in more recent kernel version, this patch adds compatibility for older kernel versions. In addition it also removes a useless include of asm/atomic.h which would include this same file. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/backport-include/asm/atomic.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backport/backport-include/asm/atomic.h b/backport/backport-include/asm/atomic.h index 1dc93a3..c2a46d2 100644 --- a/backport/backport-include/asm/atomic.h +++ b/backport/backport-include/asm/atomic.h @@ -10,11 +10,13 @@ * asm-generic/atomic64_t. * Detect and handle this here. */ -#include <asm/atomic.h> - #if (!defined(ATOMIC64_INIT) && !defined(CONFIG_X86) && !(defined(CONFIG_ARM) && !defined(CONFIG_GENERIC_ATOMIC64))) #include <asm-generic/atomic64.h> #endif #endif +#ifndef smp_mb__after_atomic +#define smp_mb__after_atomic smp_mb__after_clear_bit +#endif + #endif /* __BACKPORT_ASM_ATOMIC_H */ -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html