x86, intel-iommu: fix X2APIC && !ACPI build failure
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 7 Apr 2009 06:04:40 +0000 (23:04 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 7 Apr 2009 06:22:46 +0000 (08:22 +0200)
commitf7d7f866baacc283967ce82ebdfe5d2801059a11
treec360f564eaade057861ec64f797a0addf26618ae
parentd508afb437daee7cf07da085b635c44a4ebf9b38
x86, intel-iommu: fix X2APIC && !ACPI build failure

This build failure:

| drivers/pci/dmar.c:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘dmar_tbl_size’
| drivers/pci/dmar.c:62: warning: ‘struct acpi_dmar_device_scope’ declared inside parameter list
| drivers/pci/dmar.c:62: warning: its scope is only this definition or declaration, which is probably not what you want

Triggers due to this commit:

  d0b03bd: x2apic/intr-remap: decouple interrupt remapping from x2apic

Which exposed a pre-existing but dormant fragility of the 'select X86_X2APIC'
it moved around and turned that fragility into a build failure.

Replace it with a proper 'depends on' construct.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
LKML-Reference: <1239084280.22733.404.camel@macbook.infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/Kconfig