Refrain from using compiler __atomic_xxx builtins DPDK now requires
the use of rte_atomic_<op>_explicit macros when operating on DPDK
atomic variables.

Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com>
Suggested-by: Morten Brørup <m...@smartsharesystems.com>
Acked-by: Bruce Richardson <bruce.richard...@intel.com>
---
 devtools/checkpatches.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index 43f5e36..b15c3f7 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -111,11 +111,11 @@ check_forbidden_additions() { # <patch>
                -f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \
                "$1" || res=1
 
-       # refrain from using compiler __atomic_{add,and,nand,or,sub,xor}_fetch()
+       # refrain from using compiler __atomic_xxx builtins
        awk -v FOLDERS="lib drivers app examples" \
-               -v EXPRESSIONS="__atomic_(add|and|nand|or|sub|xor)_fetch\\\(" \
+               -v EXPRESSIONS="__atomic_.*\\\(" \
                -v RET_ON_FAIL=1 \
-               -v MESSAGE='Using __atomic_op_fetch, prefer __atomic_fetch_op' \
+               -v MESSAGE='Using __atomic_xxx builtins' \
                -f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \
                "$1" || res=1
 
-- 
1.8.3.1

Reply via email to