[PATCH v3] eal: Pointer alignment check improvements
Bruce Richardson
bruce.richardson at intel.com
Thu Sep 22 15:38:36 CEST 2022
On Thu, Sep 22, 2022 at 03:27:30PM +0200, Morten Brørup wrote:
> Checking a const pointer for alignment would emit a warning about the
> const qualifier being discarded.
>
> No need to calculate the aligned pointer; just check the last bits of the
> pointer.
>
> v3:
> - Make the uintptr_t const to avoid potential future warnings. (Bruce)
> v2:
> - Remove compiler attribute ((const)) from function;
> it was a coding style issue.
>
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
Or perhaps it should be "Const-acked-by: ... " :-)
More information about the dev
mailing list