AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] drm/amdkfd: Replace zero-length array with flexible-array member
@ 2022-02-16  0:38 Felix Kuehling
  2022-02-16  1:30 ` philip yang
  2022-02-16 10:00 ` Christian König
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Kuehling @ 2022-02-16  0:38 UTC (permalink / raw)
  To: amd-gfx; +Cc: christian.koenig, dri-devel, Changcheng Deng

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>
---
 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[];
 };
 
 /**
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] drm/amdkfd: Replace zero-length array with flexible-array member
  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
  1 sibling, 0 replies; 3+ messages in thread
From: philip yang @ 2022-02-16  1:30 UTC (permalink / raw)
  To: Felix Kuehling, amd-gfx; +Cc: christian.koenig, dri-devel, Changcheng Deng

[-- Attachment #1: Type: text/html, Size: 1697 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] drm/amdkfd: Replace zero-length array with flexible-array member
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Christian König @ 2022-02-16 10:00 UTC (permalink / raw)
  To: Felix Kuehling, amd-gfx; +Cc: Changcheng Deng, dri-devel



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[];
>   };
>   
>   /**


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-16 10:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox