On Sun,  8 Jan 2017 12:11:31 +0800
Qiming Yang <qiming.y...@intel.com> wrote:

>  void
> +rte_eth_dev_fw_version_get(uint8_t port_id, char *fw_version, int fw_length)
> +{
> +     struct rte_eth_dev *dev;
> +
> +     RTE_ETH_VALID_PORTID_OR_RET(port_id);
> +     dev = &rte_eth_devices[port_id];
> +
> +     RTE_FUNC_PTR_OR_RET(*dev->dev_ops->fw_version_get);
> +     (*dev->dev_ops->fw_version_get)(dev, fw_version, fw_length);
> +}

Maybe dev argument to fw_version_get should be:
   const struct rte_eth_dev *dev

Reply via email to