Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3141738ybx; Sun, 3 Nov 2019 11:41:32 -0800 (PST) X-Google-Smtp-Source: APXvYqwZMXuzj/x/t/4rQSbHlNZRkhmQo5gKUxtLm3Epl68IlDbXMSVz0SrXbzpdAanrHWWud2K6 X-Received: by 2002:a50:becf:: with SMTP id e15mr9241764edk.135.1572810092799; Sun, 03 Nov 2019 11:41:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572810092; cv=none; d=google.com; s=arc-20160816; b=ToeWcmK/MyLKF2Q71RwtLu/nMWzVfp7YraLMqAnGirjelfocB1aa8YxqTFB2SjNBQU OOzePNhkI4NW5Vxgpbf75PiY7KzeSb6vhy7DLx9hCohWBriyX1GnzarvAUnhx5feh5s6 iR7IW69mUcVwA3GujYcdY7rmSvZO79sIs82v+U8TfqTv07QYvlbsWmZlzNZdjLyBU8E3 stlxyD+bD/MCrdyOL357a4RRlGu2BXg+gDgYwq+Ex3SHBfhBh6atTRb/uiDrKyIfDzEA TVGHDKb+lLEmb0S+zMpzn5hjPXA58kLJmXWrbi+vTc0MQXbiEjeGaQK/V2rQiz1mzH1Y vO8A== 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=tEIYlAceTjzTnVrv5EeL0tXzIjF4KRhWxk9cX2Fr90Q=; b=zoqN7IQVtQoI75GoHYpWAYgKsxJF/IHvncW7tcBty9QFx9hmGziBSrSZ3nqsQPWXt2 hhK0No9hDfCkwRO7ib9b33ao+UoN0iuvZq1/be8NuSxGjT90DkRtuhs2O6VrwlUSe5SE TQeucedCW1dBZQItOs1moEbO9iht2IOb6xOvrWCO6ghuMlmxxUQ+cv9tfmUAW3b6M/X3 /zv0bOGxxqIl5I47uCQOwIEpFv0d3vUCPYAgC/IoQCTVXtDeLFL1YY9UdLioCuzezpBM FLYhZSqiWM94v1RuE7V/yfdtl+vXHp4H5LmpCiOl4Gq1vddpEtuSsiGPXmVB+HcfhMhM yz/g== 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 e45si5977729edb.177.2019.11.03.11.41.08; Sun, 03 Nov 2019 11:41:32 -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 S1728114AbfKCTj3 (ORCPT + 99 others); Sun, 3 Nov 2019 14:39:29 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:18136 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727913AbfKCTj3 (ORCPT ); Sun, 3 Nov 2019 14:39:29 -0500 X-IronPort-AV: E=Sophos;i="5.68,264,1569276000"; d="scan'208";a="410075222" Received: from abo-45-121-68.mrs.modulonet.fr (HELO hadrien) ([85.68.121.45]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Nov 2019 20:39:26 +0100 Date: Sun, 3 Nov 2019 20:39:26 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Markus Elfring cc: cocci@systeme.lip6.fr, kernel-janitors@vger.kernel.org, Christoph Hellwig , Enrico Weigelt , Gilles Muller , Greg Kroah-Hartman , Julia Lawall , Kate Stewart , Luis Chamberlain , Masahiro Yamada , Michal Marek , Nicolas Palix , Thomas Gleixner , LKML Subject: Re: [PATCH] Coccinelle: zalloc-simple: Adjust a message construction In-Reply-To: <042136cf-4e58-02bd-4d49-5d5055f22c65@web.de> Message-ID: References: <042136cf-4e58-02bd-4d49-5d5055f22c65@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 Sun, 3 Nov 2019, Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 3 Nov 2019 20:00:30 +0100 > > * Simplify a message construction in a Python script rule > for the semantic patch language. The benefit is what? julia > > * Delete also a duplicate space character then. > > Fixes: dfd32cad146e3624970eee9329e99d2c6ef751b3 ("dma-mapping: remove dma_zalloc_coherent()") > Signed-off-by: Markus Elfring > --- > scripts/coccinelle/api/alloc/zalloc-simple.cocci | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/scripts/coccinelle/api/alloc/zalloc-simple.cocci b/scripts/coccinelle/api/alloc/zalloc-simple.cocci > index 26cda3f48f01..c14eae1f3010 100644 > --- a/scripts/coccinelle/api/alloc/zalloc-simple.cocci > +++ b/scripts/coccinelle/api/alloc/zalloc-simple.cocci > @@ -217,8 +217,10 @@ p << r2.p; > x << r2.x; > @@ > > -msg="WARNING: dma_alloc_coherent use in %s already zeroes out memory, so memset is not needed" % (x) > -coccilib.report.print_report(p[0], msg) > +coccilib.report.print_report(p[0], > + "WARNING: dma_alloc_coherent use in " > + + x > + + " already zeroes out memory. Thus memset is not needed.") > > //----------------------------------------------------------------- > @r3 depends on org || report@ > -- > 2.23.0 > >