Commit 411faf5810cdd0e4f5071a3805d8adb49d120a07
1 parent
ba3e0e1acc
Exists in
master
and in
7 other branches
[RXRPC]: Remove bogus atomic_* overrides.
These are done with CPP defines which several platforms use for their atomic.h implementation, which floods the build with warnings and breaks the build. Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 0 additions and 24 deletions Side-by-side Diff
net/rxrpc/ar-internal.h
... | ... | @@ -786,30 +786,6 @@ |
786 | 786 | rxrpc_free_skb(skb); |
787 | 787 | } |
788 | 788 | |
789 | -static inline void __rxrpc__atomic_inc(atomic_t *v) | |
790 | -{ | |
791 | - CHECK_SLAB_OKAY(v); | |
792 | - atomic_inc(v); | |
793 | -} | |
794 | - | |
795 | -#define atomic_inc(v) __rxrpc__atomic_inc((v)) | |
796 | - | |
797 | -static inline void __rxrpc__atomic_dec(atomic_t *v) | |
798 | -{ | |
799 | - CHECK_SLAB_OKAY(v); | |
800 | - atomic_dec(v); | |
801 | -} | |
802 | - | |
803 | -#define atomic_dec(v) __rxrpc__atomic_dec((v)) | |
804 | - | |
805 | -static inline int __rxrpc__atomic_dec_and_test(atomic_t *v) | |
806 | -{ | |
807 | - CHECK_SLAB_OKAY(v); | |
808 | - return atomic_dec_and_test(v); | |
809 | -} | |
810 | - | |
811 | -#define atomic_dec_and_test(v) __rxrpc__atomic_dec_and_test((v)) | |
812 | - | |
813 | 789 | static inline void __rxrpc_get_local(struct rxrpc_local *local, const char *f) |
814 | 790 | { |
815 | 791 | CHECK_SLAB_OKAY(&local->usage); |