Replace zero-length array in JFS
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEIodevzQLVs53l6BhNqiEXrVAjGQFAl7WbbAACgkQNqiEXrVA jGRBvg//aff/q785MyIKlv2icnWJTFIfkFhdKBfD36OI5Obur3ko17gJiRQ7BvIl 07yBTOpcqYyq4pThFXA8TfiZyRxKv0faHeFYmtmEum6gZNtHPmpvfy1JFr12vjHZ SWSpylW6nprQJa61KwGHcRqTGuWe0sco6BBAQ/E015wJLKrtIpNCH5H3x3eDv8we nBPSHSu1BsJFTcf94ECZhjbsiLgLgTaYVFUU8tw7eTp7EkZz9xq6wYmhZ6e5Z6Ki AGbIQ/c16Nk5B3/8A1bU0pm7BHz9Zx1ucNy4KZqyFl2fWEmQiv1ofa3cfLI+ZAF2 /TFzLW+rpvesc+Byk7PgzRrLNXAMBk+botzdlN8JPaPDFYcm6whnRKstmjYGAzCI /bpTI9wyEPzlfWtt5h2ws1KaP5HNl1OLd3sJCzfwH+nKaeJpdBBSaZRQ0yZWIsg5 hzt9WnJ10351sbLbAA4ybsOlWJvhPtSo8jSiGUGzu7aFyfa7H82nslWHuFjeI3F0 qgcA5j6LJ8qAviMnhxX5jrqIMNZzyf+P5/oJvXjfSeWft1yD6EUqRqb7i0FREjh6 qzxiX6xhRSh8AIr3XlToG3W7KULQkBJKwZumSTQ2X03yJRhelqKAs3LvvyXoZuG3 oFvGgiGNph0VSTTPdOSrZZ3tOCDiONXfHHOFpghk4qKdWgFoWtg= =yNwD -----END PGP SIGNATURE----- Merge tag 'jfs-5.8' of git://github.com/kleikamp/linux-shaggy Pull JFS update from David Kleikamp: "Replace zero-length array in JFS" * tag 'jfs-5.8' of git://github.com/kleikamp/linux-shaggy: jfs: Replace zero-length array with flexible-array member
This commit is contained in:
commit
cadf32234b
|
@ -2964,7 +2964,7 @@ struct jfs_dirent {
|
|||
loff_t position;
|
||||
int ino;
|
||||
u16 name_len;
|
||||
char name[0];
|
||||
char name[];
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
@ -17,12 +17,12 @@ struct jfs_ea {
|
|||
u8 flag; /* Unused? */
|
||||
u8 namelen; /* Length of name */
|
||||
__le16 valuelen; /* Length of value */
|
||||
char name[0]; /* Attribute name (includes null-terminator) */
|
||||
char name[]; /* Attribute name (includes null-terminator) */
|
||||
}; /* Value immediately follows name */
|
||||
|
||||
struct jfs_ea_list {
|
||||
__le32 size; /* overall size */
|
||||
struct jfs_ea ea[0]; /* Variable length list */
|
||||
struct jfs_ea ea[]; /* Variable length list */
|
||||
};
|
||||
|
||||
/* Macros for defining maxiumum number of bytes supported for EAs */
|
||||
|
|
Loading…
Reference in New Issue