From: Zhi Wang <zhiwang@kernel.org>
To: Jani Nikula <jani.nikula@intel.com>
Cc: intel-gfx@lists.freedesktop.org,
Zhenyu Wang <zhenyuw@linux.intel.com>,
Zhi Wang <zhi.wang.linux@gmail.com>,
intel-gvt-dev@lists.freedesktop.org,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/2] drm/edid: make drm_edid_block_valid() static
Date: Thu, 30 May 2024 20:17:04 +0300 [thread overview]
Message-ID: <20240530201704.0000492c.zhiwang@kernel.org> (raw)
In-Reply-To: <20240530124352.362736-2-jani.nikula@intel.com>
On Thu, 30 May 2024 15:43:52 +0300
Jani Nikula <jani.nikula@intel.com> wrote:
> drm_edid_block_valid() is no longer used outside of drm_edid.c. Make
> it static.
>
> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> ---
>
> Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
> Cc: Zhi Wang <zhi.wang.linux@gmail.com>
> Cc: intel-gvt-dev@lists.freedesktop.org
> Cc: intel-gfx@lists.freedesktop.org
> Cc: dri-devel@lists.freedesktop.org
> ---
> drivers/gpu/drm/drm_edid.c | 17 ++++-------------
> include/drm/drm_edid.h | 2 --
> 2 files changed, 4 insertions(+), 15 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
> index f68a41eeb1fa..13b3fd351b16 100644
> --- a/drivers/gpu/drm/drm_edid.c
> +++ b/drivers/gpu/drm/drm_edid.c
> @@ -1966,22 +1966,14 @@ static void edid_block_dump(const char
> *level, const void *block, int block_num) block, EDID_LENGTH, false);
> }
>
> -/**
> - * drm_edid_block_valid - Sanity check the EDID block (base or
> extension)
> - * @_block: pointer to raw EDID block
> - * @block_num: type of block to validate (0 for base, extension
> otherwise)
> - * @print_bad_edid: if true, dump bad EDID blocks to the console
> - * @edid_corrupt: if true, the header or checksum is invalid
> - *
> +/*
> * Validate a base or extension EDID block and optionally dump bad
> blocks to
> * the console.
> - *
> - * Return: True if the block is valid, false otherwise.
> */
> -bool drm_edid_block_valid(u8 *_block, int block_num, bool
> print_bad_edid,
> - bool *edid_corrupt)
> +static bool drm_edid_block_valid(void *_block, int block_num, bool
> print_bad_edid,
> + bool *edid_corrupt)
> {
> - struct edid *block = (struct edid *)_block;
> + struct edid *block = _block;
> enum edid_block_status status;
> bool is_base_block = block_num == 0;
> bool valid;
> @@ -2024,7 +2016,6 @@ bool drm_edid_block_valid(u8 *_block, int
> block_num, bool print_bad_edid,
> return valid;
> }
> -EXPORT_SYMBOL(drm_edid_block_valid);
>
> /**
> * drm_edid_is_valid - sanity check EDID data
> diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
> index 6bdfa254a1c1..eaac5e665892 100644
> --- a/include/drm/drm_edid.h
> +++ b/include/drm/drm_edid.h
> @@ -440,8 +440,6 @@ int drm_add_modes_noedid(struct drm_connector
> *connector, int hdisplay, int vdisplay);
>
> int drm_edid_header_is_valid(const void *edid);
> -bool drm_edid_block_valid(u8 *raw_edid, int block, bool
> print_bad_edid,
> - bool *edid_corrupt);
> bool drm_edid_is_valid(struct edid *edid);
> void drm_edid_get_monitor_name(const struct edid *edid, char *name,
> int buflen);
Acked-by: Zhi Wang <zhiwang@kernel.rog>
next prev parent reply other threads:[~2024-05-30 17:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 12:43 [PATCH 1/2] drm/i915/gvt: stop using drm_edid_block_valid() Jani Nikula
2024-05-30 12:43 ` [PATCH 2/2] drm/edid: make drm_edid_block_valid() static Jani Nikula
2024-05-30 17:17 ` Zhi Wang [this message]
2024-05-30 13:28 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/gvt: stop using drm_edid_block_valid() Patchwork
2024-05-30 17:14 ` [PATCH 1/2] " Zhi Wang
2024-05-31 7:36 ` ✗ Fi.CI.IGT: failure for series starting with [1/2] " 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=20240530201704.0000492c.zhiwang@kernel.org \
--to=zhiwang@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-gvt-dev@lists.freedesktop.org \
--cc=jani.nikula@intel.com \
--cc=zhenyuw@linux.intel.com \
--cc=zhi.wang.linux@gmail.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