[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <PH0PR21MB3025E51C68B0F77F54299768D7829@PH0PR21MB3025.namprd21.prod.outlook.com>
Date: Fri, 8 Jul 2022 04:27:00 +0000
From: "Michael Kelley (LINUX)" <mikelley@...rosoft.com>
To: Samuel Holland <samuel@...lland.org>, Marc Zyngier <maz@...nel.org>
CC: kernel test robot <lkp@...el.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Dexuan Cui <decui@...rosoft.com>,
Haiyang Zhang <haiyangz@...rosoft.com>,
KY Srinivasan <kys@...rosoft.com>,
Krzysztof WilczyĆski <kw@...ux.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Rob Herring <robh@...nel.org>,
Stephen Hemminger <sthemmin@...rosoft.com>,
Wei Liu <wei.liu@...nel.org>,
"linux-hyperv@...r.kernel.org" <linux-hyperv@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>
Subject: RE: [PATCH] PCI: hv: Take a const cpumask in
hv_compose_msi_req_get_cpu()
From: Samuel Holland <samuel@...lland.org> Sent: Thursday, July 7, 2022 5:50 PM
>
> The cpumask that is passed to this function ultimately comes from
> irq_data_get_effective_affinity_mask(), which was recently changed to
> return a const cpumask pointer. The first level of functions handling
> the affinity mask were updated, but not this helper function.
>
> Fixes: 4d0b8298818b ("genirq: Return a const cpumask from irq_data_get_affinity_mask")
> Reported-by: kernel test robot <lkp@...el.com>
> Signed-off-by: Samuel Holland <samuel@...lland.org>
> ---
>
> drivers/pci/controller/pci-hyperv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c
> index aebada45569b..e7c6f6629e7c 100644
> --- a/drivers/pci/controller/pci-hyperv.c
> +++ b/drivers/pci/controller/pci-hyperv.c
> @@ -1635,7 +1635,7 @@ static u32 hv_compose_msi_req_v1(
> * Create MSI w/ dummy vCPU set targeting just one vCPU, overwritten
> * by subsequent retarget in hv_irq_unmask().
> */
> -static int hv_compose_msi_req_get_cpu(struct cpumask *affinity)
> +static int hv_compose_msi_req_get_cpu(const struct cpumask *affinity)
> {
> return cpumask_first_and(affinity, cpu_online_mask);
> }
> --
> 2.35.1
Reviewed-by: Michael Kelley <mikelley@...rosoft.com>
Powered by blists - more mailing lists