lkml.org 
[lkml]   [2012]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] drm/radeon: Include swiotlb.h if SWIOTLB configured.
    Date
    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


    \
     
     \ /
      Last update: 2012-08-13 04:42    [W:0.024 / U:0.608 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site