Skip to content

Commit

Permalink
Merge tag 'jfs-5.8' of git://github.com/kleikamp/linux-shaggy
Browse files Browse the repository at this point in the history
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
  • Loading branch information
torvalds committed Jun 3, 2020
2 parents f3cdc8a + 7aba5dc commit cadf322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/jfs/jfs_dtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -2964,7 +2964,7 @@ struct jfs_dirent {
loff_t position;
int ino;
u16 name_len;
char name[0];
char name[];
};

/*
Expand Down
4 changes: 2 additions & 2 deletions fs/jfs/jfs_xattr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit cadf322

Please sign in to comment.