diff options
| author | David Sterba <dsterba@suse.com> | 2025-09-26 11:47:30 +0200 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-11-24 21:37:36 +0100 |
| commit | aebe2bb0b861795cd832473b7257c6cc1cd086d0 (patch) | |
| tree | 5c928ad27668fc1c8fd481b156752a4f4e6c7387 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 9594783e4b4901cbc28ff940eff7e2554a4f7801 (diff) | |
btrfs: fix trivial -Wshadow warnings
When compiling with -Wshadow (also in 'make W=2' build) there are
several reports of shadowed variables that seem to be harmless:
- btrfs_do_encoded_write() - we can reuse 'ordered', there's no previous
value that would need to be preserved
- scrub_write_endio() - we need a standalone 'i' for bio iteration
- scrub_stripe() - duplicate ret2 for errors that must not overwrite 'ret'
- btrfs_subpage_set_writeback() - 'flags' is used for another irqsave lock
but is not overwritten when reused for xarray
due to scoping, but for clarity let's rename it
- process_dir_items_leaf() - duplicate 'ret', used only for immediate checks
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
