]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
net: bgmac: Fix return value check for fixed_phy_register()
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_dma_buf.c
index 0c001bb8fc2b03aa69c61d00048c0ba37c9ce2e2..12210598e5b8e64c8f88d50eaec69ff3f3161bac 100644 (file)
@@ -149,7 +149,7 @@ static struct sg_table *amdgpu_dma_buf_map(struct dma_buf_attachment *attach,
        if (!bo->tbo.pin_count) {
                /* move buffer into GTT or VRAM */
                struct ttm_operation_ctx ctx = { false, false };
-               unsigned domains = AMDGPU_GEM_DOMAIN_GTT;
+               unsigned int domains = AMDGPU_GEM_DOMAIN_GTT;
 
                if (bo->preferred_domains & AMDGPU_GEM_DOMAIN_VRAM &&
                    attach->peer2peer) {
@@ -336,7 +336,7 @@ amdgpu_dma_buf_create_obj(struct drm_device *dev, struct dma_buf *dma_buf)
 
        ret = amdgpu_gem_object_create(adev, dma_buf->size, PAGE_SIZE,
                                       AMDGPU_GEM_DOMAIN_CPU, flags,
-                                      ttm_bo_type_sg, resv, &gobj);
+                                      ttm_bo_type_sg, resv, &gobj, 0);
        if (ret)
                goto error;
 
This page took 0.034569 seconds and 4 git commands to generate.