Skip to content

Commit 9167fd5

Browse files
smaeulMarc Zyngier
authored andcommitted
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: 4d0b829 ("genirq: Return a const cpumask from irq_data_get_affinity_mask") Reported-by: kernel test robot <[email protected]> Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent aa08135 commit 9167fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/controller/pci-hyperv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ static u32 hv_compose_msi_req_v1(
16351635
* Create MSI w/ dummy vCPU set targeting just one vCPU, overwritten
16361636
* by subsequent retarget in hv_irq_unmask().
16371637
*/
1638-
static int hv_compose_msi_req_get_cpu(struct cpumask *affinity)
1638+
static int hv_compose_msi_req_get_cpu(const struct cpumask *affinity)
16391639
{
16401640
return cpumask_first_and(affinity, cpu_online_mask);
16411641
}

0 commit comments

Comments
 (0)