Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

Jan Kara bceef326 d1d3fcb3

+1 -1
+1 -1
fs/udf/ecma_167.h
··· 471 471 uint8_t lengthFileIdent; 472 472 struct long_ad icb; 473 473 __le16 lengthOfImpUse; 474 - uint8_t impUse[]; 474 + /* uint8_t impUse[]; */ 475 475 /* uint8_t fileIdent[]; */ 476 476 /* uint8_t padding[]; */ 477 477 } __packed;