summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShida Zhang <zhangshida@kylinos.cn>2023-05-16 04:34:30 +0300
committerDavid Sterba <dsterba@suse.com>2023-05-27 00:24:04 +0300
commit8fd9f4232d8152c650fd15127f533a0f6d0a4b2b (patch)
treecc4b851bd03d9deac600a17046ae262b116aa5c5 /include
parent45c2f36871955b51b4ce083c447388d8c72d6b91 (diff)
downloadlinux-8fd9f4232d8152c650fd15127f533a0f6d0a4b2b.tar.xz
btrfs: fix an uninitialized variable warning in btrfs_log_inode
This fixes the following warning reported by gcc 10.2.1 under x86_64: ../fs/btrfs/tree-log.c: In function ‘btrfs_log_inode’: ../fs/btrfs/tree-log.c:6211:9: error: ‘last_range_start’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 6211 | ret = insert_dir_log_key(trans, log, path, key.objectid, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6212 | first_dir_index, last_dir_index); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../fs/btrfs/tree-log.c:6161:6: note: ‘last_range_start’ was declared here 6161 | u64 last_range_start; | ^~~~~~~~~~~~~~~~ This might be a false positive fixed in later compiler versions but we want to have it fixed. Reported-by: k2ci <kernel-bot@kylinos.cn> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Shida Zhang <zhangshida@kylinos.cn> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions