Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm: avoid includes in drm_crtc_helper_internal.h

Prefer forward declarations over includes where possible.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/fb7fb2986e19f949bf3a9b16230a59e0f7aaebdf.1709898638.git.jani.nikula@intel.com

+6 -4
+6 -4
drivers/gpu/drm/drm_crtc_helper_internal.h
··· 29 29 #ifndef __DRM_CRTC_HELPER_INTERNAL_H__ 30 30 #define __DRM_CRTC_HELPER_INTERNAL_H__ 31 31 32 - #include <drm/drm_connector.h> 33 - #include <drm/drm_crtc.h> 34 - #include <drm/drm_encoder.h> 35 - #include <drm/drm_modes.h> 32 + enum drm_mode_status; 33 + struct drm_connector; 34 + struct drm_crtc; 35 + struct drm_display_mode; 36 + struct drm_encoder; 37 + struct drm_modeset_acquire_ctx; 36 38 37 39 /* drm_probe_helper.c */ 38 40 enum drm_mode_status drm_crtc_mode_valid(struct drm_crtc *crtc,