Re: [PATCH v3] eal: Pointer alignment check improvements

2022-09-23 Thread Bruce Richardson
On Thu, Sep 22, 2022 at 10:54:38PM +0200, Morten Brørup wrote: > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > Sent: Thursday, 22 September 2022 15.39 > > > > On Thu, Sep 22, 2022 at 03:27:30PM +0200, Morten Brørup wrote: > > > Checking a const pointer for alignment would emit a

RE: [PATCH v3] eal: Pointer alignment check improvements

2022-09-22 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Thursday, 22 September 2022 15.39 > > 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 t

Re: [PATCH v3] eal: Pointer alignment check improvements

2022-09-22 Thread Bruce Richardson
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 t

[PATCH v3] eal: Pointer alignment check improvements

2022-09-22 Thread Morten Brørup
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 ((co