numam-dpdk/lib/eal
Stephen Hemminger 128c22b998 eal: fix argument in 32-bit safe BSF function
The first argument to rte_bsf32_safe was incorrectly declared as
a 64 bit value. The code only works on 32 bit values and the underlying
function rte_bsf32 only accepts 32 bit values. This was a mistake
introduced when the safe version was added and probably cause
by copy/paste from the 64 bit version.

The bug passed silently under the radar until some other code was
built with -Wall and -Wextra in C++ and C++ complains about the
missing cast.

Yes, this is a API signature change, but the original code was wrong.
It is an inline so not an ABI change.

Fixes: 4e261f5519 ("eal: add 64-bit bsf and 32-bit safe bsf functions")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
2021-07-24 09:51:30 +02:00
..
arm config/arm: fix SVE build with GCC 8.3 2021-07-09 22:25:24 +02:00
common eal: suppress error log on multi-process hotplug 2021-07-10 10:07:07 +02:00
freebsd eal: create runtime dir even when shared data is not used 2021-07-07 15:23:09 +02:00
include eal: fix argument in 32-bit safe BSF function 2021-07-24 09:51:30 +02:00
linux eal: create runtime dir even when shared data is not used 2021-07-07 15:23:09 +02:00
ppc eal: add power monitor for multiple events 2021-07-09 21:13:13 +02:00
unix eal: handle compressed firmware 2021-07-07 16:41:53 +02:00
windows eal/windows: check callback parameter of alarm functions 2021-07-22 22:06:27 +02:00
x86 eal: add power monitor for multiple events 2021-07-09 21:13:13 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map eal: add power monitor for multiple events 2021-07-09 21:13:13 +02:00