diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-04-24 18:50:00 +0300 |
---|---|---|
committer | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-05-04 19:30:15 +0300 |
commit | 1e6e9d0f4859ec698d55381ea26f4136eff3afe1 (patch) | |
tree | e16be817042e5f227c3ff3bfa5dc97df5ed0ff00 /include/uapi/linux/fiemap.h | |
parent | 0e698dfa282211e414076f9dc7e83c1c288314fd (diff) | |
download | linux-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/fiemap.h')
-rw-r--r-- | include/uapi/linux/fiemap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/fiemap.h b/include/uapi/linux/fiemap.h index 7a900b2377b6..8c0bc24d5d95 100644 --- a/include/uapi/linux/fiemap.h +++ b/include/uapi/linux/fiemap.h @@ -34,7 +34,7 @@ struct fiemap { __u32 fm_mapped_extents;/* number of extents that were mapped (out) */ __u32 fm_extent_count; /* size of fm_extents array (in) */ __u32 fm_reserved; - struct fiemap_extent fm_extents[]; /* array of mapped extents (out) */ + struct fiemap_extent fm_extents[0]; /* array of mapped extents (out) */ }; #define FIEMAP_MAX_OFFSET (~0ULL) |