Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2080770ybi; Mon, 1 Jul 2019 05:55:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqySqczC+LgHbFseLN9YTRCmFXz3NJ3USP98l+hg3ZytIbp7g0vub+cNnPkPZQcLlS7KcYUi X-Received: by 2002:a17:902:ff09:: with SMTP id f9mr2095540plj.77.1561985702823; Mon, 01 Jul 2019 05:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561985702; cv=none; d=google.com; s=arc-20160816; b=PGFTYGNVaIVuygog68RYNFn74vVYhTM63crIgngEB1Y1AtOCMnsaJpO/xqWTwKdBEI AFtp1YEGgJhOw42lBuIPc0F/HnS96xhoOK37uSHEOYjdvuqLRpGX5dbJldce1IZs7W23 YnIJaviXkeCH/kmsEOMTOi4ahsKjKPdRv+7I+jFfUPVBxyUxLDI5n4rfkKwlR96hxsCa BJaWtZhZo5gXqAh/rO6XYS4vMwTP7aWZK2nyIQg97RLbuaGaiYcgmEu9vb/6cfFSMt+S Lect8r1wcT04OjAuJLMSg9x0HXdJOkJ8dX07VlsF4Vw3hG+DhDIpLPkC3aQOFUiXJCpL KP9Q== 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=6LkO6DrEUmSV/QzovggR6HSvnRKnbt70daBIghuQOkY=; b=aglIle8lvRBXbTGa/dp9HLK4t4iATbicozSDALFA1nV00k0q8QGm8BttoYv1z0geun fx14Z2uimLHc3fiGt1Sv0mXkrnEP/u6qIX13CgQ9/mbvWWS6ykMJpI9jjaYnVGwi+DJh T1mbitux3qdJ0tvpY6FE7r8wsCVCKmaXQfV3glypmK8OmDQCv+z4vDkEoUXqzPiTzRbX 2bOC+6YAjjtuPKLOIkm9zew/9dV/AOV1wl6B5MCX03mxTFmTbw/l2oksY/tGhnWbsT9H bL82E5etVBl8VKG6GKOLrXJMPg/mk0unB/X+xj5Sr4/9yTk1UB0b0if9jFC9Kx/2FlY9 cVcg== 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 m11si10290329pjr.100.2019.07.01.05.54.47; Mon, 01 Jul 2019 05:55:02 -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 S1728099AbfGAMrf (ORCPT + 99 others); Mon, 1 Jul 2019 08:47:35 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:17047 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727479AbfGAMre (ORCPT ); Mon, 1 Jul 2019 08:47:34 -0400 X-IronPort-AV: E=Sophos;i="5.63,439,1557180000"; d="scan'208";a="312023377" Received: from vaio-julia.rsr.lip6.fr ([132.227.76.33]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Jul 2019 14:47:31 +0200 Date: Mon, 1 Jul 2019 14:47:25 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: "Enrico Weigelt, metux IT consult" cc: Markus Elfring , kernel-janitors@vger.kernel.org, Gilles Muller , Masahiro Yamada , Michal Marek , Nicolas Palix , Coccinelle , LKML , Ding Xiang Subject: Re: [PATCH v2] Coccinelle: Add a SmPL script for the reconsideration of redundant dev_err() calls In-Reply-To: <0b48a5c5-0814-6414-39ba-beb1b8b5253a@metux.net> Message-ID: References: <05d85182-7ec3-8fc1-4bcd-fd2528de3a40@web.de> <2744a3fc-9e67-8113-1dd9-43669e06386a@web.de> <0b48a5c5-0814-6414-39ba-beb1b8b5253a@metux.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) 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 Mon, 1 Jul 2019, Enrico Weigelt, metux IT consult wrote: > On 01.07.19 10:10, Markus Elfring wrote: > > Hi folks, > > > +@script:python to_do depends on org@ > > +p << or.p; > > +@@ > > +coccilib.org.print_todo(p[0], > > + "WARNING: An error message is probably not needed here because the devm_ioremap_resource() function contains appropriate error reporting.") > > + > > +@script:python reporting depends on report@ > > +p << or.p; > > +@@ > > +coccilib.report.print_report(p[0], > > + "WARNING: An error message is probably not needed here because the devm_ioremap_resource() function contains appropriate error reporting.") > > -- > > By the way: do we have any mechanism for explicitly suppressing > individual warnings (some kind of annotation), when the maintainer is > sure that some particular case is a false-positive ? > (I'm thinking of something similar to certain #praga directives for > explicitly ignoring invididual warnings in specific lines of code) > > I believe such a feature, so we don't get spammed with the same false > positives again and again. 0-day takes care of it on its own. Probably other such bots do the same. I'm not sure that it is a good idea to clutter the kernel code with such annotations, especially since the whole point of Ccocinelle is that the rules are easy to change. We also made a tool named Herodotos for collecting identical reports over time, but it seems to be not so easy to use. julia