From patchwork Thu Apr 7 16:45:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matthew Auld X-Patchwork-Id: 12805507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0876CC433EF for ; Thu, 7 Apr 2022 16:46:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EA7A310EBA9; Thu, 7 Apr 2022 16:46:34 +0000 (UTC) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47EC110E290; Thu, 7 Apr 2022 16:46:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649349993; x=1680885993; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DBMCO4V0RJ/UUY2J1irP3zA6T34+ts+T70cp8fvTGQI=; b=i1hUGajKFCfS9vXQyzkaBlmPPhJD4E+cxx0EPbHdiK95mOwo5Bl2apb6 Y21vfZvDanDgSnmd9srxKoZ6aFspW/139W7L0tiza/DQxxESykUQrI3YL 4EeOnklQecTenI7sSF/LkOJsH0TSwU/eW23dEMoVZrgJihZD5n+/FsxBu xIkHJCMtx9a599MeUJcou4uTvorlbO3KhmTyxLquN4pyPOm8w9HerbtN0 5tTxsqaY8uQ4CFDlTECxg8J/Y1pNwo1Mr1J4tgWg3GSwJMTIgEBaXyqfI xbr3fY7Toc4gFUTPZOIWlXOWk7d5eogMLgIbma5aXKpJRaPB+JEAsfweP w==; X-IronPort-AV: E=McAfee;i="6400,9594,10310"; a="261072539" X-IronPort-AV: E=Sophos;i="5.90,242,1643702400"; d="scan'208";a="261072539" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 09:46:32 -0700 X-IronPort-AV: E=Sophos;i="5.90,242,1643702400"; d="scan'208";a="571134188" Received: from doboyle-mobl1.ger.corp.intel.com (HELO mwauld-desk1.intel.com) ([10.252.21.221]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2022 09:46:31 -0700 From: Matthew Auld To: intel-gfx@lists.freedesktop.org Date: Thu, 7 Apr 2022 17:45:31 +0100 Message-Id: <20220407164532.1242578-1-matthew.auld@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 1/2] drm/i915: fix broken build X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , =?utf-8?q?Christian_K=C3=B6nig?= , dri-devel@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" I guess this was missed in the conversion or something. Fixes: 7bc80a5462c3 ("dma-buf: add enum dma_resv_usage v4") Signed-off-by: Matthew Auld Cc: Christian König Cc: Daniel Vetter --- drivers/gpu/drm/i915/i915_deps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_deps.c b/drivers/gpu/drm/i915/i915_deps.c index 999210b37325..297b8e4e42ee 100644 --- a/drivers/gpu/drm/i915/i915_deps.c +++ b/drivers/gpu/drm/i915/i915_deps.c @@ -226,7 +226,7 @@ int i915_deps_add_resv(struct i915_deps *deps, struct dma_resv *resv, struct dma_fence *fence; dma_resv_assert_held(resv); - dma_resv_for_each_fence(&iter, resv, true, fence) { + dma_resv_for_each_fence(&iter, resv, dma_resv_usage_rw(true), fence) { int ret = i915_deps_add_dependency(deps, fence, ctx); if (ret)