]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
udf: Get rid of 0-length arrays
authorJan Kara <jack@suse.cz>
Mon, 3 May 2021 09:50:38 +0000 (11:50 +0200)
committerJan Kara <jack@suse.cz>
Wed, 11 Aug 2021 14:54:44 +0000 (16:54 +0200)
commitb3c8c9801eb9b8e0f73246b4b14efbde1a4c570c
tree99e571d7742eb89f6077736fcb12d452c0de7df3
parent04e8ee504a677d07dd60f6c8aae912e4842301c8
udf: Get rid of 0-length arrays

Declare variable length arrays using [] instead of the old-style
declarations using arrays with 0 members. Also comment out entries in
structures beyond the first variable length array (we still do keep them
in comments as a reminder there are further entries in the structure
behind the variable length array). Accessing such entries needs a
careful offset math anyway so it is safer to not have them declared.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/ecma_167.h
fs/udf/osta_udf.h