mips: use asm-generic version of msi.h
PATCH 1/1 mips: use asm-generic version of msi.h
This is necessary to be able to include <linux/msi.h> when CONFIG_GENERIC_MSI_IRQ_DOMAIN is enabled. Without this, a build with CONFIG_GENERIC_MSI_IRQ_DOMAIN fails with:
In file included from include/linux/kvm_host.h:20:0,
from arch/mips/kernel/asm-offsets.c:24:
Quoted 1 line
Quoted 1 line
include/linux/msi.h:197:10: fatal error:asm/msi.h: No such file or directory
#include <asm/msi.h>
^~~~~~~~~~~ compilation terminated.
make[2]: *** [arch/mips/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
--- arch/mips/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+)
arch/mips/include/asm/Kbuild +1 -0
@@ -8,6 +8,7 @@ generic-y += irq_work.h generic-y += local64.h generic-y += mcs_spinlock.h generic-y += mm-arch-hooks.h +generic-y += msi.h generic-y += parport.h generic-y += percpu.h generic-y += preempt.h
Signature · 1 line
2.14.4
Paul Burton
AppliedHi Thomas,
Quoted 16 lines · Thomas Petazzoni
This is necessary to be able to include <
linux/msi.h> whenCONFIG_GENERIC_MSI_IRQ_DOMAINis enabled. Without this, a build withCONFIG_GENERIC_MSI_IRQ_DOMAINfails with:In file included from
include/linux/kvm_host.h:20:0,
fromarch/mips/kernel/asm-offsets.c:24:Quoted 1 line
Quoted 1 line
include/linux/msi.h:197:10: fatal error:asm/msi.h: No such file or directory#include <asm/msi.h> ^~~~~~~~~~~compilation terminated.
make[2]: *** [arch/mips/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
Quoted 4 lines
Signed-off-by Thomas Petazzoni <[email protected]>--- arch/mips/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+)
Thanks, applied to mips-next for 4.19.
BTW it looks like a bunch of other architectures might need this too - a grep suggests more architectures lack asm/msi.h (17) than have it.
Paul