aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/mmc/ioctl.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/mmc/ioctl.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/mmc/ioctl.h')
-rw-r--r--include/uapi/linux/mmc/ioctl.h2
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)