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 (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
673673 __u32 op;
674674 __u32 nattr;
675675 /* Variable length array of attributes */
676− struct kfd_ioctl_svm_attribute attrs[0];
676+ struct kfd_ioctl_svm_attribute attrs[];
677677 };
678678
679679 /**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t