On 9/19/25 10:37 AM, David Marchand wrote:
One issue with the currently imported header is that if a header
(external to DPDK) starts including the equivalent system installed uapi
header, then when DPDK code later includes its own uapi/ header,
the header guard won't match, which may result in DPDK build failure.
To address this issue, adjust the include guards in our imported uapi
header and make sure those headers are included first before any
external header.
Update the documentation accordingly.
Fixes: cf97dfd12eaf ("uapi: import Linux kernel uAPI headers")
Fixes: 67b79f6314ae ("vhost: use imported VDUSE uAPI header")
Signed-off-by: David Marchand <[email protected]>
---
devtools/linux-uapi.sh | 3 +++
doc/guides/contributing/linux_uapi.rst | 6 ++++++
kernel/linux/uapi/linux/vduse.h | 6 +++---
lib/vhost/vduse.c | 4 ++--
4 files changed, 14 insertions(+), 5 deletions(-)
Reviewed-by: Maxime Coquelin <[email protected]>
Thanks,
Maxime