From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 82C6743EAF; Fri, 19 Apr 2024 13:54:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 07C8240EF0; Fri, 19 Apr 2024 13:54:51 +0200 (CEST) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 5FE8640EE4 for ; Fri, 19 Apr 2024 13:54:49 +0200 (CEST) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id 0030620D62; Fri, 19 Apr 2024 13:54:48 +0200 (CEST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [RFC 2/6] eal/common: remove VLA warnings Date: Fri, 19 Apr 2024 13:54:47 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9F3C5@smartserver.smartshare.dk> In-Reply-To: <20240418103314.40705-3-konstantin.v.ananyev@yandex.ru> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC 2/6] eal/common: remove VLA warnings Thread-Index: AdqRe+SBbs4b1hRcR/Gm9Jg03N2UcQA1FRmA References: <20240418103314.40705-1-konstantin.v.ananyev@yandex.ru> <20240418103314.40705-3-konstantin.v.ananyev@yandex.ru> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Konstantin Ananyev" , Cc: , , , , , , , , , "Konstantin Ananyev" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > From: Konstantin Ananyev [mailto:konstantin.v.ananyev@yandex.ru] > Sent: Thursday, 18 April 2024 12.33 >=20 > From: Konstantin Ananyev >=20 > 1) ../lib/eal/common/eal_common_proc.c:695:15: warning: variable = length array > used [-Wvla] > char control[CMSG_SPACE(fd_size)]; > ^~~~~~~~~~~~~~~~~~~ >=20 > As msg->num_fds should not exceed RTE_MP_MAX_FD_NUM, replaced > it with fixed size array. >=20 > Signed-off-by: Konstantin Ananyev > --- Acked-by: Morten Br=F8rup