Re: [PATCH v2 02/16] drm: add missing header guards to drm_crtc_helper_internal.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 8, 2024 at 7:23 AM Jani Nikula <jani.nikula@xxxxxxxxx> wrote:
>
> Including the file twice can lead to errors.
>
> Signed-off-by: Jani Nikula <jani.nikula@xxxxxxxxx>

Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

> ---
>  drivers/gpu/drm/drm_crtc_helper_internal.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_crtc_helper_internal.h b/drivers/gpu/drm/drm_crtc_helper_internal.h
> index 28e04e750130..ed4deed07abd 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 <drm/drm_connector.h>
>  #include <drm/drm_crtc.h>
>  #include <drm/drm_encoder.h>
> @@ -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__ */
> --
> 2.39.2
>




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux