History

drm/amdkfd: Replace zero-length array with flexible-array member

Reference: https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays

Felix Kuehling committed 4 years ago

Commit 79aa0361 parent 967af861 file · +1 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/kfd_ioctl.h+1−1
@@ -673,7 +673,7 @@ struct kfd_ioctl_svm_args { · 672 unmodified lines
673 __u32 op;673 __u32 op;
674 __u32 nattr;674 __u32 nattr;
675 /* Variable length array of attributes */675 /* Variable length array of attributes */
676 struct kfd_ioctl_svm_attribute attrs[0];676 struct kfd_ioctl_svm_attribute attrs[];
677};677};
678 678
679/**679/**