summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
diff options
context:
space:
mode:
authorLaura Abbott2018-04-13 23:24:12 +0200
committerOded Gabbay2018-04-13 23:24:12 +0200
commitaf47b390273f1068bdb1d01263a81948c4e2f97a (patch)
tree6f8dcc6b3ea0763846970c04063f75aff9bd358b /drivers/gpu/drm/amd/amdkfd/kfd_priv.h
parentdrm/amdkfd: Add sanity checks in IRQ handlers (diff)
downloadkernel-qcow2-linux-af47b390273f1068bdb1d01263a81948c4e2f97a.tar.gz
kernel-qcow2-linux-af47b390273f1068bdb1d01263a81948c4e2f97a.tar.xz
kernel-qcow2-linux-af47b390273f1068bdb1d01263a81948c4e2f97a.zip
drm/amdkfd: Remove vla
There's an ongoing effort to remove VLAs[1] from the kernel to eventually turn on -Wvla. Switch to a constant value that covers all hardware. [1] https://lkml.org/lkml/2018/3/7/621 Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_priv.h')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_priv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
index 10d5b5445195..5e3990bb4c4b 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_priv.h
@@ -39,6 +39,8 @@
#include "amd_shared.h"
+#define KFD_MAX_RING_ENTRY_SIZE 8
+
#define KFD_SYSFS_FILE_MODE 0444
/* GPU ID hash width in bits */