Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/6] Cleanups and W=2 warning fixes
@ 2024-05-20 19:52 David Sterba
  2024-05-20 19:52 ` [PATCH 1/6] btrfs: remove duplicate name variable declarations David Sterba
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: David Sterba @ 2024-05-20 19:52 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

We have a clean run of 'make W='1 with gcc 13, there are some
interesting warnings to fix with level 2 and even 3. We can't enable the
warning flags by defualt due to reports from generic code.

This short series removes shadowed variables, adds const and removes
an unused macro. There are still some shadow variables to fix but the
remaining cases are with 'ret' variables so I skipped it for now.

David Sterba (6):
  btrfs: remove duplicate name variable declarations
  btrfs: rename macro local variables that clash with other variables
  btrfs: use for-local variabls that shadow function variables
  btrfs: remove unused define EXTENT_SIZE_PER_ITEM
  btrfs: keep const whene returnin value from get_unaligned_le8()
  btrfs: constify parameters of write_eb_member() and its users

 fs/btrfs/accessors.h   | 12 ++++++------
 fs/btrfs/extent_io.c   |  6 ++----
 fs/btrfs/inode.c       |  2 --
 fs/btrfs/qgroup.c      | 11 +++++------
 fs/btrfs/space-info.c  |  2 --
 fs/btrfs/subpage.c     |  8 ++++----
 fs/btrfs/transaction.h |  6 +++---
 fs/btrfs/volumes.c     |  9 +++------
 fs/btrfs/zoned.c       |  8 +++-----
 9 files changed, 26 insertions(+), 38 deletions(-)

-- 
2.45.0


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-05-21 13:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-20 19:52 [PATCH 0/6] Cleanups and W=2 warning fixes David Sterba
2024-05-20 19:52 ` [PATCH 1/6] btrfs: remove duplicate name variable declarations David Sterba
2024-05-20 19:52 ` [PATCH 2/6] btrfs: rename macro local variables that clash with other variables David Sterba
2024-05-20 19:52 ` [PATCH 3/6] btrfs: use for-local variabls that shadow function variables David Sterba
2024-05-21  4:13   ` Naohiro Aota
2024-05-21 13:01     ` David Sterba
2024-05-20 19:52 ` [PATCH 4/6] btrfs: remove unused define EXTENT_SIZE_PER_ITEM David Sterba
2024-05-20 19:52 ` [PATCH 5/6] btrfs: keep const whene returnin value from get_unaligned_le8() David Sterba
2024-05-20 19:52 ` [PATCH 6/6] btrfs: constify parameters of write_eb_member() and its users David Sterba
2024-05-20 23:00 ` [PATCH 0/6] Cleanups and W=2 warning fixes Boris Burkov
2024-05-21  0:38 ` Anand Jain
2024-05-21  4:21 ` Naohiro Aota

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox