From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f41.google.com (mail-wg0-f41.google.com [74.125.82.41]) by dpdk.org (Postfix) with ESMTP id F40E0AFD4 for ; Fri, 25 Apr 2014 14:00:15 +0200 (CEST) Received: by mail-wg0-f41.google.com with SMTP id y10so831909wgg.24 for ; Fri, 25 Apr 2014 05:00:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+a/NSqithnrPkSaLW80d51v4Xe9Gl1+9PpINBiLWF+Y=; b=RmspgN9iXKCfnv6jDhm5T7C8HJ1S8kDXGxpqf9rkLR9KKoZ4mF/LSDYowUPcemPPPj xiueV0DBdS4vHqEI4rhS3kXjoR6VBZUPwvD3WuESAd/4Q01sv3Xw6fc10ODvFkw9zboK 9Ve+mIipMlNP0FL+COoPkO7nuCWe5v/SyhOqGZ+Jv6cwr2WGJREUZClsvP/QyRRuKvlo T3Kc4a6p9rPc/JgIiDPEov1P8seZh89EuA+xEuD8RZOgTdsxV0Y34UFFZ62VwEsAEWJY xmHg5C6HTjA1tdASuvpRRFQhEodZ/l8WMiZ8GMv1GDQeDDfON1Ljs8n5oQErb4+JU+My drgQ== X-Gm-Message-State: ALoCoQmkOcUum1nz5U0hnCVptuwWvsS4pkTWU78PMiO43uFCeazJC3kYeM5XgOTK+G9NCtZUQNDv X-Received: by 10.180.184.167 with SMTP id ev7mr3359420wic.55.1398427218762; Fri, 25 Apr 2014 05:00:18 -0700 (PDT) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id q2sm5487386wix.5.2014.04.25.05.00.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Apr 2014 05:00:17 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Fri, 25 Apr 2014 13:59:45 +0200 Message-Id: <1398427188-14914-8-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1398427188-14914-1-git-send-email-olivier.matz@6wind.com> References: <1398427188-14914-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 07/10] bsd/nic_uio: fix module compilation with freebsd 10 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: , X-List-Received-Date: Fri, 25 Apr 2014 12:00:16 -0000 Compiling the DPDK under FreeBSD gives the following error due to a missing include . In file included from nic_uio.c:52: @/vm/vm_pager.h:126:2: error: implicit declaration of function 'rw_assert' is invalid in C99 [-Werror,-Wimplicit-function-declaration] VM_OBJECT_ASSERT_WLOCKED(object); ^ @/vm/vm_object.h:226:2: note: expanded from macro 'VM_OBJECT_ASSERT_WLOCKED' rw_assert(&(object)->lock, RA_WLOCKED) ^ In file included from nic_uio.c:52: @/vm/vm_pager.h:126:2: error: use of undeclared identifier 'RA_WLOCKED' @/vm/vm_object.h:226:29: note: expanded from macro 'VM_OBJECT_ASSERT_WLOCKED' rw_assert(&(object)->lock, RA_WLOCKED) ^ In file included from nic_uio.c:52: @/vm/vm_pager.h:143:2: error: use of undeclared identifier 'RA_WLOCKED' VM_OBJECT_ASSERT_WLOCKED(object); ^ @/vm/vm_object.h:226:29: note: expanded from macro 'VM_OBJECT_ASSERT_WLOCKED' rw_assert(&(object)->lock, RA_WLOCKED) ^ In file included from nic_uio.c:52: @/vm/vm_pager.h:167:2: error: use of undeclared identifier 'RA_WLOCKED' VM_OBJECT_ASSERT_WLOCKED(object); ^ @/vm/vm_object.h:226:29: note: expanded from macro 'VM_OBJECT_ASSERT_WLOCKED' rw_assert(&(object)->lock, RA_WLOCKED) ^ In file included from nic_uio.c:52: @/vm/vm_pager.h:190:2: error: use of undeclared identifier 'RA_WLOCKED' VM_OBJECT_ASSERT_WLOCKED(m->object); ^ @/vm/vm_object.h:226:29: note: expanded from macro 'VM_OBJECT_ASSERT_WLOCKED' rw_assert(&(object)->lock, RA_WLOCKED) ^ Signed-off-by: Olivier Matz --- lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c index ce97dfc..c10e9aa 100644 --- a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c +++ b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c @@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$"); #include /* structs, prototypes for pci bus stuff and DEVMETHOD */ #include #include +#include #include #include -- 1.9.2