]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfc4d8e166efa2ec85d8f75699fbd57256bd096d
treee2e495e4d10f7b5d097dae7d637dc1e6f07773c1
parent4d85ec49d8bfd530d1f1b094da636c7ad966b483
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