aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/dlm_device.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2020-04-24 10:50:00 -0500
committerGustavo A. R. Silva <gustavo@embeddedor.com>2020-05-04 11:30:15 -0500
commit1e6e9d0f4859ec698d55381ea26f4136eff3afe1 (patch)
treee16be817042e5f227c3ff3bfa5dc97df5ed0ff00 /include/uapi/linux/dlm_device.h
parentLinux 5.7-rc4 (diff)
downloadlinux-dev-1e6e9d0f4859ec698d55381ea26f4136eff3afe1.tar.xz
linux-dev-1e6e9d0f4859ec698d55381ea26f4136eff3afe1.zip
uapi: revert flexible-array conversions
These structures can get embedded in other structures in user-space and cause all sorts of warnings and problems. So, we better don't take any chances and keep the zero-length arrays in place for now. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Diffstat (limited to 'include/uapi/linux/dlm_device.h')
-rw-r--r--include/uapi/linux/dlm_device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/dlm_device.h b/include/uapi/linux/dlm_device.h
index e83954c69fff..f880d2831160 100644
--- a/include/uapi/linux/dlm_device.h
+++ b/include/uapi/linux/dlm_device.h
@@ -45,13 +45,13 @@ struct dlm_lock_params {
void __user *bastaddr;
struct dlm_lksb __user *lksb;
char lvb[DLM_USER_LVB_LEN];
- char name[];
+ char name[0];
};
struct dlm_lspace_params {
__u32 flags;
__u32 minor;
- char name[];
+ char name[0];
};
struct dlm_purge_params {