From: Jeff Layton <jlayton@kernel.org>
To: Alex Deucher <alexander.deucher@amd.com>, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/amdgpu/atomfirmware: silence UBSAN warning
Date: Mon, 01 Jul 2024 15:05:06 -0400 [thread overview]
Message-ID: <1eb059ecf3fb9d2d9e32ac00a791e1795124edf6.camel@kernel.org> (raw)
In-Reply-To: <20240701165521.1825864-1-alexander.deucher@amd.com>
On Mon, 2024-07-01 at 12:55 -0400, Alex Deucher wrote:
> This is a variably sized array.
>
> Link:
> https://lists.freedesktop.org/archives/amd-gfx/2024-June/110420.html
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
> drivers/gpu/drm/amd/include/atomfirmware.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/include/atomfirmware.h
> b/drivers/gpu/drm/amd/include/atomfirmware.h
> index 571691837200..09cbc3afd6d8 100644
> --- a/drivers/gpu/drm/amd/include/atomfirmware.h
> +++ b/drivers/gpu/drm/amd/include/atomfirmware.h
> @@ -734,7 +734,7 @@ struct atom_gpio_pin_lut_v2_1
> {
> struct atom_common_table_header table_header;
> /*the real number of this included in the structure is calcualted
> by using the (whole structure size - the header size)/size of
> atom_gpio_pin_lut */
> - struct atom_gpio_pin_assignment gpio_pin[8];
> + struct atom_gpio_pin_assignment gpio_pin[];
> };
>
>
Works for me:
Tested-by: Jeff Layton <jlayton@kernel.org>
next prev parent reply other threads:[~2024-07-01 19:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-01 16:55 [PATCH] drm/amdgpu/atomfirmware: silence UBSAN warning Alex Deucher
2024-07-01 19:05 ` Jeff Layton [this message]
2024-07-03 12:59 ` SHANMUGAM, SRINIVASAN
-- strict thread matches above, loose matches on Subject: below --
2024-09-06 14:46 [PATCH] drm/amdgpu/atomfirmware: Silence " Alex Deucher
2024-09-09 17:19 ` Alex Deucher
2024-09-09 17:41 ` Harry Wentland
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=1eb059ecf3fb9d2d9e32ac00a791e1795124edf6.camel@kernel.org \
--to=jlayton@kernel.org \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
/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