Re: [PATCH] eal: add nonnull and access function attributes

2022-12-02 Thread Tyler Retzlaff
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 func

[PATCH] eal: add nonnull and access function attributes

2022-12-02 Thread Morten Brørup
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_mem