From: "Christian König" <christian.koenig@amd.com>
To: Felix Kuehling <Felix.Kuehling@amd.com>, amd-gfx@lists.freedesktop.org
Cc: Changcheng Deng <deng.changcheng@zte.com.cn>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/1] drm/amdkfd: Replace zero-length array with flexible-array member
Date: Wed, 16 Feb 2022 11:00:40 +0100 [thread overview]
Message-ID: <dc12ec7e-c506-941b-40d5-23be378ddef5@amd.com> (raw)
In-Reply-To: <20220216003841.1419615-1-Felix.Kuehling@amd.com>
Am 16.02.22 um 01:38 schrieb Felix Kuehling:
> Reference:
> https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays
>
> CC: Changcheng Deng <deng.changcheng@zte.com.cn>
> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> include/uapi/linux/kfd_ioctl.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
> index 6e4268f5e482..baec5a41de3e 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -673,7 +673,7 @@ struct kfd_ioctl_svm_args {
> __u32 op;
> __u32 nattr;
> /* Variable length array of attributes */
> - struct kfd_ioctl_svm_attribute attrs[0];
> + struct kfd_ioctl_svm_attribute attrs[];
> };
>
> /**
prev parent reply other threads:[~2022-02-16 10:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-16 0:38 [PATCH 1/1] drm/amdkfd: Replace zero-length array with flexible-array member Felix Kuehling
2022-02-16 1:30 ` philip yang
2022-02-16 10:00 ` Christian König [this message]
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=dc12ec7e-c506-941b-40d5-23be378ddef5@amd.com \
--to=christian.koenig@amd.com \
--cc=Felix.Kuehling@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=deng.changcheng@zte.com.cn \
--cc=dri-devel@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