atomic_dec_not_zero is defined through <linux/atomic.h> for all architectures and batman-adv doesn't need an extra define which may collide with the global one.
Signed-off-by: Sven Eckelmann sven@narfation.org Cc: Marek Lindner lindner_marek@yahoo.de Cc: Simon Wunderlich siwu@hrz.tu-chemnitz.de Cc: b.a.t.m.a.n@lists.open-mesh.org --- net/batman-adv/main.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index a6df61a..d986f34 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -201,8 +201,6 @@ static inline int compare_eth(const void *data1, const void *data2) }
-#define atomic_dec_not_zero(v) atomic_add_unless((v), -1, 0) - /* Returns the smallest signed integer in two's complement with the sizeof x */ #define smallest_signed_int(x) (1u << (7u + 8u * (sizeof(x) - 1u)))