Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1906497ybl; Thu, 9 Jan 2020 03:43:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyd3QrvONfZEBBe2klQVk4MwsQQ34t/64wfrK6pYy1bUHXkfhVodT7VnC9MvfL64cI55m5K X-Received: by 2002:a9d:6c99:: with SMTP id c25mr7830871otr.178.1578570238336; Thu, 09 Jan 2020 03:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578570238; cv=none; d=google.com; s=arc-20160816; b=Pa6cx4LnQzIeGGG2CPG6zIjOHKT49clhZPsz2n4MYOG845vpBdRfG04/RB2xLCIDxq YhSH6p5WFuZmnbciUnBjFVa0707LHK75/qSChX0FdDS5YQ0bckSDWBnwiuAQz/hgZh/j U8CvsRf7upVFdRBiFzkoMGBMRyt0R5rE5DidiRBmgqeICv3R6aYT7xKJAh1M9itAsoak Pi4YuEycr7fZqahC1N00EFDhFQx0RPQyHz2GhcGnUDesz2IxBucAFKPeGsaZLrW3MBdj SdkY7M2fExTkG72wU+AY9sE1rSmLZQSXVsnttgFa3VH5cOYD81PonN4SsqNMCHZrKOL6 zYbg== 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=8CmUVS8oZfftBWXHAGplE2pZauDvVW2ZblwQVRodkxQ=; b=kcrwuZfTMX7U93yj1dW5vGE3gOCkNX/gK5YjrYwCdTlm1oRDH2UtkKfEE+yZYw9bI8 1NUlVcjtatjJyFS4SDipXOBXxTnnQYo6yHKy+QKh7C4uYGqkGY5cyOFCuiOMfmrIX1pk hdC3mxut7Zt2FXA0SZ2d+2MIoVQEDWiPe8UfAEhF015+0AKnonoe4w13PThJNWOPCU3Z 4/GmxGsjlWLEkXAD3GJ9ZtpO9az9ifITa9/QzJhwOjVr7jEi2jDP7lnCvbU58/D/2Qn6 EgQkJgy9x+KD1z0q3Ma7SM6G5eHJx4cSwllf34WznXtHKSJVxYM38P57znP+Ty9GsORc empg== 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 z4si3333850oix.48.2020.01.09.03.43.45; Thu, 09 Jan 2020 03:43:58 -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 S1729407AbgAIKlf (ORCPT + 99 others); Thu, 9 Jan 2020 05:41:35 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:35880 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729159AbgAIKle (ORCPT ); Thu, 9 Jan 2020 05:41:34 -0500 X-IronPort-AV: E=Sophos;i="5.69,413,1571695200"; d="scan'208";a="430595360" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 11:41:27 +0100 Date: Thu, 9 Jan 2020 11:41:27 +0100 (CET) From: Julia Lawall X-X-Sender: julia@hadrien To: Markus Elfring cc: Wen Yang , cocci@systeme.lip6.fr, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Gilles Muller , Greg Kroah-Hartman , Masahiro Yamada , =?ISO-8859-15?Q?Matthias_M=E4nnich?= , Michal Marek , Nicolas Palix , Thomas Gleixner Subject: Re: [PATCH v2] coccinelle: semantic patch to check for inappropriate do_div() calls In-Reply-To: <9a2b7d00-442e-0c1b-73cc-aed2bbecd13a@web.de> Message-ID: References: <20200107170240.47207-1-wenyang@linux.alibaba.com> <9a2b7d00-442e-0c1b-73cc-aed2bbecd13a@web.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Jan 2020, Markus Elfring wrote: > > +@script:python depends on org@ > > +p << r.p; > > +ul << r.ul; > > I interpret this variable assignment in the way that it will work only > if the corresponding branch of the SmPL disjunction was actually matched > by the referenced SmPL rule. > Thus I suggest now to split the source code search pattern into > four separate rules. Why? julia