diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2017-08-22 12:17:35 -0500 |
---|---|---|
committer | Bob Peterson <rpeterso@redhat.com> | 2017-08-25 10:59:21 -0500 |
commit | 561b796987af8b169c47375194527219ef5b0974 (patch) | |
tree | f5b91193c9d61a99a65116a0882a96e63aedb6bd /fs/gfs2/incore.h | |
parent | 942b0cddfbf66295effc9fd879ca85ae10638565 (diff) | |
download | talos-obmc-linux-561b796987af8b169c47375194527219ef5b0974.tar.gz talos-obmc-linux-561b796987af8b169c47375194527219ef5b0974.zip |
gfs2: Silence gcc format-truncation warning
Enlarge sd_fsname to be big enough for the longest long lock table name
and an arbitrary journal number. This silences two -Wformat-truncation
warnings with gcc 7.1.1.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index 0ce0b334f412..6e18e9793ec4 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -833,7 +833,7 @@ struct gfs2_sbd { atomic_t sd_freeze_state; struct mutex sd_freeze_mutex; - char sd_fsname[GFS2_FSNAME_LEN]; + char sd_fsname[GFS2_FSNAME_LEN + 3 * sizeof(int) + 2]; char sd_table_name[GFS2_FSNAME_LEN]; char sd_proto_name[GFS2_FSNAME_LEN]; |