Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp395365yba; Wed, 15 May 2019 03:21:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7gBmy5bY+8SWpuNkaQE8UKIumkbnG6SUAQO4vmwwjl2gO3smUiSsXG+xiClT7McsXtciH X-Received: by 2002:a17:902:b695:: with SMTP id c21mr43774938pls.160.1557915716809; Wed, 15 May 2019 03:21:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557915716; cv=none; d=google.com; s=arc-20160816; b=ru0fChcE6MZw0gc8sr4Ci7uwEcS7ae9hu5UTPKaQpspXWWbLkDAKWJovHpNVtYE2JZ HX484WBGo0dY8LRLvtnYeZJEiDpWDRMZiUYaFsFmockVDfNjixOaAdW1xuNCxsoEY1Rj j0RdCau5ONwODb5ciijov6AlEk+TEDNa/Dr21lsKwvmhkimyF4o50uu1aCDG6aV+l+yz 17MryxxBXE6cOh+vPsZWWLYlJDtlrbWSWjp5cpI8C3h6J76bTmqEcRUuiA1lgUS8dRBf o1zkw6hYpdUVY1GDOulV0nesNIM3vmdsWkEFOY1bXpeBKgWqncDvyTUuYbmc9Q/NiDuC DU3Q== 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=6TTaTbr1ybSbjBMBPhnV6uhCiRgPJ8zmDKm5qaQR4jE=; b=WUZH2T/y+mexzH550qc3YP8xa/LoCQl52V41GftkLKsIWu2nyYUTZJjP2y+EPX5O3C oARmborDggNBmQ5UxNUYfLL82gtZgXfGCchi6ATGJgaZ3Ve63Em6BKxwBJjAhkMu0F6r M5y7Hm3sg85Qoi63d7oYO5ounO6dwH3w8rmAGJZ0PD2xnz7KHhlmHP9ZP+HTMSuJVkpU Pc7wtkCLxq39IY6tuNZARBd9X+OC+5eCQ/p1JdVhB+XX87F40RAyc1Ob9oH578DjfX1Q 5e9RW/IwKqDpCJ6xYr/oV00ewLit+6uVCBf7BF1ylR1CvDRxCUkk+s/n+igWVrOluKbR PxLA== 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 v4si1388161plp.404.2019.05.15.03.21.41; Wed, 15 May 2019 03:21:56 -0700 (PDT) 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 S1726515AbfEOKTU (ORCPT + 99 others); Wed, 15 May 2019 06:19:20 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:12170 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbfEOKTT (ORCPT ); Wed, 15 May 2019 06:19:19 -0400 X-IronPort-AV: E=Sophos;i="5.60,472,1549926000"; d="scan'208";a="383262488" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 May 2019 12:19:17 +0200 Date: Wed, 15 May 2019 12:19:13 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: Coccinelle , LKML , Cheng Shengyu , Gilles Muller , Ma Jiang , Masahiro Yamada , Michal Marek , Nicolas Palix , Wen Yang , Yi Wang Subject: Re: [3/3] Coccinelle: pci_free_consistent: Extend when constraints for two SmPL ellipses In-Reply-To: Message-ID: References: <201905151043340243098@zte.com.cn> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-210433361-1557915553=:3231" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8323329-210433361-1557915553=:3231 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Wed, 15 May 2019, Markus Elfring wrote: > >>> On the other hand, I do care about causing false negatives. > >> > >> Do you find the missing warning after the addition of such an exclusion > >> specification interesting? > > > > I already suggested how to improve the code. > > I find that the idea “e2->fld” needs further clarification. > Such a SmPL specification will be resolved also to an expression, > won't it? Saving in a local variable doesn't impact the need to free the object. A field is the most obvious case where the object may not need freeing. But there are many expressions that e2->fld will not match. julia --8323329-210433361-1557915553=:3231--