[dpdk-dev] [PATCH v3 17/54] ethdev: change device info get callback to return int

Andrew Rybchenko arybchenko at solarflare.com
Fri Sep 6 15:33:09 CEST 2019


On 9/6/19 4:29 PM, Aaron Conole wrote:
> Andrew Rybchenko <arybchenko at solarflare.com> writes:
>
>> From: Ivan Ilchenko <Ivan.Ilchenko at oktetlabs.ru>
>>
>> Change eth_dev_infos_get_t return value from void to int.
>> Make eth_dev_infos_get_t implementations across all drivers to return
>> negative errno values if case of error conditions.
>>
>> Signed-off-by: Ivan Ilchenko <Ivan.Ilchenko at oktetlabs.ru>
>> Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
>> ---
> This patch needs a respin.
>
>     ../drivers/net/atlantic/atl_ethdev.c
>     ../drivers/net/atlantic/atl_ethdev.c:123:12: error: conflicting types for ‘atl_dev_info_get’
>      static int atl_dev_info_get(struct rte_eth_dev *dev,
>                 ^
>     ../drivers/net/atlantic/atl_ethdev.c:48:13: note: previous declaration of ‘atl_dev_info_get’ was here
>      static void atl_dev_info_get(struct rte_eth_dev *dev,
>
> Looks like the function prototype appears twice in the .c file - I
> suggest removing one of them.

It is already done:
http://git.dpdk.org/next/dpdk-next-net/commit/?id=2c9202612408baf748609d3ee4e49cc183e0366c



More information about the dev mailing list