[dpdk-dev] [PATCH 20.05 00/15] clean-up use of __attribute__

Thomas Monjalon thomas at monjalon.net
Thu Apr 16 18:34:19 CEST 2020


10/02/2020 17:20, Thomas Monjalon:
> Almost all usages of __attribute__ keyword are replaced
> by a macro (existing or new) with prefix __rte_.
> It makes code more consistent and will help changing
> compiler behaviour, or adapting to new compilers,
> in a central place.
> 
> Kernel and BPF files cannot use macros from rte_common.h.
> Some rare attributes are also kept unchanged.
> 
> 
> Thomas Monjalon (15):
>   app/bbdev: replace constructor syntax with common macro
>   net/mlx5: replace destructor syntax with common macro
>   net/memif: use common macros for cache line marker
>   common/mlx5: replace alignas keyword
>   replace alignment attributes
>   replace packed attributes
>   replace always-inline attributes
>   replace no-inline attributes
>   replace unused attributes
>   replace used attributes
>   replace hot attributes
>   replace cold attributes
>   replace no-return attributes
>   replace printf format attributes
>   devtools: check use of compiler attributes

Rebased and applied.

Some commits are dropped because already fixed by others in the meantime:
	app/bbdev: replace constructor syntax with common macro
	replace printf format attributes




More information about the dev mailing list