[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1411140580-20909-4-git-send-email-jeffrey.t.kirsher@intel.com>
Date: Fri, 19 Sep 2014 08:29:36 -0700
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
To: sparse@...isli.org
Cc: Mark Rustad <mark.d.rustad@...el.com>,
linux-sparse@...r.kernel.org, linux-kernel@...r.kernel.org,
Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...nel.org>,
"Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>,
Brian Norris <computersforpeace@...il.com>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Subject: [PATCH 3/7] atomic: Silence nested-externs warnings
From: Mark Rustad <mark.d.rustad@...el.com>
Silence the nested-externs warnings for these, as they are
truly wanted.
CC: Peter Zijlstra <peterz@...radead.org>
CC: Ingo Molnar <mingo@...nel.org>
CC: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
CC: Brian Norris <computersforpeace@...il.com>
Signed-off-by: Mark Rustad <mark.d.rustad@...el.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
---
include/linux/atomic.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/atomic.h b/include/linux/atomic.h
index fef3a80..81c7ad4 100644
--- a/include/linux/atomic.h
+++ b/include/linux/atomic.h
@@ -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
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists