]> git.droids-corp.org - dpdk.git/commit
ethdev: fix cast for C++ compatibility
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 15 Feb 2022 17:30:27 +0000 (17:30 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 Feb 2022 13:47:49 +0000 (14:47 +0100)
commit5ed2a2d4fdb696727b614f881f263851fad8832c
treea1b4fa469acdd9d82fb0c8ddbf88d5e0735d5c99
parenta43e3969513cbc0bc0ae83e7b474f6e335486538
ethdev: fix cast for C++ compatibility

C++ does not allow implicit conversion to/from void*,
so we need an explicit cast to allow the driver SDK header
to be included from C++ code.

Fixes: e489007a411c ("ethdev: add generic create/destroy ethdev APIs")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
lib/ethdev/ethdev_pci.h