Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1924837lqp; Tue, 16 Apr 2024 01:48:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzcTaISpFaU8ywCyu8XDYRqZRP1I+gJ9KNm+eCgFr02pC5DQTy4nueNQABkmvW01+39kndtBR8CKqBYaegPn58L+B9HuRtDekupI9Avw== X-Google-Smtp-Source: AGHT+IEkYsnPgvEiwv2cugCiVqDGZv9x36hNTNmE3y06PVpQtJAlQupxmBwBqiifRM/wQRZ9q7PV X-Received: by 2002:a05:622a:1a11:b0:436:e666:317e with SMTP id f17-20020a05622a1a1100b00436e666317emr9385838qtb.44.1713257304737; Tue, 16 Apr 2024 01:48:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713257304; cv=pass; d=google.com; s=arc-20160816; b=zIXsM4fg/tRIzdTUTTlSRKB+0j/5C3wkcNMjAPXAg2NWrdLv4I5BoDphNX5xADWnQG XsKMRN3QV/vRkgzp2N72Pl560pZWxrdt54Jqzyuc8YZ96e8NPgn296LQFr9czg7FcMZy V2A0O/Hvb3Y5WKP6JHtUCWNlv586wRsFQDMT3gRmAXXLDJtjwoKerCojjuSOJb2e/eAG fIc0sxJ9Xft13tMGl63j7d9Uqb3WJqlsiOoNal9tTfPNWJucfWFL+PwdmiP7grku5gST brKhb0FCEzlyiawf0GZRfL21p7tNny/zYYgUe1s5s+dRO3N3ezkl0GaHlH+rp6DglT6W SaYQ== 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=NkM0I+aW0wUUvGJQ59wWIPVhiqCpaSf/yczLNzgYK2M=; fh=oRCyW32egjRwv7YylHTQtb6xB2nFyfyHVllED5cPARk=; b=RmGrsrpw9E7eL3uwWalqDk+X4VO6CrE8j+XzN2ndGKLkYqYlRThMEge6wkawdwaGL3 O+bcP1dNpV50FrRwMCx8E8XScsAewewFM++XfkQWiAolSS2b3kOcKFaD7cfcmMi2ztVx xeNloToI9S66fo7ZmEBmWM3fzmS9jTm6WTuR+UekSM7BgcwP/SDjLZpimEwn+lGkA5hk HJ0kd0e3YoTnjsDF9+F9O4HJGcv5oQbkWZouCGkjSzYIPQc4ssYZ9jAP80jCJXT31Lg/ rGnsX80PfvUlCBxHAIt5Vcqm/0Wi4SOIK0AtOn9Tz9V2ZoOcYWN0d2h6r5mP9k38Klzl vzbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JOG43zU2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146512-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y12-20020a05622a120c00b00434e869a8cesi12173713qtx.674.2024.04.16.01.48.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 01:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JOG43zU2; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-146512-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146512-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1C31B1C22D92 for ; Tue, 16 Apr 2024 08:47:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 825B6629; Tue, 16 Apr 2024 08:47:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JOG43zU2" Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12C431F19A for ; Tue, 16 Apr 2024 08:47:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713257245; cv=none; b=u6KBU0Sck9GtyEEWIUoJqrnbUef3MK0nme3s1ftC0E0uczeV4K6JOAKoGqd6T2zZAM42Q29URwarQSU+UQTYabXva/PHUY5cz/NCsLwpfiX0e32ADCShak7iNQ+KlUAHEAbEnW5X4w/NlkzZLUgVu5axhU1W0o4osOjyU94iMNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713257245; c=relaxed/simple; bh=+YjD1kVczgIpZpwc3pkofZBwOBnPI8au9Bf6byXPai8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=S8GsZGg/V2eUxjzM6SXQcsUbrIPyDrPRfloqKFtE5GifBsqjFMPV9B04xNnH4tquqxQbgoiBnLMB50D/2p16GrwRsBBwURIMnhs/uWmlfgMD5SDZ858xTnb5sF11m96jLDLSLLedYPQjv4w50FJz0GMdZyUY7udnZNoIiiQRmwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=JOG43zU2; arc=none smtp.client-ip=209.85.218.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a5269c3f9c7so245584066b.2 for ; Tue, 16 Apr 2024 01:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713257242; x=1713862042; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=NkM0I+aW0wUUvGJQ59wWIPVhiqCpaSf/yczLNzgYK2M=; b=JOG43zU2//QNW7OsVbqlbQRAgppXQV937ebODQQXf/hvIQaq/FD1xndX4vRIHMD4O8 neAsbc9lqzrUzn5TUAmotDaV/Ywhqkpe9LBAwQpofA829aPr5oNQflxOfYhHZN8S/Ad1 7FYvz0fllkkV4nBN4uCqD+/Tx4GJWAlmHoEQl+66CH61jsBHKj8A7qKsZAsv4Tj0GywP ghCgy3pErd6glqQNIrc4sk9rd6d6w+GirqSWQjzj1i4p9NdNzWkB5fevAQcn5WDSKlxk hKmkGBl9VJ8kCCX5nD85kMex5mJBMDB53NaYS31NrW6sksWmxs3CZFf/L+V0v1FZl6Wn gGVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713257242; x=1713862042; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NkM0I+aW0wUUvGJQ59wWIPVhiqCpaSf/yczLNzgYK2M=; b=WF9ChDN8Dx6xzKVQDLubOlaq2N0t9qOP2/RNy20Lo1kpNQ+PSoXUyoQtbE4WL/HVkR uCsCYCL7+KC0IWLC4C1y2+/PRPV0cz6gk+8H8xdeJuDg+cBVQurtexXHPnGOfgcvs4nC jMGJFTe4NckQ447m8LFQKLzH+QDQOewupSfQv0tzFt/MDAmO/jPeU8vWH5gD2phPvPV9 68CrC3lGwWenrti9bCHEq+nHkp5lrsM7R8XiFJyiVBzownzNmO6EVXD0WvjlKBNrxpCk nkdxkR5NOvQuQgNg4pJ6e+tQWJxmQyAd7dbPhZwr0DD5j7x/3F/KTAVGIYAxM8rGcGJd LBKw== X-Forwarded-Encrypted: i=1; AJvYcCXZMUpw+SRxOuHw2oUuhEh+Si/m01h8dQxP3n+OTo78beTj9bMuVLjDxn6kjfUejE4h8plpoBnAjstb1VbpD5+rpMV2sv4o1Zt80Z0P X-Gm-Message-State: AOJu0YyBJE8BSC/AdSVLaxJ0NoYyUry3gvKzqdAgC6J6JS0tXlLaj3Si JdPcnR5kVLjrf+tDnxrBGfeqO4bxGkmbJLoSp44XurR2TR189r8wdHd8r6ibWNg= X-Received: by 2002:a17:906:7145:b0:a52:8a8a:59cb with SMTP id z5-20020a170906714500b00a528a8a59cbmr2572423ejj.61.1713257242155; Tue, 16 Apr 2024 01:47:22 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id x16-20020a170906135000b00a51a7832a7asm6572111ejb.199.2024.04.16.01.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 01:47:21 -0700 (PDT) Date: Tue, 16 Apr 2024 11:47:17 +0300 From: Dan Carpenter To: Ricardo Ribalda Cc: Martin Tuma , Mauro Carvalho Chehab , Laurent Pinchart , 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 , Laurent Pinchart , Niklas =?iso-8859-1?Q?S=F6derlund?= , 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: 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=us-ascii Content-Disposition: inline In-Reply-To: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> In my opinion, it's better to just ignore old warnings. 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, dan carpenter