Skip to content

Fix some -Wmaybe-uninitialized errors

Josef Bacik linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: make sure to initialize start and len in find_free_dev_extentfs/btrfs/volumes.c+6 -83 replies
2/2btrfs: initialize start_slot in btrfs_log_prealloc_extentsfs/btrfs/tree-log.c+1 -13 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJens AxboeQu Wenruo
1/2T-b R-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] Fix some -Wmaybe-uninitialized errors

Hello,

Jens reported to me two warnings he was seeing with CONFIG_CC_OPTIMIZE_FOR_SIZE=y set in his .config. We don't see these errors without this option, and they're not correct warnings. However we've had issues where -Wmaybe-uninitialized would have caught a real bug, so this warning is generally valuable. Fix these warnings so we have a clean build. Thanks,

Josef

Josef Bacik (2):
btrfs: make sure to initialize start and len in find_free_dev_extent
btrfs: initialize start_slot in btrfs_log_prealloc_extents

 fs/btrfs/tree-log.c |  2 +-
 fs/btrfs/volumes.c  | 14 ++++++--------
 2 files changed, 7 insertions(+), 9 deletions(-)
Signature · 1 line
2.41.0