From patchwork Wed Jan 21 20:57:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Horman X-Patchwork-Id: 2435 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 00D475A9D; Wed, 21 Jan 2015 21:58:33 +0100 (CET) Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id E27A55A9E for ; Wed, 21 Jan 2015 21:58:30 +0100 (CET) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YE2M3-0007Ae-GG; Wed, 21 Jan 2015 15:58:27 -0500 From: Neil Horman To: dev@dpdk.org Date: Wed, 21 Jan 2015 15:57:34 -0500 Message-Id: <1421873870-21754-10-git-send-email-nhorman@tuxdriver.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1421873870-21754-1-git-send-email-nhorman@tuxdriver.com> References: <1419109299-9603-1-git-send-email-nhorman@tuxdriver.com> <1421873870-21754-1-git-send-email-nhorman@tuxdriver.com> X-Spam-Score: -2.9 (--) X-Spam-Status: No Subject: [dpdk-dev] [PATCH v7 10/26] nic_uio: fix thread structure compatibility for future FreeBSD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Bruce Richardson Replace d_thread_t with struct thread in nic_uio. Ref: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196691 Quote: "The d_thread_t typedef is a compat shim to support FreeBSD 4.x. I'm planning to remove this shim from 11 and dpdk is very unlikely to ever be ported to 4.x. If it does it will need far more changes than just d_thread_t" Reported-by: John Baldwin Signed-off-by: Bruce Richardson --- lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c index ed11d84..5ae8560 100644 --- a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c +++ b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c @@ -175,13 +175,13 @@ nic_uio_mmap_single(struct cdev *cdev, vm_ooffset_t *offset, vm_size_t size, int -nic_uio_open(struct cdev *dev, int oflags, int devtype, d_thread_t *td) +nic_uio_open(struct cdev *dev, int oflags, int devtype, struct thread *td) { return 0; } int -nic_uio_close(struct cdev *dev, int fflag, int devtype, d_thread_t *td) +nic_uio_close(struct cdev *dev, int fflag, int devtype, struct thread *td) { return 0; }