summaryrefslogtreecommitdiff
path: root/include/uapi/linux/dlm_device.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2020-04-24 18:50:00 +0300
committerGustavo A. R. Silva <gustavo@embeddedor.com>2020-05-04 19:30:15 +0300
commit1e6e9d0f4859ec698d55381ea26f4136eff3afe1 (patch)
treee16be817042e5f227c3ff3bfa5dc97df5ed0ff00 /include/uapi/linux/dlm_device.h
parent0e698dfa282211e414076f9dc7e83c1c288314fd (diff)
downloadlinux-1e6e9d0f4859ec698d55381ea26f4136eff3afe1.tar.xz
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 {