genirq: Return a const cpumask from irq_data_get_affinity_mask
authorSamuel Holland <samuel@sholland.org>
Fri, 1 Jul 2022 20:00:55 +0000 (15:00 -0500)
committerMarc Zyngier <maz@kernel.org>
Thu, 7 Jul 2022 08:38:04 +0000 (09:38 +0100)
commit4d0b8298818b623f5fa51d5c49e1a142d3618ac9
treee2e495e4d10f7b5d097dae7d637dc1e6f07773c1
parent073352e951f60946452da358d64841066c3142ff
genirq: Return a const cpumask from irq_data_get_affinity_mask

Now that the irq_data_update_affinity helper exists, enforce its use
by returning a a const cpumask from irq_data_get_affinity_mask.

Since the previous commit already updated places that needed to call
irq_data_update_affinity, this commit updates the remaining code that
either did not modify the cpumask or immediately passed the modified
mask to irq_set_affinity.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220701200056.46555-8-samuel@sholland.org
arch/mips/cavium-octeon/octeon-irq.c
arch/sh/kernel/irq.c
arch/x86/hyperv/irqdomain.c
arch/xtensa/kernel/irq.c
drivers/iommu/hyperv-iommu.c
drivers/pci/controller/pci-hyperv.c
include/linux/irq.h
kernel/irq/chip.c
kernel/irq/debugfs.c
kernel/irq/ipi.c