[dpdk-dev] [PATCH v3 17/54] ethdev: change device info get callback to return int
Aaron Conole
aconole at redhat.com
Fri Sep 6 16:07:00 CEST 2019
Andrew Rybchenko <arybchenko at solarflare.com> writes:
> 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
Ahh okay.
I wonder if it's possible to get this patch on mainline?
Strange that it went through -next since it's really a fix.
More information about the dev
mailing list