From: "Gustavo A. R. Silva" <gustavoars@kernel.org>
To: Jens Axboe <axboe@kernel.dk>, Song Liu <song@kernel.org>,
Yu Kuai <yukuai3@huawei.com>, Carlos Maiolino <cem@kernel.org>,
"Darrick J. Wong" <djwong@kernel.org>,
Gao Xiang <xiang@kernel.org>, Chao Yu <chao@kernel.org>,
Yue Hu <zbestahu@gmail.com>,
Jeffle Xu <jefflexu@linux.alibaba.com>,
Sandeep Dhavale <dhavale@google.com>, Chris Mason <clm@fb.com>,
Josef Bacik <josef@toxicpanda.com>,
David Sterba <dsterba@suse.com>, Christoph Hellwig <hch@lst.de>,
Sagi Grimberg <sagi@grimberg.me>,
Chaitanya Kulkarni <kch@nvidia.com>, Coly Li <colyli@kernel.org>,
Kent Overstreet <kent.overstreet@linux.dev>
Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
linux-hardening@vger.kernel.org, linux-block@vger.kernel.org,
linux-xfs@vger.kernel.org, linux-erofs@lists.ozlabs.org,
linux-btrfs@vger.kernel.org, linux-nvme@lists.infradead.org,
linux-bcache@vger.kernel.org
Subject: [PATCH 0/8][next] Avoid a couple hundred -Wflex-array-member-not-at-end warnings
Date: Mon, 24 Feb 2025 20:23:38 +1030 [thread overview]
Message-ID: <cover.1739957534.git.gustavoars@kernel.org> (raw)
This patch series aims to fix a couple hundred -Wflex-array-member-not-at-end
warnings by creating a new tagged struct `struct bio_hdr` within flexible
structure `struct bio`.
This new tagged struct will be used to fix problematic declarations
of middle-flex-arrays in composite structs, like these[1][2][3], for
instance.
[1] https://git.kernel.org/linus/a7e8997ae18c42d3
[2] https://git.kernel.org/linus/c1ddb29709e675ea
[3] https://git.kernel.org/linus/57be3d3562ca4aa6
Gustavo A. R. Silva (8):
block: blk_types.h: Use struct_group_tagged() in flex struct bio
md/raid5-ppl: Avoid -Wflex-array-member-not-at-end warning
xfs: Avoid -Wflex-array-member-not-at-end warnings
erofs: Avoid -Wflex-array-member-not-at-end warnings
btrfs: Avoid -Wflex-array-member-not-at-end warnings
nvme: target: Avoid -Wflex-array-member-not-at-end warnings
md/raid5: Avoid -Wflex-array-member-not-at-end warnings
bcache: Avoid -Wflex-array-member-not-at-end warnings
drivers/md/bcache/bcache.h | 4 +-
drivers/md/bcache/journal.c | 10 ++--
drivers/md/bcache/journal.h | 4 +-
drivers/md/bcache/super.c | 8 ++--
drivers/md/raid5-ppl.c | 8 ++--
drivers/md/raid5.c | 10 ++--
drivers/md/raid5.h | 2 +-
drivers/nvme/target/nvmet.h | 4 +-
drivers/nvme/target/passthru.c | 2 +-
drivers/nvme/target/zns.c | 2 +-
fs/btrfs/disk-io.c | 4 +-
fs/btrfs/volumes.h | 2 +-
fs/erofs/fileio.c | 25 ++++++----
fs/erofs/fscache.c | 13 +++---
fs/xfs/xfs_log.c | 15 +++---
fs/xfs/xfs_log_priv.h | 2 +-
include/linux/blk_types.h | 84 ++++++++++++++++++----------------
17 files changed, 107 insertions(+), 92 deletions(-)
--
2.43.0
WARNING: multiple messages have this Message-ID (diff)
From: "Gustavo A. R. Silva via Linux-erofs" <linux-erofs@lists.ozlabs.org>
To: Jens Axboe <axboe@kernel.dk>, Song Liu <song@kernel.org>,
Yu Kuai <yukuai3@huawei.com>, Carlos Maiolino <cem@kernel.org>,
"Darrick J. Wong" <djwong@kernel.org>,
Gao Xiang <xiang@kernel.org>, Chao Yu <chao@kernel.org>,
Yue Hu <zbestahu@gmail.com>,
Jeffle Xu <jefflexu@linux.alibaba.com>,
Sandeep Dhavale <dhavale@google.com>, Chris Mason <clm@fb.com>,
Josef Bacik <josef@toxicpanda.com>,
David Sterba <dsterba@suse.com>, Christoph Hellwig <hch@lst.de>,
Sagi Grimberg <sagi@grimberg.me>,
Chaitanya Kulkarni <kch@nvidia.com>, Coly Li <colyli@kernel.org>,
Kent Overstreet <kent.overstreet@linux.dev>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-nvme@lists.infradead.org,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
linux-raid@vger.kernel.org, linux-bcache@vger.kernel.org,
linux-hardening@vger.kernel.org, linux-erofs@lists.ozlabs.org,
linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org
Subject: [PATCH 0/8][next] Avoid a couple hundred -Wflex-array-member-not-at-end warnings
Date: Mon, 24 Feb 2025 20:23:38 +1030 [thread overview]
Message-ID: <cover.1739957534.git.gustavoars@kernel.org> (raw)
This patch series aims to fix a couple hundred -Wflex-array-member-not-at-end
warnings by creating a new tagged struct `struct bio_hdr` within flexible
structure `struct bio`.
This new tagged struct will be used to fix problematic declarations
of middle-flex-arrays in composite structs, like these[1][2][3], for
instance.
[1] https://git.kernel.org/linus/a7e8997ae18c42d3
[2] https://git.kernel.org/linus/c1ddb29709e675ea
[3] https://git.kernel.org/linus/57be3d3562ca4aa6
Gustavo A. R. Silva (8):
block: blk_types.h: Use struct_group_tagged() in flex struct bio
md/raid5-ppl: Avoid -Wflex-array-member-not-at-end warning
xfs: Avoid -Wflex-array-member-not-at-end warnings
erofs: Avoid -Wflex-array-member-not-at-end warnings
btrfs: Avoid -Wflex-array-member-not-at-end warnings
nvme: target: Avoid -Wflex-array-member-not-at-end warnings
md/raid5: Avoid -Wflex-array-member-not-at-end warnings
bcache: Avoid -Wflex-array-member-not-at-end warnings
drivers/md/bcache/bcache.h | 4 +-
drivers/md/bcache/journal.c | 10 ++--
drivers/md/bcache/journal.h | 4 +-
drivers/md/bcache/super.c | 8 ++--
drivers/md/raid5-ppl.c | 8 ++--
drivers/md/raid5.c | 10 ++--
drivers/md/raid5.h | 2 +-
drivers/nvme/target/nvmet.h | 4 +-
drivers/nvme/target/passthru.c | 2 +-
drivers/nvme/target/zns.c | 2 +-
fs/btrfs/disk-io.c | 4 +-
fs/btrfs/volumes.h | 2 +-
fs/erofs/fileio.c | 25 ++++++----
fs/erofs/fscache.c | 13 +++---
fs/xfs/xfs_log.c | 15 +++---
fs/xfs/xfs_log_priv.h | 2 +-
include/linux/blk_types.h | 84 ++++++++++++++++++----------------
17 files changed, 107 insertions(+), 92 deletions(-)
--
2.43.0
next reply other threads:[~2025-02-24 9:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-24 9:53 Gustavo A. R. Silva [this message]
2025-02-24 9:53 ` [PATCH 0/8][next] Avoid a couple hundred -Wflex-array-member-not-at-end warnings Gustavo A. R. Silva via Linux-erofs
2025-02-24 9:55 ` [PATCH 1/8][next] block: blk_types.h: Use struct_group_tagged() in flex struct bio Gustavo A. R. Silva
2025-02-24 16:39 ` Christoph Hellwig
2025-02-24 9:56 ` [PATCH 2/8][next] md/raid5-ppl: Avoid -Wflex-array-member-not-at-end warning Gustavo A. R. Silva
2025-02-24 9:57 ` [PATCH 3/8][next] xfs: Avoid -Wflex-array-member-not-at-end warnings Gustavo A. R. Silva
2025-02-24 19:12 ` Darrick J. Wong
2025-02-24 21:45 ` Dave Chinner
2025-02-24 9:58 ` [PATCH 4/8][next] erofs: " Gustavo A. R. Silva via Linux-erofs
2025-02-24 9:58 ` Gustavo A. R. Silva
2025-02-24 9:59 ` [PATCH 5/8][next] btrfs: " Gustavo A. R. Silva
2025-02-24 10:00 ` [PATCH 6/8][next] nvme: target: " Gustavo A. R. Silva
2025-02-24 14:19 ` Christoph Hellwig
2025-02-25 1:51 ` Gustavo A. R. Silva
2025-02-24 10:00 ` [PATCH 7/8][next] md/raid5: " Gustavo A. R. Silva
2025-02-24 10:01 ` [PATCH 8/8][next] bcache: " Gustavo A. R. Silva
2025-02-24 14:04 ` Coly Li
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.1739957534.git.gustavoars@kernel.org \
--to=gustavoars@kernel.org \
--cc=axboe@kernel.dk \
--cc=cem@kernel.org \
--cc=chao@kernel.org \
--cc=clm@fb.com \
--cc=colyli@kernel.org \
--cc=dhavale@google.com \
--cc=djwong@kernel.org \
--cc=dsterba@suse.com \
--cc=hch@lst.de \
--cc=jefflexu@linux.alibaba.com \
--cc=josef@toxicpanda.com \
--cc=kch@nvidia.com \
--cc=kent.overstreet@linux.dev \
--cc=linux-bcache@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-erofs@lists.ozlabs.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=linux-raid@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=sagi@grimberg.me \
--cc=song@kernel.org \
--cc=xiang@kernel.org \
--cc=yukuai3@huawei.com \
--cc=zbestahu@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.