diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1334-drm-amdgpu-amdkfd-remove-unused-parameter-in-kfd-all.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/1334-drm-amdgpu-amdkfd-remove-unused-parameter-in-kfd-all.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1334-drm-amdgpu-amdkfd-remove-unused-parameter-in-kfd-all.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1334-drm-amdgpu-amdkfd-remove-unused-parameter-in-kfd-all.patch new file mode 100644 index 00000000..14f5edfd --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1334-drm-amdgpu-amdkfd-remove-unused-parameter-in-kfd-all.patch @@ -0,0 +1,43 @@ +From d87bbb7c15d69c5211d79c79e2cb1257feab270f Mon Sep 17 00:00:00 2001 +From: Eric Huang <JinHuiEric.Huang@amd.com> +Date: Tue, 22 Aug 2017 13:58:51 -0400 +Subject: [PATCH 1334/4131] drm/amdgpu/amdkfd: remove unused parameter in kfd + alloc_memory_of_gpu + +Change-Id: I99ef3344e977051a16c5fbc21fb18c409d5d7136 +Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com> +--- + drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 2 +- + drivers/gpu/drm/amd/amdkfd/kfd_process.c | 3 +-- + 2 files changed, 2 insertions(+), 3 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +index 29fca8d..b2795af 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +@@ -1202,7 +1202,7 @@ static int kfd_ioctl_alloc_memory_of_gpu(struct file *filep, + err = dev->kfd2kgd->alloc_memory_of_gpu( + dev->kgd, args->va_addr, args->size, + pdd->vm, (struct kgd_mem **) &mem, &offset, +- NULL, flags); ++ flags); + + if (err) + goto err_unlock; +diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd/amdkfd/kfd_process.c +index 2e784dd..4080ac0 100644 +--- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c ++++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c +@@ -119,8 +119,7 @@ static int kfd_process_alloc_gpuvm(struct kfd_process *p, + + err = kdev->kfd2kgd->alloc_memory_of_gpu(kdev->kgd, gpu_va, size, + pdd->vm, +- (struct kgd_mem **)&mem, NULL, NULL, +- flags); ++ (struct kgd_mem **)&mem, NULL, flags); + if (err) + goto err_alloc_mem; + +-- +2.7.4 + |