ret = parent->ops->has_signaled(sync_pt);
if (0 > ret)
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 68)
fence->error = ret;
#else
fence->status = ret;
static inline int kbase_fence_out_signal(struct kbase_jd_atom *katom,
int status)
{
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 68))
katom->dma_fence.fence->error = status;
#else
katom->dma_fence.fence->status = status;
struct kbase_context *kctx = katom->kctx;
/* Cancel atom if fence is erroneous */
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 68))
if (dma_fence_is_signaled(kcb->fence) && kcb->fence->error)
#else
if (dma_fence_is_signaled(kcb->fence) && kcb->fence->status < 0)
* 1 : signaled
*/
if (dma_fence_is_signaled(fence)) {
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 68))
int status = fence->error;
#else
int status = fence->status;