Skip to content

Commit

Permalink
eventdev: fix C++ include
Browse files Browse the repository at this point in the history
The eventdev headers had issues when used from C++

* Missing closing "}" for the extern "C" block
* No automatic casting to/from void *

Fixes: a6562f6 ("eventdev: introduce event timer adapter")
Fixes: 32e3268 ("eventdev: add tracepoints")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
  • Loading branch information
bruce-richardson authored and tmonjalo committed Feb 10, 2022
1 parent 59144f6 commit 153e7d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/eventdev/rte_event_timer_adapter.h
Expand Up @@ -678,4 +678,8 @@ rte_event_timer_cancel_burst(const struct rte_event_timer_adapter *adapter,
return adapter->cancel_burst(adapter, evtims, nb_evtims);
}

#ifdef __cplusplus
}
#endif

#endif /* __RTE_EVENT_TIMER_ADAPTER_H__ */
2 changes: 1 addition & 1 deletion lib/eventdev/rte_eventdev.h
Expand Up @@ -1805,7 +1805,7 @@ __rte_event_enqueue_burst(uint8_t dev_id, uint8_t port_id,
return 0;
}
#endif
rte_eventdev_trace_enq_burst(dev_id, port_id, ev, nb_events, fn);
rte_eventdev_trace_enq_burst(dev_id, port_id, ev, nb_events, (void *)fn);
/*
* Allow zero cost non burst mode routine invocation if application
* requests nb_events as const one
Expand Down

0 comments on commit 153e7d8

Please sign in to comment.