Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1333107imm; Sun, 2 Sep 2018 19:25:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaBRW7/NOTyVTBUtxGrJWHqU+WsLz/KaB47yxr3sEy+BZGivCYT+m+4UslhSPvo+/B4vVG9 X-Received: by 2002:a62:6a01:: with SMTP id f1-v6mr27047577pfc.156.1535941556861; Sun, 02 Sep 2018 19:25:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535941556; cv=none; d=google.com; s=arc-20160816; b=XKiHTX4YTj0Q9nNoRfURFpcl61TMx6sVQrgzndvx9g46AHZmZ+IwjhDHJ7F8MC8JxX RlOij3ijF/OClh2onMxrUMge+BNcI2FSDxuf9ZP5wfZOGp0ZpUfuqndpMV+PxyEXeCbS lNnshhv7bxI93jBMCmeVFzeXFqBVZ17qkYUDgP67flRKvSZKety8w+09D50Nvk5w37hw cM+6rlxdMeo6zpfl5N5kmuirYaXQN/9vZ58jlnYA0VkH9V/umuBNH+0f/XcWuHrHlJGM FpqtNu1I4/u7+7z6YDgUDEzWaIm/wPLqo1KdWPtPiNY/s/RzJXH5nCrbCl6s8iGz7AmD NBqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=5Q8uJs07XYgjHltub3lryIofOhA0pHaonZ9vzlsI0yU=; b=mkHZPghwN8jatHi122IHIXya+R+2FnokAeEnnekHRM0nBdiq0C4RenmhtgeEj0hWUu hjWBH1fmJRp8dfCWcxo6bITSKAaBeI6zSwTE3GjOVGT3RacNyGJtdRuM1BB5cUYurrMk CsCT719w65WQqcPZHfoVKREdW18Qr2Ej4NwanTxBL1cDpTLiF87zu+YqFrZBUzNbd3V8 DspOV7INjYA9IEXSFFMLxubk611Ua4/yD4/NAToHecjdqsnnbYnxatrFG4vzaOB96Lak gH3uPV+f+1kGgF0wetrlJNao0N+QrSn2WEdwVLkOkJr2vFPMqnbVYibTf3b2Bh/jALaV 4HjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=MkQnhPDL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9-v6si6685509pga.442.2018.09.02.19.25.41; Sun, 02 Sep 2018 19:25:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mobiveil.co.in header.s=google header.b=MkQnhPDL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727156AbeICGme (ORCPT + 99 others); Mon, 3 Sep 2018 02:42:34 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45655 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbeICGme (ORCPT ); Mon, 3 Sep 2018 02:42:34 -0400 Received: by mail-wr1-f65.google.com with SMTP id 20-v6so16187552wrb.12 for ; Sun, 02 Sep 2018 19:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mobiveil.co.in; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5Q8uJs07XYgjHltub3lryIofOhA0pHaonZ9vzlsI0yU=; b=MkQnhPDLNWpy/OVulnYR+CcjytKh/OnM51vNGgZLISYyZi+lZRUMZMj8uuHHgjF9K2 gcUJItEGEy2Z7M5I0MyH5XsGT3rWZh5e5EgzZx4LcOeARm0/GyKk/vnxCjFYiLjK0Mjq fgovKF2+sPLZ0TSldYEkffsYUZyiHL+EOfhsE= 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=5Q8uJs07XYgjHltub3lryIofOhA0pHaonZ9vzlsI0yU=; b=Y4L2GTfmWXiwd0W3G6WmCsg91z1EnUDWATiDSBw8v5q342tjGD4l5eL1CvU2XvkEqh Jss9G/iRI5hRpezI5a6wY040H31QcavOxSDO3aRZcPGONqOIi0kYCe67Ugzf5SE0IBbt 6Ia9x1m6ZnBvhIfrmkorn7+h2Zi8ODDL/2CYuWb/rlKawH0DIjTAdDmP7gm4xmfpLjUR o1qPFpLcFOZMZB2MVCGmWO/0zgaPpydO0QNZ9BpIolva+hUqdaj4OnyRGMFDEX0+yuSL L9+hMEhIDMFi2UBaG9IJEtdpu+b/0SY0eedyWnfJ2qsH2vGSTU9DN/vNXQyXzk8T0pEF IdGg== X-Gm-Message-State: APzg51AOaw96eHiLoq37XaPAeulJVxht5OW0CQerUeRUzaL9EjSb/qtb nUQoshYV2wUooJJIp8kSmcMG03AuTeIU/lrxWN4zog== X-Received: by 2002:adf:edd2:: with SMTP id v18-v6mr18474724wro.39.1535941474347; Sun, 02 Sep 2018 19:24:34 -0700 (PDT) MIME-Version: 1.0 References: <20180902064601.183036-1-alexander.levin@microsoft.com> <20180902064601.183036-69-alexander.levin@microsoft.com> In-Reply-To: <20180902064601.183036-69-alexander.levin@microsoft.com> From: Subrahmanya Lingappa Date: Mon, 3 Sep 2018 07:54:23 +0530 Message-ID: Subject: Re: [PATCH AUTOSEL 4.18 069/131] PCI: mobiveil: Fix struct mobiveil_pcie.pcie_reg_base address type To: Alexander.Levin@microsoft.com Cc: stable@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Pieralisi , Bjorn Helgaas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Acked-by: Subrahmanya Lingappa Thanks. On Sun, Sep 2, 2018 at 6:34 PM Sasha Levin wrote: > > From: Lorenzo Pieralisi > > [ Upstream commit af3f606e0bbb6d811c50b7b90fe324b07fb7cab8 ] > > The field pcie_reg_base in struct mobiveil_pcie represents a physical > address so it should be of phys_addr_t type rather than void __iomem*; > this results in the following compilation warnings: > > drivers/pci/controller/pcie-mobiveil.c: In function > 'mobiveil_pcie_parse_dt': > drivers/pci/controller/pcie-mobiveil.c:326:22: warning: assignment makes > pointer from integer without a cast [-Wint-conversion] > pcie->pcie_reg_base = res->start; > ^ > drivers/pci/controller/pcie-mobiveil.c: In function > 'mobiveil_pcie_enable_msi': > drivers/pci/controller/pcie-mobiveil.c:485:25: warning: initialization > makes integer from pointer without a cast [-Wint-conversion] > phys_addr_t msg_addr = pcie->pcie_reg_base; > ^~~~ > drivers/pci/controller/pcie-mobiveil.c: In function > 'mobiveil_compose_msi_msg': > drivers/pci/controller/pcie-mobiveil.c:640:21: warning: initialization > makes integer from pointer without a cast [-Wint-conversion] > phys_addr_t addr = pcie->pcie_reg_base + (data->hwirq * sizeof(int)); > > Fix the type and with it the compilation warnings. > > Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP > driver") > Signed-off-by: Lorenzo Pieralisi > Cc: Bjorn Helgaas > Cc: Subrahmanya Lingappa > Signed-off-by: Sasha Levin > --- > drivers/pci/controller/pcie-mobiveil.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c > index 2c81be37b010..a939e8d31735 100644 > --- a/drivers/pci/controller/pcie-mobiveil.c > +++ b/drivers/pci/controller/pcie-mobiveil.c > @@ -132,7 +132,7 @@ struct mobiveil_pcie { > void __iomem *config_axi_slave_base; /* endpoint config base */ > void __iomem *csr_axi_slave_base; /* root port config base */ > void __iomem *apb_csr_base; /* MSI register base */ > - void __iomem *pcie_reg_base; /* Physical PCIe Controller Base */ > + phys_addr_t pcie_reg_base; /* Physical PCIe Controller Base */ > struct irq_domain *intx_domain; > raw_spinlock_t intx_mask_lock; > int irq; > -- > 2.17.1