From patchwork Tue Sep 26 12:19:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jani Nikula X-Patchwork-Id: 13399156 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 40CAEE7E62F for ; Tue, 26 Sep 2023 12:19:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B7A3010E3C2; Tue, 26 Sep 2023 12:19:12 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 809F810E3B9; Tue, 26 Sep 2023 12:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695730750; x=1727266750; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ZM1JxfLa9X55Px8XyMwAwckX2mPOZmdLl0t/5gX7hEs=; b=WDxIOLovWQiuZhThYxsUy5lQYa4IIJx+LHQNhAb5z1mA17d44GC1ceDC Dpjy1TVTh1Jb8btTpOCQMFZa4puGXvuw/zGxD5VEB1R/uJx1+KM4twsz/ u3oz8ttE8oJ4YQrbPRMXsBk9u7Jq3+9zBDUOi7ubMStle/6f1kH4ejlt9 fjKTEFJ1WiaqUoJ2UNsMPzBx/P8T0ZgQyXxCM8BnKlPTsx6TuibrSb8wJ eHaCIQF/2OD9WmMNlSBKvoFteH9VLOLT80tNuF0gTcPJOiM4P/gMcuR4N bFDRKqA8x4YalRH10JSc18SgDYQjHr9sXVgytjC/TOobkj8P7HdAjtdn3 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="412467626" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="412467626" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 05:19:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="1079681330" X-IronPort-AV: E=Sophos;i="6.03,177,1694761200"; d="scan'208";a="1079681330" Received: from wagnert-mobl2.ger.corp.intel.com (HELO localhost) ([10.252.52.202]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 05:19:08 -0700 From: Jani Nikula To: intel-gvt-dev@lists.freedesktop.org Date: Tue, 26 Sep 2023 15:19:01 +0300 Message-Id: <20230926121904.499888-1-jani.nikula@intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Subject: [Intel-gfx] [PATCH 1/4] drm/i915/gvt: remove unused to_gvt() and reduce includes 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: Jani Nikula , intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" gvt.h has no need to include i915_drv.h once the unused to_gvt() has been removed. Signed-off-by: Jani Nikula Reviewed-by: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/gvt.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/gvt.h b/drivers/gpu/drm/i915/gvt/gvt.h index 53a0a42a50db..3a0624fe63bf 100644 --- a/drivers/gpu/drm/i915/gvt/gvt.h +++ b/drivers/gpu/drm/i915/gvt/gvt.h @@ -39,7 +39,7 @@ #include -#include "i915_drv.h" +#include "gt/intel_gt.h" #include "intel_gvt.h" #include "debug.h" @@ -368,11 +368,6 @@ struct intel_gvt { struct dentry *debugfs_root; }; -static inline struct intel_gvt *to_gvt(struct drm_i915_private *i915) -{ - return i915->gvt; -} - enum { /* Scheduling trigger by timer */ INTEL_GVT_REQUEST_SCHED = 0,