Message ID | 20231005161408.it.584-kees@kernel.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | ccd3129aca286c41616afe357e3494c5b43350a0 |
Headers | show |
Series | [v2] nvmet-fc: Annotate struct nvmet_fc_tgt_queue with __counted_by | expand |
Thanks, applied to nvme-6.7.
diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.c index 1ab6601fdd5c..bd59990b5250 100644 --- a/drivers/nvme/target/fc.c +++ b/drivers/nvme/target/fc.c @@ -146,7 +146,8 @@ struct nvmet_fc_tgt_queue { struct workqueue_struct *work_q; struct kref ref; struct rcu_head rcu; - struct nvmet_fc_fcp_iod fod[]; /* array of fcp_iods */ + /* array of fcp_iods */ + struct nvmet_fc_fcp_iod fod[] __counted_by(sqsize); } __aligned(sizeof(unsigned long long)); struct nvmet_fc_hostport {