Re: [PATCH][next] leds: leds-pwm: Replace zero-length array with flexible-array member

From: Pavel Machek
Date: Sat Mar 21 2020 - 11:21:56 EST


Hi!

> "Flexible array members have incomplete type, and so the sizeof operator
> may not be applied. As a quirk of the original implementation of
> zero-length arrays, sizeof evaluates to zero."[1]
>
> This issue was found with the help of Coccinelle.

I applied both. I'll be unhappy if they break anything.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachment: signature.asc
Description: PGP signature