]> git.baikalelectronics.ru Git - kernel.git/commit
ublk_drv: use flexible-array member instead of zero-length array
authorYushan Zhou <katrinzhou@tencent.com>
Tue, 18 Oct 2022 10:01:32 +0000 (18:01 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Oct 2022 01:27:23 +0000 (18:27 -0700)
commit95d770229ac4508d1f88bdf9ad3409b6f3d946b6
tree622b0c18c87185d0c84c0ed3247ede4c123cd9d2
parent2e8d501f340aa1b4dcd63454a7ed6d5ff293cf8a
ublk_drv: use flexible-array member instead of zero-length array

Eliminate the following coccicheck warning:
./drivers/block/ublk_drv.c:127:16-19: WARNING use flexible-array member instead

Signed-off-by: Yushan Zhou <katrinzhou@tencent.com>
Link: https://lore.kernel.org/r/20221018100132.355393-1-zys.zljxml@gmail.com
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c