| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH V5 11/18] drm/radeon: Include swiotlb.h if SWIOTLB configured. |
| From: | Huacai Chen <chenhuacai@gmail.com> |
| Date: | Sat, 11 Aug 2012 17:32:16 +0800 |
| Cc: | linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Fuxin Zhang <zhangfx@lemote.com>, Zhangjin Wu <wuzhangjin@gmail.com>, Huacai Chen <chenhc@lemote.com>, Hongliang Tao <taohl@lemote.com>, Hua Yan <yanh@lemote.com>, dri-devel@lists.freedesktop.org |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=RGOUkrqVvO3eEpXHKjS11spt+cmvSpOSuGuS3oZMkuI=; b=Qc9pkKtlaLpkqtAMdaBRppmGBXh9/DxSc4PlgF+n3uQOTdFY9LR3U61jfOoBTqcTDY n5Jvp8n/wr0DMknlmRlY9odsYkZfoqxqa7mz6OcgN0Qj/qRbmtxt8vXk9Tyw0xBp9H9w XT1IVvJta2M0dKZaZ+szNUPh3GAdyZVeEW1u10uhOomExDpfnEFGWFfJ+CGykWTa1891 zd9aX9AJ0YqMqHjSPYtZozGrmjBjrO4J86kcirxjP5ZMKlT9/+Bd/pWSmMazeZNQks+S MVIJTQmM20KrWb+l9IBE91luelTz96ynerBzaU9xfOo+iA/XAOmRUcXQl2W6bOq6FA5v iTng== |
| In-reply-to: | <1344677543-22591-1-git-send-email-chenhc@lemote.com> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <1344677543-22591-1-git-send-email-chenhc@lemote.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
Loongson has SWIOTLB 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 |
| Previous by Date: | [PATCH V5 10/18] MIPS: Loongson: Add Loongson-3 Kconfig options., Huacai Chen |
|---|---|
| Next by Date: | [PATCH V5 12/18] drm: Handle io prot correctly for MIPS., Huacai Chen |
| Previous by Thread: | Re: [PATCH V5 10/18] MIPS: Loongson: Add Loongson-3 Kconfig options., John Crispin |
| Next by Thread: | [PATCH V5 12/18] drm: Handle io prot correctly for MIPS., Huacai Chen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |