[PATCH v2 0/3] use rte macros instead of GCC __attribute
David Marchand
david.marchand at redhat.com
Wed Mar 6 21:49:31 CET 2024
On Wed, Feb 28, 2024 at 7:48 PM Tyler Retzlaff
<roretzla at linux.microsoft.com> wrote:
>
> Clean up direct uses of GCC __attribute__ in libs outside of EAL. A
> checkpatch check already warns for new additions.
>
> v2:
> * fix typo __rte_pure -> __rte_may_alias in rcu commit message
>
> Tyler Retzlaff (3):
> eal: add rte pure attribute macro
> lpm: use rte macro instead of GCC attribute
> rcu: use rte macro instead of GCC attribute
>
> lib/eal/include/rte_common.h | 9 +++++++++
> lib/lpm/rte_lpm.c | 4 ++--
> lib/lpm/rte_lpm6.c | 2 +-
> lib/rcu/rcu_qsbr_pvt.h | 2 +-
> 4 files changed, 13 insertions(+), 4 deletions(-)
Introducing __rte_pure and converting lib/lpm looks fine.
But please finish the job for the other occurence in the tree as it is
a mechanical change.
Thanks.
--
David Marchand
More information about the dev
mailing list