From patchwork Fri Aug 4 10:47:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 27437 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 7A5192C18; Fri, 4 Aug 2017 12:47:30 +0200 (CEST) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 1AF7C2BC8 for ; Fri, 4 Aug 2017 12:47:29 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id C52A3209F7; Fri, 4 Aug 2017 06:47:28 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 04 Aug 2017 06:47:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=TVGRPM5TqaQqEal 2vcK7pnS4DNjlfNYuberYhf1p/kw=; b=fbgQH14xCv+JJO6AN04Glo/yTRwXayY GbrHD265e8xJCm4VRCcvNF63mOxtUZAcTc5othY1Im4znoLU1/Jq3qpNP4x4EgGd KMwPTRcpLTmgFQx+PXrF4kRJBX1uLTO949riJ3Kz6or5ftfTa40HFE16AN2IuWOi SGOcVmLf3d0s= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=TVGRPM5TqaQqEal2vcK7pnS4DNjlfNYuberYhf1p/kw=; b=Bb2Am48z m2dRYLqpTPpMJ0RnjKPeMrTtYpNlWCGVvgr7oUf3Nc7Ej8W2R62uI80SEVj4vVng idPqv6WE+Rk67nVKGdv2cHdzncR93PyRjnCOhKuCR+iph3t4iEDIWxdot6fPRAkV hWspNHHKL3XO1uU/pEPKRpY184W+QhUWsKqUZXKOualSULfvwPB9PqAdcAad6fsc AdU3dLw08gsvBkpoK6Yk0eRpRj9u7fct9NLYV8phPMpLbL1wcTI+D5LyniOQ6Y63 +E17eALrX51HlfgUQACMsAZMKuiyc37lsn6pAoWYW2eLltJHKNy/LmQ6u1Y1ys+S EmhLKbTdymXCxg== X-ME-Sender: X-Sasl-enc: qoCatw4J3Bk0BbCcf+h23yHbI/S/d816M7yfML9Oht+B 1501843648 Received: from xps.monjalon.net (159.16.90.92.rev.sfr.net [92.90.16.159]) by mail.messagingengine.com (Postfix) with ESMTPA id BD08224038; Fri, 4 Aug 2017 06:47:27 -0400 (EDT) From: Thomas Monjalon To: jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org Date: Fri, 4 Aug 2017 12:47:23 +0200 Message-Id: <20170804104723.4742-1-thomas@monjalon.net> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170804102035.4051-1-thomas@monjalon.net> References: <20170804102035.4051-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2] eventdev: fix missing includes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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 PCI helper file depends on some EAL definitions. Spotted with devtools/check-includes.sh: error: implicit declaration of function ‘rte_eal_process_type’ error: ‘RTE_PROC_PRIMARY’ undeclared error: implicit declaration of function ‘rte_socket_id’ There was also this error because the inline keyword was missing: error: ‘rte_event_pmd_pci_probe’ defined but not used Fixes: 9a8269d56942 ("eventdev: make PCI probe and remove functions optional") Signed-off-by: Thomas Monjalon --- v2: remove bad change in Makefile (thanks Jerin) --- lib/librte_eventdev/rte_eventdev_pmd_pci.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/librte_eventdev/rte_eventdev_pmd_pci.h b/lib/librte_eventdev/rte_eventdev_pmd_pci.h index 1dbba373c..b6bd7319e 100644 --- a/lib/librte_eventdev/rte_eventdev_pmd_pci.h +++ b/lib/librte_eventdev/rte_eventdev_pmd_pci.h @@ -47,6 +47,8 @@ extern "C" { #include +#include +#include #include #include "rte_eventdev_pmd.h" @@ -58,7 +60,7 @@ typedef int (*eventdev_pmd_pci_callback_t)(struct rte_eventdev *dev); * Wrapper for use by pci drivers as a .probe function to attach to a event * interface. */ -static int +static inline int rte_event_pmd_pci_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev, size_t private_data_size,