[PATCH] pwm: mediatek: Make use of struct_size macro

Uwe Kleine-König u.kleine-koenig at baylibre.com
Tue Nov 4 09:15:18 PST 2025


Hello,

On Thu, Oct 30, 2025 at 11:25:27PM +0100, Uwe Kleine-König wrote:
> struct_size provides the size of a struct with a flexible array member.
> Use that instead of open-coding it (with less checks than the global
> macro).
> 
> Reported-by: kernel test robot <lkp at intel.com>
> Reported-by: Julia Lawall <julia.lawall at inria.fr>
> Closes: https://lore.kernel.org/r/202510301753.iqGmTwae-lkp@intel.com/
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>

Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git pwm/for-next
.

Thanks to Julia for reporting the issue.

BR
Uwe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20251104/9ad867e7/attachment.sig>


More information about the Linux-mediatek mailing list