[PATCH v7 4/4] eal: add nonnull and access function attributes
Morten Brørup
mb at smartsharesystems.com
Tue Apr 4 15:41:55 CEST 2023
> From: Morten Brørup [mailto:mb at smartsharesystems.com]
> Sent: Monday, 16 January 2023 14.07
>
> Add nonnull function attribute to help the compiler detect a NULL
> pointer being passed to a function not accepting NULL pointers as an
> argument at build time.
>
> Add access function attributes to tell the compiler how a function
> accesses memory pointed to by its pointer arguments.
>
> Add these attributes to the rte_memcpy() function, as the first in
> hopefully many to come.
>
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
> Acked-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
> ---
David,
Patch parts 1, 2 and 3 are essentially individual stand-alone patches, and can be merged as such.
I only made them part of this series because they were required for the primary patch 4.
When I have some time to spare, I will send a new patch, adding the nonnull and access attributes, based on the received feedback.
PS: This patch series got the wrong name by mistake.
More information about the dev
mailing list