trace: fix C++ compilation
authorPawel Wodkowski <pawelwod@gmail.com>
Wed, 12 Aug 2020 09:51:50 +0000 (15:21 +0530)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 17 Sep 2020 09:13:44 +0000 (11:13 +0200)
commitc23432a9c287501071688fe5208078bc6ed371b4
treeea2c531d5ccc8fc7f1d984f2a4a32c790456db0a
parentdc18be1d8b9666bd9cc3ab929d001b44e80bc61a
trace: fix C++ compilation

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")
Cc: stable@dpdk.org
Signed-off-by: Pawel Wodkowski <pawelwod@gmail.com>
Signed-off-by: Sunil Kumar Kori <skori@marvell.com>
Acked-by: Nicolas Chautru <nicolas.chautru@intel.com>
lib/librte_eal/include/rte_trace_point.h