From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F785C4332F for ; Thu, 3 Nov 2022 03:41:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2E0E581E63; Thu, 3 Nov 2022 03:41:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 2E0E581E63 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1667446879; bh=oX2KNKizz5JJg+wlknGEHUkGfjhY82rYVvNHNePId4s=; h=Date:From:To:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=cEloerb2ISRhwxHQAtXdNTx3ty6cAiulmWv26z509UHSv6yDu4p8tJdBtG8LCIFu0 Ov2OEPmViCUZjF0xxMqupJHkzdB8Iqs8MdwSCNjmTuL2EFmd5nU/IqHhlpKjN5OxHe tSWdZA3rEQmS3IyOPoM9h4WVtvZKQsKrIw0Rn+6G2ON2+WvHVF0VEpey9xEewSuHPw I4Zcd/Ui3lk4YfRzdoegwr9goCXeNNqIlQE47TgQLvD42EBGNtrpych1oHOKWdrXkz +cjvOcPAa/w8/J0y1twd4IajogPKebwkeIPuQqcCnEswjnJ7tobrNQUs/YlW1Ckw4t 7MznTCo4IjuGw== X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bOhQDzRi2dXz; Thu, 3 Nov 2022 03:41:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 3F05681EA4; Thu, 3 Nov 2022 03:41:18 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 3F05681EA4 Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 26C651BF390 for ; Thu, 3 Nov 2022 03:41:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id ECFBD60E4C for ; Thu, 3 Nov 2022 03:41:15 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org ECFBD60E4C X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ivOThjBoTbD0 for ; Thu, 3 Nov 2022 03:41:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 3294A60BD0 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by smtp3.osuosl.org (Postfix) with ESMTPS id 3294A60BD0 for ; Thu, 3 Nov 2022 03:41:15 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D41CDB82611; Thu, 3 Nov 2022 03:41:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A80CC433C1; Thu, 3 Nov 2022 03:41:11 +0000 (UTC) Date: Wed, 2 Nov 2022 20:41:10 -0700 From: Jakub Kicinski To: "Jiri Slaby (SUSE)" Message-ID: <20221102204110.26a6f021@kernel.org> In-Reply-To: <20221031114456.10482-1-jirislaby@kernel.org> References: <20221031114456.10482-1-jirislaby@kernel.org> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667446871; bh=nsTfwD5gRN1YSFyu2J0cf3RCKnhDy5xYPwQ07MtcAxk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=cWJjytBlmNO3TZmOfdeRYkUNCo7n1TIOowx5NVLPqQEc+Fd0bEY7odMeMRqudSK/7 gtozysYMAAB6/pzeFPhXkC+P0syy4/QGH+H7rNB7VbW6Cf1hjY/YEl+Xtqrark1Is1 7cMVgwV6z7H1Dp1LBryzU5S6e09wWNRSbt8+xnuD6uq5gK8YzJK3aCEEHOhWNMEKhA jHextKlJmd0pKVio5J+giizZrIPV1/HN89KRAh3cGNuoMyORjy6vKMnYa+vt2Ml+2T sfkFVjFcGIV9g1ZdQTD0PuwTE36Z/Ls5N2TAmTfKWTstue4qLBS+W3toZ2nO4ikLCY LXUmwlcXrxnPA== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=cWJjytBl Subject: Re: [Intel-wired-lan] [PATCH] i40e (gcc13): synchronize allocate/free functions return type & values X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Eric Dumazet , intel-wired-lan@lists.osuosl.org, Paolo Abeni , Martin Liska , "David S. Miller" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" 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. _______________________________________________ Intel-wired-lan mailing list Intel-wired-lan@osuosl.org https://lists.osuosl.org/mailman/listinfo/intel-wired-lan