Re: [PATCH] power: don't disable all cast qualifier warnings

2024-10-17 Thread Thomas Monjalon
13/08/2024 08:11, Morten Brørup: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > > > Only in one place does the power library need un-constify a pointer > > and this can be done by casting to uintptr_t first. Better, to have > > the warning enabled across the rest of the code.

Re: [PATCH] power: don't disable all cast qualifier warnings

2024-09-11 Thread Tyler Retzlaff
On Mon, Aug 12, 2024 at 02:56:09PM -0700, Stephen Hemminger wrote: > Only in one place does the power library need un-constify a pointer > and this can be done by casting to uintptr_t first. Better, to have > the warning enabled across the rest of the code. > > Signed-off-by: Stephen Hemminger >

Re: [PATCH] power: don't disable all cast qualifier warnings

2024-08-13 Thread lihuisong (C)
在 2024/8/13 5:56, Stephen Hemminger 写道: Only in one place does the power library need un-constify a pointer and this can be done by casting to uintptr_t first. Better, to have the warning enabled across the rest of the code. Signed-off-by: Stephen Hemminger --- Acked-by: Huisong Li

Re: [PATCH] power: don't disable all cast qualifier warnings

2024-08-13 Thread Bruce Richardson
On Mon, Aug 12, 2024 at 02:56:09PM -0700, Stephen Hemminger wrote: > Only in one place does the power library need un-constify a pointer > and this can be done by casting to uintptr_t first. Better, to have > the warning enabled across the rest of the code. > > Signed-off-by: Stephen Hemminger >

RE: [PATCH] power: don't disable all cast qualifier warnings

2024-08-12 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Only in one place does the power library need un-constify a pointer > and this can be done by casting to uintptr_t first. Better, to have > the warning enabled across the rest of the code. > > Signed-off-by: Stephen Hemminger > --

[PATCH] power: don't disable all cast qualifier warnings

2024-08-12 Thread Stephen Hemminger
Only in one place does the power library need un-constify a pointer and this can be done by casting to uintptr_t first. Better, to have the warning enabled across the rest of the code. Signed-off-by: Stephen Hemminger --- lib/power/meson.build | 4 +--- lib/power/rte_power_pmd_mgmt.c |