提交 9167fd5d 编写于 作者: S Samuel Holland 提交者: Marc Zyngier

PCI: hv: Take a const cpumask in hv_compose_msi_req_get_cpu()

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: 4d0b8298 ("genirq: Return a const cpumask from irq_data_get_affinity_mask")
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NSamuel Holland <samuel@sholland.org>
Reviewed-by: NMichael Kelley <mikelley@microsoft.com>
Signed-off-by: NMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220708004931.1672-1-samuel@sholland.org
上级 aa081358
...@@ -1635,7 +1635,7 @@ static u32 hv_compose_msi_req_v1( ...@@ -1635,7 +1635,7 @@ static u32 hv_compose_msi_req_v1(
* Create MSI w/ dummy vCPU set targeting just one vCPU, overwritten * Create MSI w/ dummy vCPU set targeting just one vCPU, overwritten
* by subsequent retarget in hv_irq_unmask(). * 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); return cpumask_first_and(affinity, cpu_online_mask);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册