[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bf584d22-8aca-3867-5e3a-489d62a61929@kernel.org>
Date: Thu, 3 Nov 2022 13:03:41 +0100
From: Jiri Slaby <jirislaby@...nel.org>
To: Jakub Kicinski <kuba@...nel.org>
Cc: jesse.brandeburg@...el.com, linux-kernel@...r.kernel.org,
Martin Liska <mliska@...e.cz>,
Tony Nguyen <anthony.l.nguyen@...el.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Paolo Abeni <pabeni@...hat.com>,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org
Subject: Re: [PATCH] i40e (gcc13): synchronize allocate/free functions return
type & values
On 03. 11. 22, 4:41, Jakub Kicinski wrote:
> On Mon, 31 Oct 2022 12:44:56 +0100 Jiri Slaby (SUSE) wrote:
>> I.e. the type of their return value in the definition is int, while the
>> declaration spell enum i40e_status. Synchronize the definitions to the
>> latter.
>>
>> And make sure proper values are returned. I.e. I40E_SUCCESS and not 0,
>> I40E_ERR_NO_MEMORY and not -ENOMEM.
>
> Let's go the opposite way, towards using standard errno.
This is propagated several layers up throughout the whole i40e driver.
It would be a mass change which I'd rather leave up to the driver
maintainers -- I don't even have the HW to test.
thanks,
--
js
Powered by blists - more mailing lists