[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200321152152.GC8386@duo.ucw.cz>
Date: Sat, 21 Mar 2020 16:21:52 +0100
From: Pavel Machek <pavel@....cz>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
Cc: Jacek Anaszewski <jacek.anaszewski@...il.com>,
Dan Murphy <dmurphy@...com>, linux-leds@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] leds: leds-pwm: Replace zero-length array with
flexible-array member
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
Download attachment "signature.asc" of type "application/pgp-signature" (196 bytes)
Powered by blists - more mailing lists