Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp719384lqb; Wed, 17 Apr 2024 08:52:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXs4a+GNl9Xx04az/H2Sb7E/pstxmSkjC0mBAUy4Lbup6QzpZIf6kdhC7RUidWQ+STFiVgpPCOyGGByDLF/R+NOrkBgNWSYcuO5KkG0PQ== X-Google-Smtp-Source: AGHT+IFhMFjRGVmTGMAotSQMm4hvApcusjcGwyqU12jhuuJ1vaOWWEWcHf0Tnwwx3qigY5vu9MZu X-Received: by 2002:a17:90b:388b:b0:2a2:6a2d:8551 with SMTP id mu11-20020a17090b388b00b002a26a2d8551mr14832192pjb.35.1713369157624; Wed, 17 Apr 2024 08:52:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713369157; cv=pass; d=google.com; s=arc-20160816; b=VcAvgIMYsg/HlOALyVqmcayIeV1NDkeIz5PzmQRK3DzyKEQZfDua9TX/2KfSQOBc+e 7u6afBcQWmBwOIn7UrtS7riDBTt1x+sML5YJVz5W5fE2QVd8B/MfpHNc7eJqtjVgO6Zz ZDLJyn8O+4B0NE9lhNcA+aIYxgyMBYn70/wYRkGTaz8dGenb4nWWO1l+DcagCkPUYr/Q t1v0Drq50sTLnFEh+rhRb3aDWv39LsMeSylVLyo2k3X31gKUYMOC3hZfu/Ln5hTlAQ3v xPLy2ciPAu8ZDt3konHkydIa6IGJcN0tVsvF/iKCD40Cd/CG1Dxm5BA2VdxpaUXM4UYj KHpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7SZiQzt1xMqxKAaDUbzorGLkBJSZxz7Tq0Mn8ZjZpgQ=; fh=aF4LI5g5pDyfgazvad6eepVXNwW8WoBOv1TIMJ4+hb0=; b=RRBxqPw5mYSRzCZqeKXG18j7IOne68mKgb6MwOr1Nnv0VzkcLlczkPZI3WZxBCfIWh 6soNX1PDd6ym7NWHCFIJXvms01QlSVAVO6e9pzBigQ8WDh9nCzBpgVrMFZyBC+ZzLq+C YV4Ij7Zrpm6b/ryvBL9p2DsTPHio+prouQwMfTzsqm9Im6Se+g/OrtKwBBYfO1HYkIVU Z/XlA1jyhJppXBkphVaEa120fQJ13bqv5qg+deQ1GgQr1hxPsD4pWCnAUVDW6t0yEDDf OHRmgDZMP7JtR/96ilvPagvOk+6YZlIW8p6WRHMRW4iHqR35LzGst79jvafnPch9uHkp 00ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JZgtL9Xg; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-148850-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148850-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w7-20020a17090a5e0700b002a27693399dsi1428030pjf.102.2024.04.17.08.52.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 08:52:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148850-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JZgtL9Xg; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-148850-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148850-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 37ECA28228C for ; Wed, 17 Apr 2024 15:51:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F3231487CE; Wed, 17 Apr 2024 15:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="JZgtL9Xg" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2D1A1474A1; Wed, 17 Apr 2024 15:51:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369087; cv=none; b=bT1t7FseD3UZcVd+MvGnjrLp48d2Xv1wW31YcZ8v87bkHnWlUvHDItxreephrgVsbVLoNNibsYIYTxqbdYl75Edw6N08PTM2tOuiRr9Que7F7KiJr3/0MnCYtUR/Quok8nh/avYuZsBx3O3F/Na9rr4dirCNszjm6Oc+9fZm2XA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369087; c=relaxed/simple; bh=edMEOEGuTlM3PAdEmFEfjl2jYJNl85TN3kgL+Uyi5vI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Pne6b7UcdYWSaHG/QQ2XUqA2QQ03VAkcEASablsp7iZr7xr+qotKVydP1O4V6+2JTZCIxZnhjXdI5qzR7PbGa505lARbEQ38S6EWI29U55UtrCL7Hw5O4tAq4PlosL5baJD8CEKUAVV9q+gJ/Dt/k3DlgeCcGGTk4uzkVkTsDcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=JZgtL9Xg; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (85-76-15-230-nat.elisa-mobile.fi [85.76.15.230]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DA4CB1815; Wed, 17 Apr 2024 17:50:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1713369034; bh=edMEOEGuTlM3PAdEmFEfjl2jYJNl85TN3kgL+Uyi5vI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JZgtL9XgcBbTfPXnFAZgCDPtfvA9dKRTMOKsCQP54tvG+vgRvyoUVmKyvHqZUW8+9 LNXSsOnYHGLTgFNjFxrIi0HOt16nKFhbM2X/j3JnMIJzK5z7DcFFop4CUa4dg8LTzE vNZ8xAy3r+pQq+qAKQ6gJZoeSd1hXqjf9ytYbmBY= Date: Wed, 17 Apr 2024 18:51:12 +0300 From: Laurent Pinchart To: Dan Carpenter Cc: Ricardo Ribalda , Martin Tuma , Mauro Carvalho Chehab , Hans Verkuil , Hugues Fruchet , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Paul Kocialkowski , Greg Kroah-Hartman , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil , Sergey Kozlov , Abylay Ospan , Ezequiel Garcia , Dmitry Osipenko , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Benjamin Mugnier , Sylvain Petinot , Jacopo Mondi , Kieran Bingham , Niklas =?utf-8?Q?S=C3=B6derlund?= , Pavel Machek , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, Oleg Drokin Subject: Re: [PATCH 00/35] media: Fix coccinelle warning/errors Message-ID: <20240417155112.GQ12561@pendragon.ideasonboard.com> References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Tue, Apr 16, 2024 at 11:47:17AM +0300, Dan Carpenter wrote: > In my opinion, it's better to just ignore old warnings. I agree. Whatever checkers we enable, whatever code we test, there will always be false positives. A CI system needs to be able to ignore those false positives and only warn about new issues. > When code is new the warnings are going to be mostly correct. The > original author is there and knows what the code does. Someone has > the hardware ready to test any changes. High value, low burden. > > When the code is old only the false positives are left. No one is > testing the code. It's low value, high burden. > > Plus it puts static checker authors in a difficult place because now > people have to work around our mistakes. It creates animosity. > > Now we have to hold ourselves to a much higher standard for false > positives. It sounds like I'm complaining and lazy, right? But Oleg > Drokin has told me previously that I spend too much time trying to > silence false positives instead of working on new code. He's has a > point which is that actually we have limited amount of time and we have > to make choices about what's the most useful thing we can do. > > So what I do and what the zero day bot does is we look at warnings one > time and we re-review old warnings whenever a file is changed. > > Kernel developers are very good at addressing static checker warnings > and fixing the real issues... People sometimes ask me to create a > database of warnings which I have reviewed but the answer is that > anything old can be ignored. As I write this, I've had a thought that > instead of a database of false positives maybe we should record a > database of real bugs to ensure that the fixes for anything real is > applied. -- Regards, Laurent Pinchart