From: David Sterba <dsterba@suse.com>
To: linux-btrfs@vger.kernel.org
Cc: David Sterba <dsterba@suse.com>
Subject: [PATCH 0/6] Cleanups and W=2 warning fixes
Date: Mon, 20 May 2024 21:52:08 +0200 [thread overview]
Message-ID: <cover.1716234472.git.dsterba@suse.com> (raw)
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
next reply other threads:[~2024-05-20 19:52 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-20 19:52 David Sterba [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1716234472.git.dsterba@suse.com \
--to=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox