swiotlb-xen: On x86-32 builts, select SWIOTLB instead of depending on it.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 8 Oct 2010 15:06:20 +0000 (11:06 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 18 Oct 2010 14:49:40 +0000 (10:49 -0400)
We used to depend on CONFIG_SWIOTLB, but that is disabled by default.
So when compiling we get this compile error:

arch/x86/xen/pci-swiotlb-xen.c: In function 'pci_xen_swiotlb_detect':
arch/x86/xen/pci-swiotlb-xen.c:48: error: lvalue required as left operand of assignment

Fix it by actually activating the SWIOTLB library.

Reported-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/Kconfig

index f70a627..6e6180c 100644 (file)
@@ -74,6 +74,7 @@ config XEN_PLATFORM_PCI
 
 config SWIOTLB_XEN
        def_bool y
-       depends on PCI && SWIOTLB
+       depends on PCI
+       select SWIOTLB
 
 endmenu