Skip to contentSkip to conversation

drm: fix building on non-PCI platforms

PATCH Arnd Bergmann 2 participants 2 messages Sep 8, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

BenH's fix to correct building on multi-domain systems broke building DRM for platforms without PCI support. This makes the call to pci_domain_nr conditional in order to fix compilation.

include/drm/drmP.h +4 -0
index 7809d23..5ff5819 100644
@@ -1099,7 +1099,11 @@ static inline int drm_get_pci_domain(struct drm_device *dev)
 		return 0;
 #endif /* __alpha__ */
 
+#ifdef CONFIG_PCI
 	return pci_domain_nr(dev->pdev->bus);
+#else
+	return 0;
+#endif
 }
 
 #if __OS_HAS_AGP
#1 lore raw
Quoted 12 lines · On Wed, 8 Sep 2010 17:15:02 +0200 Arnd Bergmann <[email protected]> wrote:

BenH's fix to correct building on multi-domain systems broke building DRM for platforms without PCI support. This makes the call to pci_domain_nr conditional in order to fix compilation.

include/drm/drmP.h +0 -0
index 7809d23..5ff5819 100644
@@ -1099,7 +1099,11 @@ static inline int drm_get_pci_domain(struct drm_device *dev)
 		return 0;

include/drm/drmP.h static inline int drm_get_pci_domain(struct drm_device *dev) · line 1109

Quoted 10 lines
include/drm/drmP.h +4 -0
 #endif /* __alpha__ */
 
+#ifdef CONFIG_PCI
 	return pci_domain_nr(dev->pdev->bus);
+#else
+	return 0;
+#endif
 }
 
 #if __OS_HAS_AGP

I think we fixed this, but I guess Linus hasn't pulled my tree yet...

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center