Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, irq: Move irq_remapped out of x86 core code

The irq_remapped function is only used in IOMMU code after
the last patch. So move its definition there too.

Signed-off-by: Joerg Roedel <joro@8bytes.org>
Acked-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

+5 -10
-10
arch/x86/include/asm/irq_remapping.h
··· 48 48 struct irq_cfg *cfg, 49 49 struct irq_chip *chip); 50 50 51 - static inline bool irq_remapped(struct irq_cfg *cfg) 52 - { 53 - return (cfg->remapped == 1); 54 - } 55 - 56 51 void irq_remap_modify_chip_defaults(struct irq_chip *chip); 57 52 58 53 #else /* CONFIG_IRQ_REMAP */ ··· 80 85 81 86 static inline void panic_if_irq_remap(const char *msg) 82 87 { 83 - } 84 - 85 - static inline bool irq_remapped(struct irq_cfg *cfg) 86 - { 87 - return false; 88 88 } 89 89 90 90 static inline void irq_remap_modify_chip_defaults(struct irq_chip *chip)
+5
drivers/iommu/irq_remapping.c
··· 31 31 const struct cpumask *mask, 32 32 bool force); 33 33 34 + static bool irq_remapped(struct irq_cfg *cfg) 35 + { 36 + return (cfg->remapped == 1); 37 + } 38 + 34 39 static void irq_remapping_disable_io_apic(void) 35 40 { 36 41 /*