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 C4FEEA04B1; Thu, 24 Sep 2020 11:13:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9C91D1DD97; Thu, 24 Sep 2020 11:13:09 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id F27E71DD94 for ; Thu, 24 Sep 2020 11:13:07 +0200 (CEST) IronPort-SDR: HYX84C/3cpd2Tx2TXz9Nxx54W2v8lhzh97HrTQtTn5H5lqMQ2JYG9QBXgJAyruSpB00pCuEhtz i3qNLrWwj8Dw== X-IronPort-AV: E=McAfee;i="6000,8403,9753"; a="222737053" X-IronPort-AV: E=Sophos;i="5.77,297,1596524400"; d="scan'208";a="222737053" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 02:13:06 -0700 IronPort-SDR: oIl/znSL8+Pkz1as0JbFpX7su39nNwBpP+mNalN/0I2goQh7J2T3BmlZwoEKa5T5WkA2tEdsdh o2+9x8j4QNEQ== X-IronPort-AV: E=Sophos;i="5.77,297,1596524400"; d="scan'208";a="455270885" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.45.144]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 24 Sep 2020 02:12:50 -0700 Date: Thu, 24 Sep 2020 10:12:46 +0100 From: Bruce Richardson To: Thomas Monjalon Cc: Stephen Hemminger , Ferruh Yigit , 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 Message-ID: <20200924091246.GA382@bricha3-MOBL.ger.corp.intel.com> References: <20200913220711.3768597-1-thomas@monjalon.net> <7906978.WFKINk0of7@thomas> <20200923150238.01cbf109@hermes.lan> <4950952.GUjYEhNGMI@thomas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4950952.GUjYEhNGMI@thomas> 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 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?