On Thu, 26 Feb 2026 14:17:23 +0000
Anatoly Burakov <[email protected]> wrote:
> This patchset introduces a major refactor of the VFIO subsystem in DPDK to
> support character device (cdev) interface introduced in Linux kernel, as well
> as
> make the API more streamlined and useful. The goal is to simplify device
> management, improve compatibility, and clarify API responsibilities.
>
> The following sections outline the key issues addressed by this patchset and
> the
> corresponding changes introduced.
The patch set is still interesting but lots of build failures.
You need to rebase and resubmit.
Look for shadow variable warnings etc.
ccache clang -Ilib/librte_eal.a.p -Ilib -I../lib -Ilib/eal/common
-I../lib/eal/common -I. -I.. -Iconfig -I../config -Ilib/eal/include
-I../lib/eal/include -Ilib/eal/linux/include -I../lib/eal/linux/include
-Ilib/eal/x86/include -I../lib/eal/x86/include -I../kernel/linux -Ilib/eal
-I../lib/eal -Ilib/kvargs -I../lib/kvargs -Ilib/log -I../lib/log -Ilib/metrics
-I../lib/metrics -Ilib/telemetry -I../lib/telemetry -Ilib/argparse
-I../lib/argparse -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64
-Wall -Winvalid-pch -Wextra -Werror -std=c11 -O2 -g -include rte_config.h -Wvla
-Wcast-qual -Wcomma -Wdeprecated -Wformat -Wformat-nonliteral -Wformat-security
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare
-Wstrict-prototypes -Wundef -Wwrite-strings -Wno-missing-field-initializers
-D_GNU_SOURCE -fPIC -march=corei7 -mrtm -DALLOW_EXPERIMENTAL_API
-DALLOW_INTERNAL_API '-DABI_VERSION="26.1"'
-DRTE_EAL_PTHREAD_ATTR_SETAFFINITY_NP -DRTE_LOG_DEFAULT_LOGTYPE=lib.eal
-DRTE_ANNOTATE_LOCKS -Wthread-safety -MD -MQ
lib/librte_eal.a.p/eal_linux_eal_vfio_group.c.o -MF
lib/librte_eal.a.p/eal_linux_eal_vfio_group.c.o.d -o
lib/librte_eal.a.p/eal_linux_eal_vfio_group.c.o -c
../lib/eal/linux/eal_vfio_group.c
../lib/eal/linux/eal_vfio_group.c:914:8: error: declaration shadows a local
variable [-Werror,-Wshadow]
914 | char dev[PATH_MAX];
| ^
../lib/eal/linux/eal_vfio_group.c:905:94: note: previous declaration is here
905 | vfio_group_setup_device_fd(const char *dev_addr, struct vfio_group
*grp, struct vfio_device *dev)
|
^
1 error generated.
[97/7766] Generating