Bug 955
Summary: | [20.11] build failure in qos_sched example app | ||
---|---|---|---|
Product: | DPDK | Reporter: | Ali Alnubani (alialnu) |
Component: | examples | Assignee: | dev |
Status: | IN_PROGRESS --- | ||
Severity: | normal | CC: | ktraynor |
Priority: | Normal | ||
Version: | 20.11 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All |
Description
Ali Alnubani
2022-03-08 09:15:34 CET
Reproduces on version: eb0f31af87b This is caused by backport of: commit 9c9fad3dfa042ae4b7a045cb1731f8701f8210e6 Author: Megha Ajmera <megha.ajmera@intel.com> Date: Wed Feb 23 17:36:30 2022 +0000 examples/qos_sched: fix core mask overflow Masking of core mask was incorrect. Instead of using 1U for shifting, it should be using 1LU as the result is assigned to uint64. CID 375859: Potentially overflowing expression "1U << app_main_core" with type "unsigned int" (32 bits, unsigned) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "uint64_t" (64 bits, unsigned). Coverity issue: 375859 Fixes: de3cfa2c9823 ("sched: initial import") Cc: stable@dpdk.org It needs rte_bitops include added, see https://github.com/kevintraynor/dpdk-stable/commit/d33bb6bd28406944b31ad53ba90199ca5f2f114f |