From patchwork Sun Aug 2 14:25:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= X-Patchwork-Id: 257473 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CAF81C433DF for ; Sun, 2 Aug 2020 14:26:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ADCE92075A for ; Sun, 2 Aug 2020 14:26:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726325AbgHBO0H (ORCPT ); Sun, 2 Aug 2020 10:26:07 -0400 Received: from mail-lj1-f177.google.com ([209.85.208.177]:34712 "EHLO mail-lj1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgHBO0G (ORCPT ); Sun, 2 Aug 2020 10:26:06 -0400 Received: by mail-lj1-f177.google.com with SMTP id q7so37010850ljm.1; Sun, 02 Aug 2020 07:26:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zeiAgJxHrPijvNQknHHdvjYtJyFN1FT1e2QzBTPsm24=; b=IHxpd+9SwtctYq+2qUbmhS2GVrZwFbbtOnDIOWWCVSr5gVtLd8XXEjSq/+0qA4+j2H Sun37G5GM3LyEWWVFm0/9oN8ErxA6UeXyRirnvgka7BSQOtFKLJmNwmpT0+D0f/SbvgZ WS8E8v1UjoYEZKyE5dh8krKABQhbT/6ZgKOumEmvPIGAcsWzMKAUgXQM/NcD8cBtThDc 34EuDS8nN+BNmLFgP5DmVdRIzbrk5d8y+J5ICCIlSA3A7O/GyKt7KH9bGjd50m5bzdLy j60sWTTKcXUt8j+3iilSAgQl0rNPnFvekzj5QXOhP0n8Gs/BbV1IpZiWR+MPp50aXmlP YCWQ== X-Gm-Message-State: AOAM5300QtaptUzlR8BKNxMkGLlsCKyztYxnSl//2nBwb90T7d+GOOxv Vo6Q8sEnTOPURhcl4aRwkeg= X-Google-Smtp-Source: ABdhPJz3cgcIo8JIidtc9NrocQlQwtKoNwLE3saIsQCJHhsMNawOby6x6eEuxlT5d67lW0jGLW6Kmg== X-Received: by 2002:a2e:94d5:: with SMTP id r21mr6223757ljh.424.1596378363688; Sun, 02 Aug 2020 07:26:03 -0700 (PDT) Received: from workstation.lan ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id 193sm4214136lfa.90.2020.08.02.07.26.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 07:26:02 -0700 (PDT) From: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= To: Bjorn Helgaas Cc: Jingoo Han , Kukjin Kim , Krzysztof Kozlowski , Richard Zhu , Lucas Stach , Shawn Guo , Sascha Hauer , Murali Karicheri , Yue Wang , Kevin Hilman , Thomas Petazzoni , Jesper Nilsson , Xiaowei Song , Binghui Wang , Pratyush Anand , Hou Zhiqiang , Linus Walleij , Toan Le , Ley Foon Tan , Shawn Lin , Heiko Stuebner , linux-amlogic@lists.infradead.org, linux-arm-kernel@axis.com, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org, rfi@lists.rocketboards.org Subject: [PATCH 00/10] Remove surplus dev_err() when handing an error from platform_get_irq() Date: Sun, 2 Aug 2020 14:25:52 +0000 Message-Id: <20200802142601.1635926-1-kw@linux.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org At the moment a lot of error handling code would print a duplicated error message should either the platform_get_irq() or platform_get_irq_byname() function fails to obtain an IRQ for a device. There is no need to call the dev_err() function directly to print a custom message when handling an error from either of these functions as both are going to display an appropriate error message in case of a failure. This series aims to remove surplus call to dev_err() when handing an error originating from either platform_get_irq() or platform_get_irq_byname() function as per suggestion from Coccinelle. Related commits are commit 7723f4c5ecdb ("driver core: platform: Add an error message to platform_get_irq*()") and commit 98051ba2b28b ("coccinelle: Add script to check for platform_get_irq() excessive prints"). Krzysztof WilczyƄski (10): PCI: dwc: Remove dev_err() when handing an error from platform_get_irq() PCI: mobiveil: Remove dev_err() when handing an error from platform_get_irq() PCI: tegra: Remove dev_err() when handing an error from platform_get_irq() PCI: altera: Remove dev_err() when handing an error from platform_get_irq() PCI: host-generic: Remove dev_err() when handing an error from platform_get_irq() PCI: v3-semi: Remove dev_err() when handing an error from platform_get_irq() PCI: altera-msi: Remove dev_err() when handing an error from platform_get_irq() PCI: xgene-msi: Remove dev_err() when handing an error from platform_get_irq() PCI: rockchip: Remove dev_err() when handing an error from platform_get_irq() PCI: xilinx-nwl: Remove dev_err() when handing an error from platform_get_irq() drivers/pci/controller/dwc/pci-dra7xx.c | 8 ++------ drivers/pci/controller/dwc/pci-exynos.c | 9 +++------ drivers/pci/controller/dwc/pci-imx6.c | 4 +--- drivers/pci/controller/dwc/pci-keystone.c | 4 +--- drivers/pci/controller/dwc/pci-meson.c | 4 +--- drivers/pci/controller/dwc/pcie-armada8k.c | 4 +--- drivers/pci/controller/dwc/pcie-artpec6.c | 4 +--- drivers/pci/controller/dwc/pcie-histb.c | 4 +--- drivers/pci/controller/dwc/pcie-kirin.c | 5 +---- drivers/pci/controller/dwc/pcie-spear13xx.c | 5 ++--- drivers/pci/controller/dwc/pcie-tegra194.c | 4 +--- .../pci/controller/mobiveil/pcie-layerscape-gen4.c | 5 ++--- drivers/pci/controller/mobiveil/pcie-mobiveil-host.c | 4 +--- drivers/pci/controller/pci-tegra.c | 8 ++------ drivers/pci/controller/pci-v3-semi.c | 5 ++--- drivers/pci/controller/pci-xgene-msi.c | 2 -- drivers/pci/controller/pcie-altera-msi.c | 1 - drivers/pci/controller/pcie-altera.c | 4 +--- drivers/pci/controller/pcie-rockchip-host.c | 12 +++--------- drivers/pci/controller/pcie-tango.c | 4 +--- drivers/pci/controller/pcie-xilinx-nwl.c | 11 ++--------- 21 files changed, 29 insertions(+), 82 deletions(-)