[PATCH] drivers/net: fix cast-qual and strict-aliasing errors for ppc64le
David Marchand
david.marchand at redhat.com
Thu Jan 30 09:15:45 CET 2025
On Wed, Jan 29, 2025 at 6:36 PM Andre Muezerie
<andremue at linux.microsoft.com> wrote:
>
> During a recent cleanup a few lines were missed which are causing
> errors on ppc64le, like the ones below:
>
> drivers/net/mlx5/mlx5_rxtx_vec_altivec.h:77:17: error: cast discards
> ‘volatile’ qualifier from pointer target type [-Werror=cast-qual]
>
> lib/eal/include/rte_common.h:557:34: warning: dereferencing type-punned
> pointer will break strict-aliasing rules [-Wstrict-aliasing]
>
Fixes: 43fd3624fdfe ("drivers: replace GCC pragma with cast")
> Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
Reviewed-by: David Marchand <david.marchand at redhat.com>
> Tested-by: Ali Alnubani <alialnu at nvidia.com>
Applied, thanks.
--
David Marchand
More information about the dev
mailing list