Skip to content

Commit 72b6a9b

Browse files
committed
Remove DRM_UNLOCKED usage that has disappeared with Linux 6.8
This was removed in Linux with commit 2798ffcc1d6a788b5769b1fbcf0750dfc06ae98a https://lwn.net/Articles/952344/ https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Ronan Keryell <[email protected]>
1 parent af7a239 commit 72b6a9b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/runtime_src/core/edge/drm/zocl/common/zocl_drv.c

+5
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,11 @@ const struct vm_operations_struct zocl_bo_vm_ops = {
952952
.close = drm_gem_vm_close,
953953
};
954954

955+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0)
956+
/* This was removed in 6.8 */
957+
#define DRM_UNLOCKED 0
958+
#endif
959+
955960
static const struct drm_ioctl_desc zocl_ioctls[] = {
956961
DRM_IOCTL_DEF_DRV(ZOCL_CREATE_BO, zocl_create_bo_ioctl,
957962
DRM_AUTH|DRM_UNLOCKED|DRM_RENDER_ALLOW),

src/runtime_src/core/pcie/driver/linux/xocl/userpf/xocl_drm.c

+5
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,11 @@ static uint xocl_poll(struct file *filp, poll_table *wait)
407407
return xocl_poll_client(filp, wait, priv->driver_priv);
408408
}
409409

410+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 8, 0)
411+
/* This was removed in 6.8 */
412+
#define DRM_UNLOCKED 0
413+
#endif
414+
410415
static const struct drm_ioctl_desc xocl_ioctls[] = {
411416
DRM_IOCTL_DEF_DRV(XOCL_CREATE_BO, xocl_create_bo_ioctl,
412417
DRM_AUTH|DRM_UNLOCKED|DRM_RENDER_ALLOW),

0 commit comments

Comments
 (0)