[Intel-gfx] [PATCH v3] drm/i915/gvt: declare gvt as i915's soft dependency
Zhenyu Wang
zhenyuw at linux.intel.com
Thu Jul 5 07:21:49 UTC 2018
On 2018.07.04 11:07:45 +0800, intel-gfx-bounces at lists.freedesktop.org wrote:
> From: Hang Yuan <hang.yuan at linux.intel.com>
>
> This helps initramfs builder and other tools to know the full dependencies
> of i915 and have gvt module loaded with i915.
>
> v2: add condition and change to pre-dependency (Chris)
> v3: move declaration to gvt.c. (Chris)
>
> Signed-off-by: Hang Yuan <hang.yuan at linux.intel.com>
> ---
> drivers/gpu/drm/i915/gvt/gvt.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/gvt/gvt.c b/drivers/gpu/drm/i915/gvt/gvt.c
> index 4e65266..00f487e9 100644
> --- a/drivers/gpu/drm/i915/gvt/gvt.c
> +++ b/drivers/gpu/drm/i915/gvt/gvt.c
> @@ -468,3 +468,10 @@ int intel_gvt_init_device(struct drm_i915_private *dev_priv)
> kfree(gvt);
> return ret;
> }
> +
> +#if IS_ENABLED(CONFIG_DRM_I915_GVT_KVMGT)
> +MODULE_SOFTDEP("pre: kvmgt");
> +#elif IS_ENABLED(CONFIG_DRM_I915_GVT_XENGT)
> +MODULE_SOFTDEP("pre: xengt");
> +#endif
> +
Why xengt? it's not in upstream at all, so should be splitted and
apply to its topic branch only.
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20180705/3596873b/attachment.sig>
More information about the Intel-gfx
mailing list