From patchwork Mon May 17 17:18:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 12262587 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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 1D9EEC43460 for ; Mon, 17 May 2021 17:20:35 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 E01D361285 for ; Mon, 17 May 2021 17:20:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E01D361285 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc: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=ivCziRtM5k8WAD/AQtkbG3qpScljzpBFh33HcB/klLI=; b=E60fYsF+yM5VI1UIKDljAElvG9 Nzys2EmAZjfdjoQZ0j5dEyHbAOk3Pp3JzL3xbpX7ar+di4h5zJfuVUKFGNb+lNtfJke/EcQrJI9f+ ewnCeas6X3U0DYC5mzvjeXqq7UUZV6pRv5DXQtm/B9WccYSm4x266tjxpa98o7kJt3IcUkwL1mmZ/ Rl0dpQ3mJnctZM1a+IMKB8eGV8YECkgQxvB0M7BNMTFZj4WZgJM6KfdBtC1j0dr2Fyj9DW967beud PnLDcj4rfvnanzl2v+tnL//GR9F7r34a0PupTyTEsARsnbcbBRLJsCF3hcB3Oo3EhRzRH6NzRu5zq rGdebWrA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ligtK-00Fd4T-2A; Mon, 17 May 2021 17:18:54 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ligtF-00Fd2u-BC for linux-arm-kernel@desiato.infradead.org; Mon, 17 May 2021 17:18:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=w7v419hdoa5vVmphjuhMSk4sTJtz+fJGIRP1Z6cCZ88=; b=qJZAvVinj34JBUF7cQJwGD9Dqk +0SLUBLePM1uXzMGd0bTnNap/QS4tI7avqHAqnS6grbBOyZR1NNMjAr36llcVgNyXV1WDKUP8Tt/g y0fkYlGJ4SB4jvvfmvlN8Sc+Ru5oyA5vhlY+HppLR64/xVsStxOk++1VvX4FgU1uzSQjAG98pvFBR h+53gBHOS11+YbRMXqqtYqRJ2WIu7uKMaEhJzIiwlrGv7aye1PWfPnwrWoSTNkM97mdDRzQdC8r4C XlULb2Mi+0Qz2n0BNOTBa+kktUHXaGS2R68U+t83Ph+DON3aZsdPCSytHYfFG3sZB8aQoGoBpRsi2 kK6Z1V5Q==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ligtC-00E0lC-P1 for linux-arm-kernel@lists.infradead.org; Mon, 17 May 2021 17:18:48 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 26B8A60FD8; Mon, 17 May 2021 17:18:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621271926; bh=5EXXKrTEZggHrz5JlWeNkc4VW59P/1NQcRzu78RsYh4=; h=From:To:Cc:Subject:Date:From; b=L6AX5/QUb4GeLSO8wgtLFwnX5ydTAuEiHJZm18I/AsQctwuJU1noXH+LUWbOz0oMG vVgR9ft/jNkY/anR5aM368MDo7woqDUxuIVqj73h0CJB11YXXzubQyCJsM2OleLswp it16ue17T++rkc2kuiHeYP2VUTaq8ilzp/9Ne8Ed3B08uFyUXi+qgyicYFscEudIrx nefPZchipYkvd8EfPC27M08/OHsDdncmr53IEJqwIEipTTOxaKL8nTAxIuo9dCT6Tj GfM0uKVnyOmgvm9WJ4MHTw5PScm2rw90VeFMTDTjN3Llg7kuAY7X8sz3bsWRG3lUFg iTYtkp9BnUHMg== From: Bjorn Helgaas To: Lorenzo Pieralisi Cc: Toan Le , Rob Herring , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bjorn Helgaas , kernel test robot Subject: [PATCH] PCI: xgene: Annotate __iomem pointer Date: Mon, 17 May 2021 12:18:39 -0500 Message-Id: <20210517171839.25777-1-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210517_101846_853955_BB953B53 X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Bjorn Helgaas "bar_addr" is passed as the argument to writel(), which expects a "void __iomem *". Annotate "bar_addr" correctly. Resolves an sparse "incorrect type in argument 2 (different address spaces)" warning. Link: https://lore.kernel.org/r/202105171809.Tay9fImZ-lkp@intel.com Reported-by: kernel test robot Signed-off-by: Bjorn Helgaas --- drivers/pci/controller/pci-xgene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pci-xgene.c b/drivers/pci/controller/pci-xgene.c index 7f503dd4ff81..1a412f5377fb 100644 --- a/drivers/pci/controller/pci-xgene.c +++ b/drivers/pci/controller/pci-xgene.c @@ -485,7 +485,7 @@ static void xgene_pcie_setup_ib_reg(struct xgene_pcie_port *port, { void __iomem *cfg_base = port->cfg_base; struct device *dev = port->dev; - void *bar_addr; + void __iomem *bar_addr; u32 pim_reg; u64 cpu_addr = entry->res->start; u64 pci_addr = cpu_addr - entry->offset;