From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 463C4A04B1; Thu, 24 Sep 2020 14:09:24 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 236051DD91; Thu, 24 Sep 2020 14:09:24 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 3C3731DD68 for ; Thu, 24 Sep 2020 14:09:22 +0200 (CEST) IronPort-SDR: 7tKi40eS4QqdF93f8zZsSRy5JRl/mFdpVw8hSwq3ihTziFTQEecRjcFmTJbjNDOeA6ueZhvrfC Ihk3lYP9CfeA== X-IronPort-AV: E=McAfee;i="6000,8403,9753"; a="245974569" X-IronPort-AV: E=Sophos;i="5.77,297,1596524400"; d="scan'208";a="245974569" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 05:09:21 -0700 IronPort-SDR: VHmhg11z2wCJjHJ++SlTOpBU18puj/OQXniESN53VfkHfF9hPSoFiMP/FdVl13uw12wLDeYwsJ s0TKqcGi20og== X-IronPort-AV: E=Sophos;i="5.77,297,1596524400"; d="scan'208";a="512133620" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.251.85.112]) ([10.251.85.112]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 05:09:08 -0700 To: Thomas Monjalon , Bruce Richardson Cc: Stephen Hemminger , dev@dpdk.org, arybchenko@solarflare.com, "John W. Linville" , Ciara Loftus , Qi Zhang , Shepard Siegel , Ed Czeck , John Miller , Igor Russkikh , Pavel Belous , Steven Webster , Matt Peters , Somalapuram Amaranath , Rasesh Mody , Shahed Shaikh , Ajit Khaparde , Somnath Kotur , Chas Williams , "Wei Hu (Xavier)" , Rahul Lakkireddy , Hemant Agrawal , Sachin Saxena , Wei Zhao , Jeff Guo , Marcin Wojtas , Michal Krawczyk , Guy Tzalik , Evgeny Schemeilin , Igor Chauskin , Gagandeep Singh , John Daley , Hyong Youb Kim , Gaetan Rivet , Xiao Wang , Ziyang Xuan , Xiaoyun Wang , Guoyang Zhou , "Min Hu (Connor)" , Yisen Zhuang , Beilei Xing , Jingjing Wu , Qiming Yang , Alfredo Cardigliano , Rosen Xu , Shijith Thotton , Srisivasubramanian Srinivasan , Jakub Grajciar , Matan Azrad , Shahaf Shuler , Viacheslav Ovsiienko , Zyta Szpak , Liron Himi , Stephen Hemminger , "K. Y. Srinivasan" , Haiyang Zhang , Long Li , Martin Spinler , Heinrich Kuhn , Harman Kalra , Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K , Akhil Goyal , Jasvinder Singh , Cristian Dumitrescu , Keith Wiles , Maciej Czekaj , Maxime Coquelin , Chenbo Xia , Zhihong Wang , Yong Wang References: <20200913220711.3768597-1-thomas@monjalon.net> <4950952.GUjYEhNGMI@thomas> <20200924091246.GA382@bricha3-MOBL.ger.corp.intel.com> <6624369.qqrmt2J4GO@thomas> From: Ferruh Yigit Message-ID: <9daaa1c0-e350-9415-3ce5-83fb57e52dbf@intel.com> Date: Thu, 24 Sep 2020 13:09:07 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: <6624369.qqrmt2J4GO@thomas> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [dpdk-dev] [PATCH 02/20] ethdev: allow drivers to return error on close X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 9/24/2020 11:07 AM, Thomas Monjalon wrote: > 24/09/2020 11:12, Bruce Richardson: >> On Thu, Sep 24, 2020 at 12:35:58AM +0200, Thomas Monjalon wrote: >>> 24/09/2020 00:02, Stephen Hemminger: >>>> On Wed, 23 Sep 2020 23:52:07 +0200 >>>> Thomas Monjalon wrote: >>>> >>>>>>>>> Yes it is a step in the right direction. >>>>>>>>> Changing the API means adding some error checks in every apps. >>>>>>>>> The reason for not doing is that I did not commit for this task, >>>>>>>>> and I am not the author of the deprecation notice. >>>>>>>>> We can discuss how to follow up once this series is merged. >>>>>>>> >>>>>>>> Not sure what application can really do if dev_close fails other than call rte_exit()? >>>>>>> >>>>>>> At least, it can show a message to the user. >>>>>> >>>>>> Agree, but no code checks return from close() system call now. >>>>>> At least testpmd should be updated; the examples are fine. >>>>> >>>>> How do you explicitly silence the static code analyzers? >>>>> Do you recommend adding (void) in front of the call to close()? >>>> >>>> Coverity usually gives something like, "return value of foo() is not checked >>>> but checked 10 other places" >>> >>> Yes so it should be silenced with (void) or ret = >>> >> Does coverity still give the warning if the majority of cases don't >> actually check the return value? > > No idea > As far as I know it does, so just assigning return value to a variable and not checking it at all will generate warnings.