[PATCH] eal: add nonnull and access function attributes
Tyler Retzlaff
roretzla at linux.microsoft.com
Fri Dec 2 21:02:27 CET 2022
On Fri, Dec 02, 2022 at 04:34:32PM +0100, Morten Brørup wrote:
> 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 attribute to tell the optimizer how a function
> accesses 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>
> ---
thanks for providing the non-gcc expansion to empty.
Acked-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
More information about the dev
mailing list