Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 395ADC433EF for ; Tue, 19 Oct 2021 12:28:16 +0000 (UTC) Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by mail.kernel.org (Postfix) with ESMTP id C8E5C60F93 for ; Tue, 19 Oct 2021 12:28:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C8E5C60F93 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dpdk.org Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DFF1D410FA; Tue, 19 Oct 2021 14:28:14 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id CB1F7410F4 for ; Tue, 19 Oct 2021 14:28:13 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10141"; a="225954814" X-IronPort-AV: E=Sophos;i="5.85,384,1624345200"; d="scan'208";a="225954814" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2021 05:28:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,384,1624345200"; d="scan'208";a="444470877" Received: from silpixa00399126.ir.intel.com ([10.237.223.151]) by orsmga003.jf.intel.com with ESMTP; 19 Oct 2021 05:28:11 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Chengwen Feng Date: Tue, 19 Oct 2021 13:28:00 +0100 Message-Id: <20211019122800.1537505-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] 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 --- This patch has been compile tested using mingw on Linux. Sending it publicly so that I can get CI test reports to check native windows builds. --- 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