[dpdk-dev] [PATCH v3 6/8] raw/ioat: add configure, start and stop functions
Pattan, Reshma
reshma.pattan at intel.com
Thu Jun 27 18:37:33 CEST 2019
> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Bruce Richardson
> Sent: Thursday, June 27, 2019 11:41 AM
> To: dev at dpdk.org
> Cc: thomas at monjalon.net; jerinj at marvell.com; Richardson, Bruce
> <bruce.richardson at intel.com>
> Subject: [dpdk-dev] [PATCH v3 6/8] raw/ioat: add configure, start and stop
> functions
<snip>
> +int ioat_rawdev_test(uint16_t dev_id);
> +
> static int
> ioat_rawdev_create(const char *name, struct rte_pci_device *dev) {
> static const struct rte_rawdev_ops ioat_rawdev_ops = {
> + .dev_configure = ioat_dev_configure,
> + .dev_start = ioat_dev_start,
> + .dev_stop = ioat_dev_stop,
> .dev_info_get = ioat_dev_info_get,
> + .dev_selftest = ioat_rawdev_test,
Build fail for ./devtools/test-build.sh x86_64-native-linux-gcc+next+shared
/drivers/raw/ioat/ioat_rawdev.c: In function 'ioat_rawdev_create':
drivers/raw/ioat/ioat_rawdev.c:163:20: error: initialization of 'int (*)(void)' from incompatible pointer type 'int (*)(uint16_t)' {aka 'int (*)(short unsigned int)'} [-Werror=incompatible-pointer-types]
163 | .dev_selftest = ioat_rawdev_test,
Thanks,
Reshma
More information about the dev
mailing list