summaryrefslogtreecommitdiff
path: root/fs/udf
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-10-03 12:19:02 +0300
committerJan Kara <jack@suse.cz>2023-10-03 12:27:52 +0300
commitbceef326bc87781abb5139898d5f2807881194d9 (patch)
tree354d3f836d9904cf52889de606a0230f8e792416 /fs/udf
parentd1d3fcb324eceee7c4bf34b0ac89942ee16e3b74 (diff)
downloadlinux-bceef326bc87781abb5139898d5f2807881194d9.tar.xz
udf: Avoid unneeded variable length array in struct fileIdentDesc
impUse variable length array in struct fileIdentDesc is never used. It serves only for documentation purposes of the on-disk format. Remove it from the struct so that it doesn't confuse the compiler and reviewers. Reported-by: "Gustavo A. R. Silva" <gustavoars@kernel.org> References: https://lore.kernel.org/all/ZRrsYkKIQe8K6F/t@work Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/ecma_167.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/udf/ecma_167.h b/fs/udf/ecma_167.h
index de17a97e8667..415b050b977d 100644
--- a/fs/udf/ecma_167.h
+++ b/fs/udf/ecma_167.h
@@ -471,7 +471,7 @@ struct fileIdentDesc {
uint8_t lengthFileIdent;
struct long_ad icb;
__le16 lengthOfImpUse;
- uint8_t impUse[];
+ /* uint8_t impUse[]; */
/* uint8_t fileIdent[]; */
/* uint8_t padding[]; */
} __packed;