Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp906114pxu; Mon, 23 Nov 2020 07:04:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwk/oIK6LHDDobJbaEwG+0c9rNPAj6ZOXc6qHT2lqIkJmLOtIMp3rHk4u4LXdLr19Ho+lf6 X-Received: by 2002:a17:906:8319:: with SMTP id j25mr63578ejx.68.1606143892891; Mon, 23 Nov 2020 07:04:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606143892; cv=none; d=google.com; s=arc-20160816; b=bWJWRY1aHI0R/MgLawcBrsjxNbfdnupQ8dYG//j3OLkbzWaTJs3areKLKfViF+qe2M j3fK5605ZK4I+oZxs9XSYRfRlMvuaFeG3gwkRDm0s1bTmaT6NluvYPImIxu6zkuBY/Ji Ziw3ZdTaMe+IYXMhcEjtCwBrU0/7Sb5pkBBgq4SAFbeqScDSNMMMR7RiO54n2H+/MBIh hpbs4EstAzGw3asQ6sbkFuW3wefKtNPZz4pA9/Ndefm4sHTuKe7pUgoxllSjIurkseZS FLkyFq7lSsfGJ54ZzgWun4eI6bcZpobU1eUAKl0zdzBSeFUwWNlVeA20cCxhBrLVIIjD 9mag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Qh6qjS2zm/X4PF4RHg4Jo9s/UIxaspmiraVkw8cJCxY=; b=lYutCR/ZuKxklOiD/ClxnW/GCfI1YHaAeB88DY3O166BiGr9uRzgqFOAbcdoBbk1Vr tXMc0YR8rnGNJDKJr42HkU8+lv4+3pxGABgN2qpMnGsTASFH40BlhMlMZ/SSGNDlput7 FnnnDReyoDpYKTvY0BehbC/5mz1ITyhx/1Gg515iQEZpyOMr+pm9RZCu5fOMkpw7TJ/D CTyP6kmnSOmWmdr2JWw8QgvvyP2mnUWThQpEBRtHlwqUXL+gFrqUQX9jrL1lJd+sRuN3 Wmr7mrHhKWgH9snqahoAWGvMbVF3B38qSMEwLoGKY9qJWywr5ttbMokexrSCYpXWjber aOjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GGsIDsuT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d7si6464183ejk.78.2020.11.23.07.04.24; Mon, 23 Nov 2020 07:04:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GGsIDsuT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389262AbgKWPCG (ORCPT + 99 others); Mon, 23 Nov 2020 10:02:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732010AbgKWPCF (ORCPT ); Mon, 23 Nov 2020 10:02:05 -0500 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94413C0613CF; Mon, 23 Nov 2020 07:02:05 -0800 (PST) Received: by mail-il1-x142.google.com with SMTP id y9so16178985ilb.0; Mon, 23 Nov 2020 07:02:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qh6qjS2zm/X4PF4RHg4Jo9s/UIxaspmiraVkw8cJCxY=; b=GGsIDsuT/GcH6k7VbgAzUv5xHGQ9/ygxAjZxx6fiPbzBaqiKHls7/sg4aHjBN7/AYe 9LDZNo8f4XatEV0dTgFJlCx7ziSIupxkwmyhXv+ANA4Gus/mNtfm70k0AtMyF23jYLTG nOcJM44YR1gy2QYWYAZu031NOTLGKLa7OINLTk5/r2lM0WBJB9cjndkfmLtSQ3yvnyWr Az66EPfRYKgBkzzKi9NcnmTHAQI74S4/f+BsGoEq6S0BPtRkItiYpG/j58kjFIkPVOIm QtQYyRW3NDdfWXokmsu2pPeo5jByJoxBsvPbBxxsUK1+Jf8koqzB/+WGieZfY1jd67wR hvLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qh6qjS2zm/X4PF4RHg4Jo9s/UIxaspmiraVkw8cJCxY=; b=YrtA0FZsOKlsoWuxAoiVUgvJv3v1wxByNF+fwor4PHuubAW8TmYS46b22gLhwoCaj3 kDxW7wbuhWOh5/PdzTvEVrP0nOoZS1QPrYzvQpUR369a+jFu8Ylw1SqW32PeuR9/SKV7 Y1j9T1VEyfJeNjlgW5SWmUaU+kyN7enTLN0ItaM/EtQ5y9FiCAcRnh9pZ9mtvIdJvzKI 4nfNorP7LMKIPJdpMMxc6arbmCOFp4esB+da7MCOd8INBtT2CVlC+7zMysnM8d++fq2o d+Fr5pSmb869+SEx++lUu5ZSSdv84wPZ3InFAQ0cEXGevklTmL80Ptx5BGEFiCPTeZLf 41Xg== X-Gm-Message-State: AOAM533Vrzpef93KiPKMK0zhLAHXPIE8mwzqNr0ZI2t/XlCAjLGI5QS0 ihlz0qQi6W3kinBof5djFRiVRH2B3C0SipU1dm8= X-Received: by 2002:a92:35d7:: with SMTP id c84mr95549ilf.251.1606143724717; Mon, 23 Nov 2020 07:02:04 -0800 (PST) MIME-Version: 1.0 References: <20201116165407.8050-1-sudipm.mukherjee@gmail.com> <20201116170137.GA2587640@ulmo> <0ef6fc37-4e91-68a1-0744-90b4093ce5ba@codethink.co.uk> In-Reply-To: <0ef6fc37-4e91-68a1-0744-90b4093ce5ba@codethink.co.uk> From: Lukas Bulwahn Date: Mon, 23 Nov 2020 16:01:59 +0100 Message-ID: Subject: Re: [linux-safety] [PATCH] PCI: tegra: Use PTR_ERR_OR_ZERO To: Sudip Mukherjee Cc: Thierry Reding , Sudip Mukherjee , Neil Armstrong , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , Jonathan Hunter , Linux Kernel Mailing List , linux-safety@lists.elisa.tech, linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 3:51 PM Sudip Mukherjee wrote: > > > On 16/11/2020 17:01, Thierry Reding wrote: > > On Mon, Nov 16, 2020 at 04:54:07PM +0000, Sudip Mukherjee wrote: > >> Coccinelle suggested using PTR_ERR_OR_ZERO() and looking at the code, > >> we can use PTR_ERR_OR_ZERO() instead of checking IS_ERR() and then > >> doing 'return 0'. > >> > >> Signed-off-by: Sudip Mukherjee > >> --- > >> drivers/pci/controller/pci-tegra.c | 4 +--- > >> 1 file changed, 1 insertion(+), 3 deletions(-) > > > > This has been proposed multiple times in the past and Bjorn and I have > > agreed every time that this is not an improvement, so sorry, but NAK. > > Thanks Thierry and Neil. I have now added a blacklist script in our CI > so "PTR_ERR_OR_ZERO" will not be flagged for anything in drivers/pci/* > anymore in our testing. > > Thanks, Sudip. I think that is a good idea to minimize churn on subsystem maintainers from janitors. We can continue to discuss how to share these settings on ignore-rule-X-on-subsystem-Y with other "analysis tool CI maintainers". Lukas