diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-04-24 10:50:00 -0500 |
---|---|---|
committer | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-05-04 11:30:15 -0500 |
commit | 1e6e9d0f4859ec698d55381ea26f4136eff3afe1 (patch) | |
tree | e16be817042e5f227c3ff3bfa5dc97df5ed0ff00 /include/uapi/linux/mmc | |
parent | 0e698dfa282211e414076f9dc7e83c1c288314fd (diff) |
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/mmc')
-rw-r--r-- | include/uapi/linux/mmc/ioctl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/mmc/ioctl.h b/include/uapi/linux/mmc/ioctl.h index 98e29e7f54ac..00c08120f3ba 100644 --- a/include/uapi/linux/mmc/ioctl.h +++ b/include/uapi/linux/mmc/ioctl.h @@ -57,7 +57,7 @@ struct mmc_ioc_cmd { */ struct mmc_ioc_multi_cmd { __u64 num_of_cmds; - struct mmc_ioc_cmd cmds[]; + struct mmc_ioc_cmd cmds[0]; }; #define MMC_IOC_CMD _IOWR(MMC_BLOCK_MAJOR, 0, struct mmc_ioc_cmd) |