[PATCH] net/cpfl: fix build error for debian 32-bit
David Marchand
david.marchand at redhat.com
Wed Jul 10 17:07:30 CEST 2024
On Wed, Jul 10, 2024 at 4:54 PM Bruce Richardson
<bruce.richardson at intel.com> wrote:
>
> When building for debian 11 32-bit, errors were reported with cpfl
> driver[1]. The error is due to comparing signed and unsigned values:
>
> ../drivers/net/cpfl/cpfl_flow_parser.c:1699:29: error: comparison of
> integer expressions of different signedness: 'long int' and
> 'uint32_t' {aka 'unsigned int'} [-Werror=sign-compare]
>
> Fix the issue by using an explicitly cast for the return value from
> atol.
>
> Fixes: c10881d3ee74 ("net/cpfl: support flow prog action")
> Cc: stable at dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Reviewed-by: David Marchand <david.marchand at redhat.com>
--
David Marchand
More information about the dev
mailing list