[PATCH v1] bbdev: prevent clang 3.4.2 compilation error
Thomas Monjalon
thomas at monjalon.net
Tue Oct 11 01:27:24 CEST 2022
> > Casting explicitly from enum to uint8_t to avoid compilation
> > warning with clang 3.4.2 -Wtautological-constant-out-of-range-compare
> >
> > Signed-off-by: Nicolas Chautru <nicolas.chautru at intel.com>
>
> Verified that the build passes with this patch. Thanks Nicolas.
>
> Tested-by: Ali Alnubani <alialnu at nvidia.com>
Applied with more complete commit message, thanks:
bbdev: fix build with clang 3.4.2
Casting explicitly from enum to uint8_t to avoid compilation
warning with clang 3.4.2:
rte_bbdev.c:1179:13: error:
comparison of constant 4 with expression
of type 'enum rte_bbdev_enqueue_status' is always true
[-Werror,-Wtautological-constant-out-of-range-compare]
Bugzilla ID: 1095
Fixes: 1be86f2e94e4 ("bbdev: add device status info")
Fixes: 4f08028c5e24 ("bbdev: expose queue related warning and status")
More information about the dev
mailing list