eal/x86: fix pedantic build
authorThomas Monjalon <thomas@monjalon.net>
Thu, 4 Apr 2019 12:53:05 +0000 (14:53 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Apr 2019 15:22:06 +0000 (17:22 +0200)
commit721ac9f9e063f55570c1c3a2f07cf5a7b5e15aab
tree2fcdee64a539ab007abe53ab257c12cdb702de89
parent3ed37e09342cfe416eb2c930d960ba47143af697
eal/x86: fix pedantic build

When enabling pedantic compilation with CONFIG_RTE_LIBRTE_MLX5_DEBUG,
the compiler complains about non standard 128-bit integer type:

include/rte_atomic_64.h:223:3: error:
ISO C does not support ‘__int128’ types [-Werror=pedantic]

It must be marked as an extension of the standard C language
to be accepted in pedantic compilation.

Fixes: 640c5f09ef2c ("eal/x86: add 128-bit atomic compare exchange")
Cc: gage.eads@intel.com
Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Gage Eads <gage.eads@intel.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/common/include/arch/x86/rte_atomic_64.h