From: Christian Ehrhardt Date: Tue, 1 Jun 2021 08:28:25 +0000 (+0200) Subject: vfio: add stdbool include X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=31c5af644b1a209cb720dc62f70a51d84a4f979b;p=dpdk.git vfio: add stdbool include This became visible by backporting the following for the 19.11 stable tree: c13ca4e8 "vfio: fix DMA mapping granularity for IOVA as VA" The usage of type bool in the vfio code would require "#include ", but rte_vfio.h has no direct paths to stdbool.h. It happens that in eal_vfio_mp_sync.c it comes after "#include ". And rte_log.h since 20.05 includes stdbool since this change: 241e67bfe "log: add API to check if a logtype can log in a given level" and thereby mitigates the issue. It should be safe to include stdbool.h from rte_vfio.h itself to be present exactly when needed for the struct it defines using that type. Fixes: c13ca4e81cac ("vfio: fix DMA mapping granularity for IOVA as VA") Cc: stable@dpdk.org Signed-off-by: Christian Ehrhardt Acked-by: Anatoly Burakov --- diff --git a/lib/eal/include/rte_vfio.h b/lib/eal/include/rte_vfio.h index e7a87454be..2d90b36480 100644 --- a/lib/eal/include/rte_vfio.h +++ b/lib/eal/include/rte_vfio.h @@ -14,6 +14,7 @@ extern "C" { #endif +#include #include /*