From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 794AFC4332E for ; Sat, 21 Mar 2020 15:21:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 59C3420780 for ; Sat, 21 Mar 2020 15:21:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727533AbgCUPVz (ORCPT ); Sat, 21 Mar 2020 11:21:55 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:52576 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbgCUPVz (ORCPT ); Sat, 21 Mar 2020 11:21:55 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 40F1D1C0337; Sat, 21 Mar 2020 16:21:53 +0100 (CET) Date: Sat, 21 Mar 2020 16:21:52 +0100 From: Pavel Machek To: "Gustavo A. R. Silva" Cc: Jacek Anaszewski , Dan Murphy , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] leds: leds-pwm: Replace zero-length array with flexible-array member Message-ID: <20200321152152.GC8386@duo.ucw.cz> References: <20200319215146.GA24054@embeddedor.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0lnxQi9hkpPO77W3" Content-Disposition: inline In-Reply-To: <20200319215146.GA24054@embeddedor.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0lnxQi9hkpPO77W3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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] >=20 > This issue was found with the help of Coccinelle. I applied both. I'll be unhappy if they break anything. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --0lnxQi9hkpPO77W3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXnYxEAAKCRAw5/Bqldv6 8iwdAJ9fhHq+m0naK9c/L6eOl12fp1/tXACdGqempYJ/JHn7ME1jPYapzkWKOgo= =HHSH -----END PGP SIGNATURE----- --0lnxQi9hkpPO77W3--