Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp814755imj; Fri, 15 Feb 2019 07:16:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IYW5Cxkz5m1+1IZQ2iIux4yepRtN2zo0CROrmFNTpVBU63lqAw1oJ+YrtR68kodUBsremAP X-Received: by 2002:a63:1d1d:: with SMTP id d29mr5893499pgd.49.1550243780612; Fri, 15 Feb 2019 07:16:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550243780; cv=none; d=google.com; s=arc-20160816; b=tyummxG6MOPjVnlIZbxRb9Ky01qK3PPhJq1pbwU3K7JIPm8sY6DvcvbGUwJZ8oqwjo 7WgdKL+ILdKLw9qnKo9z98mFIO8mjgy0t/X7gBUUEUZzBy1q0Z/4cdvw5WshjcXyx/1S CMEk1J7i6OlzQ2hV0Qx1EIBt0VN/XfGQql1Rz/70vllCiqWCh6tM7kwETnNyjsWMcVqW /sxCWEQ6ixnBUgbrf5bBuCUZqo7C+rLSGo8kEzoBBMZ5DneA/iPS4pTJMl0qww2WlT3S l7opDau4lo+HSHZ2JYe0a7L+mw7jXZ034v5W2BtqabJ76TjoU/CQEqmZFXiYGwKYelhm vbbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=jdFmk23LSsoIVxQlqM27q9Xxuw51GcyeRJex0gXqTBM=; b=tOaP0dgmVfDcYIPELUXkg3iJrNj/26obgTXu2uZepqHJ0Wgc9gVAoL0+hgcZHDqMnT 80b4lmY5MiXGKCKMJMEGNYCapqab/Z4NkphZCC1wCMfD5pbGatbcyj+unZAxxeQlyZDe kDUlWJtxaDSm3MGJaol4WFsqUBgZcSlXbmcDZ5O2BCgAA4tk+i310EeF5ERbY8l50T1Q MeQpDKZD8lQCeOrndS8xfyUjCiO288tgIwef0pKi7ubVf6Ul4xItLPbe4LvAO+DKVNUZ Jf2k3zi1Qb9RTTenOZgDhgAmWLrYpc0/RRGl0cx1MS4h2sGBZbUb8tJ0bTAdgyEn7RVM 1q5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j127si1333384pgc.444.2019.02.15.07.16.03; Fri, 15 Feb 2019 07:16:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729458AbfBOGZe (ORCPT + 99 others); Fri, 15 Feb 2019 01:25:34 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:53448 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbfBOGZe (ORCPT ); Fri, 15 Feb 2019 01:25:34 -0500 X-IronPort-AV: E=Sophos;i="5.58,371,1544482800"; d="scan'208";a="369511575" Received: from abo-58-107-68.mrs.modulonet.fr (HELO hadrien) ([85.68.107.58]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Feb 2019 07:25:31 +0100 Date: Fri, 15 Feb 2019 07:25:31 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: wen.yang99@zte.com.cn cc: Markus.Elfring@web.de, Gilles Muller , nicolas.palix@imag.fr, michal.lkml@markovi.net, wang.yi59@zte.com.cn, yamada.masahiro@socionext.com, yellowriver2010@hotmail.com, cheng.shengyu@zte.com.cn, cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH v4] coccinelle: semantic patch for missing put_device() In-Reply-To: <201902151422261425412@zte.com.cn> Message-ID: References: 1550126293-27839-1-git-send-email-wen.yang99@zte.com.cn,7c4e26a4-32b9-e1f8-beeb-bfa4fc9e6128@web.de <201902151422261425412@zte.com.cn> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1724339360-1550211931=:2896" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1724339360-1550211931=:2896 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT On Fri, 15 Feb 2019, wen.yang99@zte.com.cn wrote: > > How do you think about to exchange the word “patch” by “code search” > > at affected places (and in the subject) then? > > Thanks, we‘ll fix it. > > >> In a function, for variables returned by calling of_find_device_by_node(), > > Do variables really get returned? > > The provided pointer should usually be stored somewhere. > > Thank you very much, we will consider this situation and submit a next version to fix it. I don't know what Markus is talking about here, so I'm not sure that a change is needed. > > > * Would you like to pick any software development challenges up around > > inter-procedural data flow (or even escape) analysis for the shown use case? > > We are very interested in doing this work, but currently coccinelle may > not support data flow analysis, and we hope to contribute a little. > > > Would you like to add a SPDX identifier? > > OK, we will add a SPDX identifierfix soon. > > >> + "ERROR: missing put_device;" > >Will change confidence considerations result in another fine-tuning for this message? > > Thank you, we will change "ERROR" to "WARNING". I think ERROR is fine. If it is a real positive than it is a real problem. Warning is for things that look ugly, but don't have any impact on the execution. julia > >> + + " call of_find_device_by_node on line " > >I find that such a split string literal can be unwanted. > > Thank you, we will fix it soon. > > >> + + " and return without releasing.") > >Possible rewording? > >+ + " but without a corresponding object release within this function.") > > Thanks, we will modify it according to your suggestion. > > Regards, > Wen --8323329-1724339360-1550211931=:2896--