From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D4A72A0C43; Wed, 20 Oct 2021 13:26:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 311F7411FD; Wed, 20 Oct 2021 13:26:11 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 5065B411F1 for ; Wed, 20 Oct 2021 13:26:08 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10142"; a="292219478" X-IronPort-AV: E=Sophos;i="5.87,166,1631602800"; d="scan'208";a="292219478" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Oct 2021 04:26:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,166,1631602800"; d="scan'208";a="718920574" Received: from silpixa00399126.ir.intel.com ([10.237.223.151]) by fmsmga006.fm.intel.com with ESMTP; 20 Oct 2021 04:26:06 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: david.marchand@redhat.com, dmitry.kozliuk@gmail.com, navasile@linux.microsoft.com, dmitrym@microsoft.com, pallavi.kadam@intel.com, Bruce Richardson , Chengwen Feng Date: Wed, 20 Oct 2021 12:25:53 +0100 Message-Id: <20211020112554.2421080-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211020112554.2421080-1-bruce.richardson@intel.com> References: <20211019161537.2414549-1-bruce.richardson@intel.com> <20211020112554.2421080-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/3] dmadev: enable build on Windows X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- drivers/dma/skeleton/skeleton_dmadev.c | 2 +- lib/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 3b8b099820..403b1f4aa4 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -75,6 +75,7 @@ if is_windows 'net', 'meter', 'ethdev', + 'dmadev', 'pci', 'cmdline', 'metrics', -- 2.30.2