drm/i915: Hide enable_gvt modparam when not compiled in
authorJoonas Lahtinen <[email protected]>
Fri, 16 Nov 2018 14:44:47 +0000 (16:44 +0200)
committerJoonas Lahtinen <[email protected]>
Mon, 19 Nov 2018 11:19:04 +0000 (13:19 +0200)
Hide the enable_gvt modparam in the default scenario where
support has not been compiled in.

Cc: Zhenyu Wang <[email protected]>
Cc: Zhi Wang <[email protected]>
Cc: Chris Wilson <[email protected]>
Signed-off-by: Joonas Lahtinen <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Acked-by: Zhenyu Wang <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_params.c

index 8d71886b5f037074eba35363192dc905cf9d8467..2e0356561839d15016d72394d7960388545fb223 100644 (file)
@@ -167,8 +167,10 @@ i915_param_named_unsafe(inject_load_failure, uint, 0400,
 i915_param_named(enable_dpcd_backlight, bool, 0600,
        "Enable support for DPCD backlight control (default:false)");
 
+#if IS_ENABLED(CONFIG_DRM_I915_GVT)
 i915_param_named(enable_gvt, bool, 0400,
        "Enable support for Intel GVT-g graphics virtualization host support(default:false)");
+#endif
 
 static __always_inline void _print_param(struct drm_printer *p,
                                         const char *name,