summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorJocelyn Falempe <jfalempe@redhat.com>2024-08-07 15:36:12 +0200
committerJocelyn Falempe <jfalempe@redhat.com>2024-08-12 10:14:10 +0200
commitd27a14060f8501e556a65b346b2644be0d0a2de8 (patch)
treeebe260cd11d32194a317660278cb878bdccdd0b3 /include/drm
parent6d470f9b8cd3e88d097b332bab3e7231f2fb3dad (diff)
drm/panic: Move drm_panic_register prototype to drm_crtc_internal.h
drm_panic_[un]register() are only used by the core drm, and are not intended to be called by other drm drivers, so move their prototypes to drm_crtc_internal.h. Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20240807134902.458669-4-jfalempe@redhat.com
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_panic.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/drm/drm_panic.h b/include/drm/drm_panic.h
index 73bb3f3d9ed9..a4bd3681920d 100644
--- a/include/drm/drm_panic.h
+++ b/include/drm/drm_panic.h
@@ -146,16 +146,4 @@ struct drm_scanout_buffer {
#define drm_panic_unlock(dev, flags) \
raw_spin_unlock_irqrestore(&(dev)->mode_config.panic_lock, flags)
-#ifdef CONFIG_DRM_PANIC
-
-void drm_panic_register(struct drm_device *dev);
-void drm_panic_unregister(struct drm_device *dev);
-
-#else
-
-static inline void drm_panic_register(struct drm_device *dev) {}
-static inline void drm_panic_unregister(struct drm_device *dev) {}
-
-#endif
-
#endif /* __DRM_PANIC_H__ */