aboutsummaryrefslogtreecommitdiffstats
path: root/lib/linear_ranges.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2020-04-29 13:27:32 +0000
committerDavid Sterba <[email protected]>2020-04-30 10:17:49 +0000
commit9c6c723f48f5f05eab133b4fee8f2a2b7ec57a15 (patch)
tree7c03bcb38bea0b59c54d89fe7976bc654ca895d4 /lib/linear_ranges.c
parentbtrfs: transaction: Avoid deadlock due to bad initialization timing of fs_inf... (diff)
downloadkernel-9c6c723f48f5f05eab133b4fee8f2a2b7ec57a15.tar.gz
kernel-9c6c723f48f5f05eab133b4fee8f2a2b7ec57a15.zip
btrfs: fix gcc-4.8 build warning for struct initializer
Some older compilers like gcc-4.8 warn about mismatched curly braces in a initializer: fs/btrfs/backref.c: In function 'is_shared_data_backref': fs/btrfs/backref.c:394:9: error: missing braces around initializer [-Werror=missing-braces] struct prelim_ref target = {0}; ^ fs/btrfs/backref.c:394:9: error: (near initialization for 'target.rbnode') [-Werror=missing-braces] Use the GNU empty initializer extension to avoid this. Fixes: ed58f2e66e84 ("btrfs: backref, don't add refs from shared block when resolving normal backref") Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/linear_ranges.c')
0 files changed, 0 insertions, 0 deletions