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

David Marchand david.marchand at redhat.com
Thu Sep 17 10:16:19 CEST 2020


On Wed, Aug 12, 2020 at 11:52 AM <skori at marvell.com> wrote:
>
> From: Pawel Wodkowski <pawelwod at gmail.com>
>
> trace_mem is declared as 'void *' which triggers following error:
> '...invalid conversion from ‘void*’ to ‘__rte_trace_header*’
> [-fpermissive]...'
>
> Fix this by adding proper typecast to 'struct __rte_trace_header *'.
>
> Fixes: ebaee6409702 ("trace: simplify trace point headers")
>
> Signed-off-by: Pawel Wodkowski <pawelwod at gmail.com>
Signed-off-by: Sunil Kumar Kori <skori at marvell.com>
Acked-by: Nicolas Chautru <nicolas.chautru at intel.com>

Applied, thanks.


-- 
David Marchand



More information about the dev mailing list