Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp547215rwb; Tue, 27 Sep 2022 00:52:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4yAwZXOXw325Aq51+OS1K0dCmU+xxbwPsY68HFDXN13fgQomEj0R3eyA98/vydFgXgXhhn X-Received: by 2002:a17:90a:e7d2:b0:200:a220:6495 with SMTP id kb18-20020a17090ae7d200b00200a2206495mr3177322pjb.5.1664265138955; Tue, 27 Sep 2022 00:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664265138; cv=none; d=google.com; s=arc-20160816; b=G6/5XNp7JdYyTsISQeL6ecEMjgR9U2l+sWNFJpLTVWewIK3MIfT1+wMRvxmQv2elgb DlH0VdG2A2lPQcnKC5j1W/gJxp4Zqwsi23XP+CJD0Zn/dAzthcxFguS7dC70Tn1hgsHL IZI+H3NRmp0AuijHJzNR1RtqNBAKVIPPocmxPwq6Uw0/g943QbIeemfyUlVUsk2fQdlN f5vL3ZBulRB7c/UDrXlBZRMzNLnrttIwQU4k1j7uFdb/kXofUSypaufGxeGGNcMPrbwM XD9STLoQ0SRcZ02i3JNM5SJr6QC8XxqhJWMGll0KQs2/gUNyhnixTWT5Ye9NiZrmnbrx 8+Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=+7P+VNj9jN3QJxATKfTqVJxBCzcKhfMPb8UkvvcGirc=; b=lNSODdDtCwAUcy1t+1SewJdEtLPF7PSom+ln+3viK4qGKzL/w274urogJXUXK4Pgfn xXU1WC/vwuTv5g+XubwXSvhdYgNToKYG9teynS21aYmC9mz69qiAIxb4dDbofCviz6R6 2FGKkR5BU+24aXkztXj6wxdetQhMKwKYaQjUPbfenMxCHsxh8TE/rA+uSDSGu/sWSPGB LVPJgTa8TpDMnSqOsnWlFGlP11g4xH5RDa8M2LhsN5OqY4emEXlOdtwhNJ9kq3gkV1fc hmw6YLmbU9KMoWO9Vo7jyZHcPeHtttQM3LvVqoMImIfsaJf1EjX/MOouAAwlCzGZVO75 QBPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a6562d5000000b0042b2718bd80si1104106pgv.658.2022.09.27.00.52.08; Tue, 27 Sep 2022 00:52:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230432AbiI0Hge (ORCPT + 99 others); Tue, 27 Sep 2022 03:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230394AbiI0HgS (ORCPT ); Tue, 27 Sep 2022 03:36:18 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0451C52FDA for ; Tue, 27 Sep 2022 00:36:17 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1od58M-0000Oh-Jy; Tue, 27 Sep 2022 09:36:02 +0200 Received: from pengutronix.de (unknown [IPv6:2a01:4f8:1c1c:29e9:22:41ff:fe00:1400]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id AAF41EDC22; Tue, 27 Sep 2022 07:36:00 +0000 (UTC) Date: Tue, 27 Sep 2022 09:35:57 +0200 From: Marc Kleine-Budde To: "Gustavo A. R. Silva" Cc: Wolfgang Grandegger , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] can: ucan: Replace zero-length array with DECLARE_FLEX_ARRAY() helper Message-ID: <20220927073557.r5ivp4n2jjiwxgoo@pengutronix.de> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="xb5k6n6k6ikpfklh" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xb5k6n6k6ikpfklh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 26.09.2022 16:43:56, Gustavo A. R. Silva wrote: > Zero-length arrays are deprecated and we are moving towards adopting > C99 flexible-array members, instead. So, replace zero-length arrays > declarations in anonymous union with the new DECLARE_FLEX_ARRAY() > helper macro. >=20 > This helper allows for flexible-array members in unions. >=20 > Link: https://github.com/KSPP/linux/issues/193 > Link: https://github.com/KSPP/linux/issues/214 > Link: https://gcc.gnu.org/onlinedocs/gcc/Zero-Length.html > Signed-off-by: Gustavo A. R. Silva Applied to linux-can-next. Thanks, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --xb5k6n6k6ikpfklh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmMyp9oACgkQrX5LkNig 012zsQf/WO4Wqmxoc6z0SGE3Dh59i3mGc3x/ZHipNKIHZW5ysGGzkxJdn+eiASve RN1kx4Ssw8CMvZ6LQxKrmVw9gYFJM3FQNEte7IaH4Gvuy4sQeZ9DAe6I/ZfnspRi NCZK1uHWuy0O54xpyeE8Mi60og7Lf+GNBGOMTeE19n0YjqG6h2uyeyeCLyos0D+B M5bsAwS8SSple0dloPvZKp4utVyv/VZEtC9DgcVwMAZVmezyes+y4a2EwQGippTA iXzDsLps1gSPU501b7DVtZDgJKbPnYMFazHN7ohVC47+ACW4QelWRvwRysAs5wFg 18eYJw8DosjPGTCKgS4a2LmynhMbmg== =0L/P -----END PGP SIGNATURE----- --xb5k6n6k6ikpfklh--