summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2017-08-04 12:00:53 +0200
committerThomas Monjalon <thomas@monjalon.net>2017-08-05 01:18:21 +0200
commita1742d172a7b68eeb0af8b3b5083ccca4d5993a1 (patch)
tree0e75dade867ffb83753fb5369aeeae3347cdff8d
parentc65de526140e4b6e22c5889c35381cf274ab9ab3 (diff)
downloaddpdk-a1742d172a7b68eeb0af8b3b5083ccca4d5993a1.zip
dpdk-a1742d172a7b68eeb0af8b3b5083ccca4d5993a1.tar.gz
dpdk-a1742d172a7b68eeb0af8b3b5083ccca4d5993a1.tar.xz
eventdev: fix missing includes
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 <thomas@monjalon.net> Acked-by: John McNamara <john.mcnamara@intel.com>
-rw-r--r--lib/librte_eventdev/rte_eventdev_pmd_pci.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/librte_eventdev/rte_eventdev_pmd_pci.h b/lib/librte_eventdev/rte_eventdev_pmd_pci.h
index 1dbba37..b6bd731 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 <string.h>
+#include <rte_eal.h>
+#include <rte_lcore.h>
#include <rte_pci.h>
#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,