[PATCH v2] powerpc: allow compiling with GENERIC_MSI_IRQ_DOMAIN

laurentiu.tudor at nxp.com laurentiu.tudor at nxp.com
Mon Jul 17 23:12:43 AEST 2017


From: Laurentiu Tudor <laurentiu.tudor at nxp.com>

This allows building powerpc with the GENERIC_MSI_IRQ_DOMAIN
Kconfig by enabling the asm-generic msi.h in Kbuild. Without
this, there's a compilation error [1] because powerpc, as most
arches, doesn't provide an asm/msi.h.

[1] In file included from ./include/linux/kvm_host.h:20:0,
                 from ./arch/powerpc/include/asm/kvm_ppc.h:30,
                 from arch/powerpc/kernel/dbell.c:20:
./include/linux/msi.h:195:21: fatal error: asm/msi.h: No such file or directory

Signed-off-by: Laurentiu Tudor <laurentiu.tudor at nxp.com>
---
v2:
 - compilation error happens when GENERIC_MSI_IRQ_DOMAIN is enabled and not
   GENERIC_MSI_IRQ, so fix commit msg and title

previous version: https://patchwork.ozlabs.org/patch/782735/

 arch/powerpc/include/asm/Kbuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/include/asm/Kbuild b/arch/powerpc/include/asm/Kbuild
index 5c4fbc8..2542ea1 100644
--- a/arch/powerpc/include/asm/Kbuild
+++ b/arch/powerpc/include/asm/Kbuild
@@ -8,3 +8,4 @@ generic-y += mcs_spinlock.h
 generic-y += preempt.h
 generic-y += rwsem.h
 generic-y += vtime.h
+generic-y += msi.h
-- 
2.9.4



More information about the Linuxppc-dev mailing list