numam-dpdk/lib/eal/include
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
..
generic spinlock: use WFE to reduce contention on aarch64 2021-07-09 21:33:01 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_alarm.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_bitmap.h bitmap: fix buffer overrun in bitmap init 2021-06-11 11:03:25 +02:00
rte_bitops.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_branch_prediction.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_bus.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_class.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_common.h eal: fix argument in 32-bit safe BSF function 2021-07-24 09:51:30 +02:00
rte_compat.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_debug.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_dev.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_devargs.h devargs: add common key definition 2021-07-05 16:33:18 +02:00
rte_eal_interrupts.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_eal_memconfig.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_eal_paging.h eal: fix memory mapping on 32-bit target 2021-05-11 23:01:06 +02:00
rte_eal_trace.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_eal.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_errno.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_fbarray.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_function_versioning.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_hexdump.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_hypervisor.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_interrupts.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_keepalive.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_launch.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_lcore.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_log.h log: register with standardized names 2021-05-11 15:17:55 +02:00
rte_malloc.h malloc: fix size annotation for NUMA-aware realloc 2021-06-11 11:03:38 +02:00
rte_memory.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_memzone.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_pci_dev_feature_defs.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_pci_dev_features.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_per_lcore.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_random.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_reciprocal.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_service_component.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_service.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_string_fns.h eal: save error in string copy 2021-07-05 15:11:30 +02:00
rte_tailq.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_test.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_thread.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_time.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_trace_point_register.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_trace_point.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_trace.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_uuid.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_version.h lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
rte_vfio.h vfio: add stdbool include 2021-06-17 10:31:33 +02:00