dmadev: enable build on Windows
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 20 Oct 2021 11:25:53 +0000 (12:25 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 22 Oct 2021 20:40:59 +0000 (22:40 +0200)
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 <bruce.richardson@intel.com>
Reviewed-by: Chengwen Feng <fengchengwen@huawei.com>
Tested-by: Conor Walsh <conor.walsh@intel.com>
drivers/dma/skeleton/skeleton_dmadev.c
lib/meson.build

index 2952417..d9e4f73 100644 (file)
@@ -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;
index 1a8ac30..fa8541b 100644 (file)
@@ -76,6 +76,7 @@ if is_windows
             'net',
             'meter',
             'ethdev',
+            'dmadev',
             'pci',
             'cmdline',
             'metrics',