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: 1479702 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=L6AX5/QU; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4FkQpL6Y2Rz9sRf for ; Tue, 18 May 2021 03:18:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241941AbhEQRUE (ORCPT ); Mon, 17 May 2021 13:20:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:42904 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241395AbhEQRUC (ORCPT ); Mon, 17 May 2021 13:20:02 -0400 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 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.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;