Commit f8c168fa authored by Daniel Vetter's avatar Daniel Vetter

drm/i915: static inline for dummy crc functions

Also use #ifdef to keep consistent with all other such cases.

Cc: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent d8882ac7
...@@ -2235,10 +2235,10 @@ int i915_verify_lists(struct drm_device *dev); ...@@ -2235,10 +2235,10 @@ int i915_verify_lists(struct drm_device *dev);
/* i915_debugfs.c */ /* i915_debugfs.c */
int i915_debugfs_init(struct drm_minor *minor); int i915_debugfs_init(struct drm_minor *minor);
void i915_debugfs_cleanup(struct drm_minor *minor); void i915_debugfs_cleanup(struct drm_minor *minor);
#if defined(CONFIG_DEBUG_FS) #ifdef CONFIG_DEBUG_FS
void intel_display_crc_init(struct drm_device *dev); void intel_display_crc_init(struct drm_device *dev);
#else #else
void intel_display_crc_init(struct drm_device *dev) {} static inline void intel_display_crc_init(struct drm_device *dev) {}
#endif #endif
/* i915_gpu_error.c */ /* i915_gpu_error.c */
......
...@@ -1225,7 +1225,7 @@ static void ivb_pipe_crc_update(struct drm_device *dev, enum pipe pipe) ...@@ -1225,7 +1225,7 @@ static void ivb_pipe_crc_update(struct drm_device *dev, enum pipe pipe)
wake_up_interruptible(&pipe_crc->wq); wake_up_interruptible(&pipe_crc->wq);
} }
#else #else
static void ivb_pipe_crc_update(struct drm_device *dev, int pipe) {} static inline void ivb_pipe_crc_update(struct drm_device *dev, int pipe) {}
#endif #endif
/* The RPS events need forcewake, so we add them to a work queue and mask their /* The RPS events need forcewake, so we add them to a work queue and mask their
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment