diff options
author | Felix Kuehling <[email protected]> | 2022-02-15 18:54:38 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2022-02-16 17:30:03 -0500 |
commit | 79aa0367385ceaf5351ea77ea1fb66136739ea9d (patch) | |
tree | 60dfa1b8d8da433014365f8bb19366ae6abe82c9 | |
parent | 967af863f23344aed4353ddbcaa8d6d6727b34fa (diff) |
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
CC: Changcheng Deng <[email protected]>
Signed-off-by: Felix Kuehling <[email protected]>
Reviewed-by: Philip Yang <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | include/uapi/linux/kfd_ioctl.h | 2 |
1 files changed, 1 insertions, 1 deletions
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[]; }; /** |