[PATCH] nvmet-fc: Annotate struct nvmet_fc_tgt_queue with __counted_by
Christoph Hellwig
hch at lst.de
Thu Oct 5 01:22:17 PDT 2023
On Tue, Oct 03, 2023 at 04:25:11PM -0700, Kees Cook wrote:
> struct workqueue_struct *work_q;
> struct kref ref;
> struct rcu_head rcu;
> - struct nvmet_fc_fcp_iod fod[]; /* array of fcp_iods */
> + struct nvmet_fc_fcp_iod fod[] __counted_by(sqsize); /* array of fcp_iods */
Please move the comment up to not spill over the end of the line.
Otherwise this looks good.
More information about the Linux-nvme
mailing list