From: Jani Nikula Date: Fri, 8 Mar 2024 11:55:40 +0000 (+0200) Subject: drm: add missing header guards to drm_crtc_helper_internal.h X-Git-Tag: v6.10-rc1~148^2~24^2~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95035d45de1c988b04d49f2a892e4e1952ac9766;p=thirdparty%2Fkernel%2Flinux.git drm: add missing header guards to drm_crtc_helper_internal.h Including the file twice can lead to errors. Reviewed-by: Alex Deucher Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/b5020cdc2ff6d2f4992ea25cf88d528e4738d700.1709898638.git.jani.nikula@intel.com --- diff --git a/drivers/gpu/drm/drm_crtc_helper_internal.h b/drivers/gpu/drm/drm_crtc_helper_internal.h index 28e04e750130e..ed4deed07abda 100644 --- a/drivers/gpu/drm/drm_crtc_helper_internal.h +++ b/drivers/gpu/drm/drm_crtc_helper_internal.h @@ -26,6 +26,9 @@ * implementation details and are not exported to drivers. */ +#ifndef __DRM_CRTC_HELPER_INTERNAL_H__ +#define __DRM_CRTC_HELPER_INTERNAL_H__ + #include #include #include @@ -44,3 +47,5 @@ drm_connector_mode_valid(struct drm_connector *connector, struct drm_encoder * drm_connector_get_single_encoder(struct drm_connector *connector); + +#endif /* __DRM_CRTC_HELPER_INTERNAL_H__ */