Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: Jani Nikula <jani.nikula@intel.com>, dri-devel@lists.freedesktop.org
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [RESEND] drm/edid: prefer forward declarations over includes in drm_edid.h
Date: Fri, 5 Jan 2024 09:32:13 +0100	[thread overview]
Message-ID: <2d74c31f-7a54-449d-9ddd-9a902be86ee1@suse.de> (raw)
In-Reply-To: <20240104211028.1129606-1-jani.nikula@intel.com>


[-- Attachment #1.1: Type: text/plain, Size: 1731 bytes --]



Am 04.01.24 um 22:10 schrieb Jani Nikula:
> There's no need to include either linux/hdmi.h or drm/drm_mode.h. They
> can be removed by using forward declarations.
> 
> While at it, group the forward declarations together, and remove the
> unnecessary ones.
> 
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>

> ---
>   include/drm/drm_edid.h | 12 +++++-------
>   1 file changed, 5 insertions(+), 7 deletions(-)
> 
> diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
> index 54cc6f04a708..86c1812a8034 100644
> --- a/include/drm/drm_edid.h
> +++ b/include/drm/drm_edid.h
> @@ -24,11 +24,14 @@
>   #define __DRM_EDID_H__
>   
>   #include <linux/types.h>
> -#include <linux/hdmi.h>
> -#include <drm/drm_mode.h>
>   
> +enum hdmi_quantization_range;
> +struct drm_connector;
>   struct drm_device;
> +struct drm_display_mode;
>   struct drm_edid;
> +struct hdmi_avi_infoframe;
> +struct hdmi_vendor_infoframe;
>   struct i2c_adapter;
>   
>   #define EDID_LENGTH 128
> @@ -319,11 +322,6 @@ struct cea_sad {
>   	u8 byte2; /* meaning depends on format */
>   };
>   
> -struct drm_encoder;
> -struct drm_connector;
> -struct drm_connector_state;
> -struct drm_display_mode;
> -
>   int drm_edid_to_sad(const struct edid *edid, struct cea_sad **sads);
>   int drm_edid_to_speaker_allocation(const struct edid *edid, u8 **sadb);
>   int drm_av_sync_delay(struct drm_connector *connector,

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

  parent reply	other threads:[~2024-01-05  8:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-04 21:10 [RESEND] drm/edid: prefer forward declarations over includes in drm_edid.h Jani Nikula
2024-01-05  0:00 ` ✓ Fi.CI.BAT: success for drm/edid: prefer forward declarations over includes in drm_edid.h (rev2) Patchwork
2024-01-05  1:59 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-01-05  8:32 ` Thomas Zimmermann [this message]
2024-01-05 11:41   ` [RESEND] drm/edid: prefer forward declarations over includes in drm_edid.h Jani Nikula
2024-01-12 12:15 ` ✓ Fi.CI.IGT: success for drm/edid: prefer forward declarations over includes in drm_edid.h (rev2) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2d74c31f-7a54-449d-9ddd-9a902be86ee1@suse.de \
    --to=tzimmermann@suse.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox