From: Bruce Richardson Date: Wed, 20 Oct 2021 11:25:53 +0000 (+0100) Subject: dmadev: enable build on Windows X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fed600889d84c0160cddad208eb2b0d1f8f12a32;p=dpdk.git dmadev: enable build on Windows The dmadev library was not added to the list of libraries built on Windows, meaning it was skipped in those builds and also that none of the drivers were being considered for build. Adding dmadev to the list fixes this, and also enables the skeleton dmadev driver to be built - all-be-it with a small fix necessary. Signed-off-by: Bruce Richardson Reviewed-by: Chengwen Feng Tested-by: Conor Walsh --- diff --git a/drivers/dma/skeleton/skeleton_dmadev.c b/drivers/dma/skeleton/skeleton_dmadev.c index 2952417126..d9e4f731d7 100644 --- a/drivers/dma/skeleton/skeleton_dmadev.c +++ b/drivers/dma/skeleton/skeleton_dmadev.c @@ -153,7 +153,7 @@ skeldma_stop(struct rte_dma_dev *dev) hw->exit_flag = true; rte_delay_ms(1); - pthread_cancel(hw->thread); + (void)pthread_cancel(hw->thread); pthread_join(hw->thread, NULL); return 0; diff --git a/lib/meson.build b/lib/meson.build index 1a8ac30c4d..fa8541bca2 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -76,6 +76,7 @@ if is_windows 'net', 'meter', 'ethdev', + 'dmadev', 'pci', 'cmdline', 'metrics',