From patchwork Tue Sep 22 19:49:32 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: 11793021 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E5D69139A for ; Tue, 22 Sep 2020 19:51:13 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B974E20888 for ; Tue, 22 Sep 2020 19:51:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="pa85s56l" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B974E20888 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=KuYZrN5FWZD4bdguRFUsqUJNaVIrHCkAHpR0sF9lSuo=; b=pa85s56ljh6YpwoYxr26DPyQUa hHiqg+cz7THUHq/dUtoKM8LHVz2kkh+0zkpoa2oIubdHG0yTOKN3dMapzJpgCS1IEZ98SacFh9C/e XpLcH8mQJpObEMfNOAajI+qH4aLcDAahhFdGSh5h3kBtuuzRMNMjKUAE9PKSBblPbnFa6m0iJZ27h SdyjLqcaUYvknWdTbsMaja6TpoeHFgyPkbXvU72X4K0ogbNN2nWuOsIzIrDBcKCTmF96AGfTRqyH4 KaEPfeKn0FYgXmM+WZLE/GTb02ly7wk82VTjbKr0xvEZG1MMPfgN0hMcp/gOgMT7r9BQ1zM4KHKlI k3wzCkbA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKoIH-0006gQ-QO; Tue, 22 Sep 2020 19:49:41 +0000 Received: from mail-lf1-f66.google.com ([209.85.167.66]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKoID-0006eb-Il for linux-arm-kernel@lists.infradead.org; Tue, 22 Sep 2020 19:49:39 +0000 Received: by mail-lf1-f66.google.com with SMTP id 77so12062322lfj.0 for ; Tue, 22 Sep 2020 12:49:36 -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=6KBEumJQMXXdLGLIkpzZmhtm8YLY//YYDJTWXBzqB8g=; b=Xz8hWEBCHCZ1LxeCMa3Vs9gm6BOu9ksoKKcoVfhUYptYhRIX6UvUurNueSKgMsuYhk DzuVx43QiiZG++87Ohn/mNeSSTpJum7fXcjf6/VoszGco5Qv/kue70qJxrSlsUgyOYrQ x5KDLUX0XQCywzdLUbs88TZPTqX9PkI/CrHrodQlSJKskI4uEcBDzQHUysQ9DHyerSjW ghY4U79BVeptPNw+U5lsKRgX7RpBy5c/JiHranc3LExtYPK90J0EXzDK8B2uQNQuhC0L b9/egboM7U44QxNpti80z5JhE8NqEG7s01lNQL3g/oYXcwPhJ/0ZbDjp3gbGK99+3cNf Va3A== X-Gm-Message-State: AOAM532zi1ydMUAjmNUP9mJYs8XV83RDjCNocTX8jR/tnXR5zixnAHGZ GLxXoLQovJPtCtsY/lODbko= X-Google-Smtp-Source: ABdhPJxEnzql5UoLh19rKN8blX0/7PUzGlRQecaxPYKH8r9g1qE/6Q6Wi269fEMtfJsrdbQcRfKppA== X-Received: by 2002:a05:6512:302:: with SMTP id t2mr2136381lfp.432.1600804175026; Tue, 22 Sep 2020 12:49:35 -0700 (PDT) Received: from workstation.lan ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id u20sm3784438lfo.156.2020.09.22.12.49.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 12:49:34 -0700 (PDT) From: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= To: Ray Jui Subject: [PATCH] PCI: iproc: Fix using plain integer as NULL pointer in iproc_pcie_pltfm_probe Date: Tue, 22 Sep 2020 19:49:32 +0000 Message-Id: <20200922194932.465925-1-kw@linux.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200922_154937_684741_D27C7497 X-CRM114-Status: GOOD ( 14.50 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.167.66 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.167.66 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [kswilczynski[at]gmail.com] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Lorenzo Pieralisi , Scott Branden , linux-pci@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Bjorn Helgaas , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Fix sparse build warning: drivers/pci/controller/pcie-iproc-platform.c:102:33: warning: Using plain integer as NULL pointer The map_irq member of the struct iproc_pcie takes a function pointer serving as a callback to map interrupts, therefore we should pass a NULL pointer to it rather than a integer in the iproc_pcie_pltfm_probe() function. Related: commit b64aa11eb2dd ("PCI: Set bridge map_irq and swizzle_irq to default functions") Signed-off-by: Krzysztof WilczyƄski Reviewed-by: Rob Herring --- drivers/pci/controller/pcie-iproc-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-iproc-platform.c b/drivers/pci/controller/pcie-iproc-platform.c index a956b0c18bd1..b93e7bda101b 100644 --- a/drivers/pci/controller/pcie-iproc-platform.c +++ b/drivers/pci/controller/pcie-iproc-platform.c @@ -99,7 +99,7 @@ static int iproc_pcie_pltfm_probe(struct platform_device *pdev) switch (pcie->type) { case IPROC_PCIE_PAXC: case IPROC_PCIE_PAXC_V2: - pcie->map_irq = 0; + pcie->map_irq = NULL; break; default: break;