[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175553752359.87011.5736670614642029375.b4-ty@kernel.dk>
Date: Mon, 18 Aug 2025 11:18:43 -0600
From: Jens Axboe <axboe@...nel.dk>
To: ming.lei@...hat.com, shuah@...nel.org,
Akhilesh Patil <akhilesh@...iitb.ac.in>
Cc: linux-block@...r.kernel.org, linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org, akhileshpatilvnit@...il.com
Subject: Re: [PATCH] selftests: ublk: Use ARRAY_SIZE() macro to improve
code
On Sun, 17 Aug 2025 15:06:05 +0530, Akhilesh Patil wrote:
> Use ARRAY_SIZE() macro while calculating size of an array to improve
> code readability and reduce potential sizing errors.
> Implement this suggestion given by spatch tool by running
> coccinelle script - scripts/coccinelle/misc/array_size.cocci
> Follow ARRAY_SIZE() macro usage pattern in ublk.c introduced by,
> commit ec120093180b9 ("selftests: ublk: fix ublk_find_tgt()")
> wherever appropriate to maintain consistency.
>
> [...]
Applied, thanks!
[1/1] selftests: ublk: Use ARRAY_SIZE() macro to improve code
commit: 0227af355b50c526bf83ca52d67aef5d102e9b07
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists