mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drm/radeon: Include swiotlb.h if SWIOTLB configured.
@ 2012-08-13  2:09 Huacai Chen
  2012-08-13  7:00 ` Paul Menzel
  0 siblings, 1 reply; 6+ messages in thread
From: Huacai Chen @ 2012-08-13  2:09 UTC (permalink / raw)
  To: David Airlie
  Cc: dri-devel, linux-kernel, Fuxin Zhang, Michel Dänzer,
	Alex Deucher, Huacai Chen, Hongliang Tao, Hua Yan

When SWIOTLB is configured, if without this patch kernel compilation
fails.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
Signed-off-by: Hongliang Tao <taohl@lemote.com>
Signed-off-by: Hua Yan <yanh@lemote.com>
Cc: dri-devel@lists.freedesktop.org
---
 drivers/gpu/drm/radeon/radeon_ttm.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
index 5b71c71..fc3ac22 100644
--- a/drivers/gpu/drm/radeon/radeon_ttm.c
+++ b/drivers/gpu/drm/radeon/radeon_ttm.c
@@ -41,6 +41,10 @@
 #include "radeon_reg.h"
 #include "radeon.h"
 
+#ifdef CONFIG_SWIOTLB
+#include <linux/swiotlb.h>
+#endif
+
 #define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
 
 static int radeon_ttm_debugfs_init(struct radeon_device *rdev);
-- 
1.7.7.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-13  9:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-13  2:09 [PATCH] drm/radeon: Include swiotlb.h if SWIOTLB configured Huacai Chen
2012-08-13  7:00 ` Paul Menzel
2012-08-13  7:16   ` Huacai Chen
2012-08-13  7:50     ` Paul Menzel
2012-08-13  8:04       ` Huacai Chen
2012-08-13  9:11         ` Paul Menzel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®