introduce restricted pointer aliasing marker
authorJoyce Kong <joyce.kong@arm.com>
Fri, 10 Jul 2020 02:38:48 +0000 (10:38 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 10 Jul 2020 13:35:32 +0000 (15:35 +0200)
commit428e684795fad56aa6140a0bd80df61e217d03a0
treec7daaaa0deb53519a637a25872ebc27fa11470fd
parenteff30b59cc2eadcd36e755818b62c87d0caa7e01
introduce restricted pointer aliasing marker

The 'restrict' keyword is recognized in C99, while type qualifier
'__restrict' compiles ok in C with all language levels. This patch
is to replace the existing 'restrict' with '__rte_restrict' which
is a common wrapper supported by all compilers.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/i40e/i40e_rxtx_vec_neon.c
drivers/net/mlx5/mlx5_rxtx.c
examples/performance-thread/pthread_shim/pthread_shim.c
lib/librte_eal/include/rte_common.h