@@ -7,6 +7,7 @@
* Provide __deprecated wrappers for the new interface, avoid flag day changes.
* We need the ugly external functions to break header recursion hell.
*/
+DIAG_PUSH DIAG_IGNORE(nested-externs)
#ifndef smp_mb__before_atomic_inc
static inline void __deprecated smp_mb__before_atomic_inc(void)
{
@@ -38,6 +39,7 @@ static inline void __deprecated smp_mb__after_atomic_dec(void)
__smp_mb__after_atomic();
}
#endif
+DIAG_POP
/**
* atomic_add_unless - add unless the number is already a given value