Re: [dpdk-dev] [PATCH] tracepoint: fix compilation with C++

2020-08-05 Thread Pawel Wodkowski
On 05.08.2020 10:00, David Marchand wrote: Hello Pawel, Thanks for contributing to DPDK. Thank for all tips. I will do that and resend V2. Paweł

Re: [dpdk-dev] [PATCH] tracepoint: fix compilation with C++

2020-08-05 Thread David Marchand
Hello Pawel, Thanks for contributing to DPDK. On Tue, Aug 4, 2020 at 7:52 PM Pawel Wodkowski wrote: > > trace_mem is declared as 'void *' which triggers following error: > '...invalid conversion from ‘void*’ to ‘__rte_trace_header*’ > [-fpermissive]...' > > Fix this by changing void to struct _

[dpdk-dev] [PATCH] tracepoint: fix compilation with C++

2020-08-04 Thread Pawel Wodkowski
trace_mem is declared as 'void *' which triggers following error: '...invalid conversion from ‘void*’ to ‘__rte_trace_header*’ [-fpermissive]...' Fix this by changing void to struct __rte_trace_header --- lib/librte_eal/common/eal_common_trace.c | 2 +- lib/librte_eal/include/rte_trace_point.h |