[dpdk-dev] [PATCH] eal/linux: fix build when VFIO is disabled
Ali Alnubani
alialnu at mellanox.com
Sun Dec 22 13:13:58 CET 2019
> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Monday, December 16, 2019 7:22 PM
> To: Ali Alnubani <alialnu at mellanox.com>
> Cc: dev at dpdk.org; vattunuru at marvell.com; stable at dpdk.org
> Subject: Re: [dpdk-dev] [PATCH] eal/linux: fix build when VFIO is disabled
>
> On Wed, Dec 11, 2019 at 7:26 PM Ali Alnubani <alialnu at mellanox.com>
> wrote:
> > The header linux/version.h isn't included when CONFIG_RTE_EAL_VFIO is
> > explicitly disabled. LINUX_VERSION_CODE and KERNEL_VERSION are
> > therefore undefined, causing the build failure:
> >
> > lib/librte_eal/linux/eal/eal.c: In function ‘rte_eal_init’:
> > lib/librte_eal/linux/eal/eal.c:1076:32: error: "LINUX_VERSION_CODE" is
> > not defined, evaluates to 0 [-Werror=undef]
>
> The patch itself is ok.
> But, out of curiosity, why would you disable vfio support?
No reason. I noticed the build error by accident actually.
>
>
> --
> David Marchand
Regards,
Ali
More information about the dev
mailing list