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 D41BA4334C; Fri, 17 Nov 2023 05:05:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BFE7240DDC; Fri, 17 Nov 2023 05:04:52 +0100 (CET) Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) by mails.dpdk.org (Postfix) with ESMTP id 898BB40A77 for ; Fri, 17 Nov 2023 05:04:49 +0100 (CET) Received: by mail-il1-f173.google.com with SMTP id e9e14a558f8ab-3575287211bso5789215ab.1 for ; Thu, 16 Nov 2023 20:04:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193888; x=1700798688; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RwqPAHHYVyITfg6mIlML8F9SDAhO5tocSIb3Vx6Bjtw=; b=qwRBcmyJz/OTIl9bKpQpsdRDYmpvwd9kPBdyouMHyi9h/lAq7nfDUyfO/rlieTvuCI BYp6lRvjRTUFcteUjW/7XK6tyKR3McoZt920KXMBLW4GfYK+jIfD7V8t1umRfk+ijRvg NK15/6eFLgmItnTYYl1PsEBkKVCSXh0uRKZTkwCApADu/Ex81ISPP/goDEqc7pzgEsnk inJxX+x8dWB6fmVqEDihjDU8CYyvrM7E9CKMECge/7+vlC0EmxvJBHUEVEfViC+P9HUk lOMTwtHSWoq9oKOFIBPVA4XTnEANdjBZlx0XPGLFypSPvD4doisavx9g9VQP7EosDk2t gNmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193888; x=1700798688; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RwqPAHHYVyITfg6mIlML8F9SDAhO5tocSIb3Vx6Bjtw=; b=skeYr2409un/YMkGUF9CAvVbCxhoW7QdxCFlj/CyyY4mP8sXerrCCAbrHB1ozarlk3 z5XJ4IghK/g+wkp8mqwpAm0u30Z+ZIDEDF3Gw0pDCrJNvkAE9M7UM5tRGRWWW68+N8+F 5wc68DkyREfSbe+LibxAYiD1F3q464U12Qjc08dUMdGdCi3eXcyNGu1wfqxVqpTKS3To GI2TzkiReDML6dKXDS4oEPda0gmRXx6Rwo1SmBKf/BgVLhg2/IiuIP6Kcd7qSenWZO48 MtXTspEarsz4qIcZY4tFZZ8046c72kwJA6jc3e9KoskPogWAzttYYZawjUecOWuVjOCr jkeQ== X-Gm-Message-State: AOJu0YwdaAwFL7UdCBljaZWHnFmfG2cdLzjDm8e3Xs/96Q8Z9trz4HwV YFsyBrr9dDUT4iLWU3OBsP7nAGX1eAgNSxpRxclIyw== X-Google-Smtp-Source: AGHT+IGaK5r0ABUmbcGqrQ/VQ9OyJdX+Oz6aExzb8moU/J2DSEwjzvPkZYR6qf9UgljsnBM0CyHY7g== X-Received: by 2002:a05:6e02:1985:b0:359:53a4:b23c with SMTP id g5-20020a056e02198500b0035953a4b23cmr24332571ilf.6.1700193888403; Thu, 16 Nov 2023 20:04:48 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id s11-20020a65644b000000b005bcebc93d7asm389873pgv.47.2023.11.16.20.04.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:47 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , John Daley , Hyong Youb Kim Subject: [PATCH v2 06/10] net/enic: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:18 -0800 Message-ID: <20231117040432.131737-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117040432.131737-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231117040432.131737-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Zero length arrays are GNU extension. Replace with standard flex array. Signed-off-by: Stephen Hemminger Acked-by: John Daley --- drivers/net/enic/base/vnic_devcmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/enic/base/vnic_devcmd.h b/drivers/net/enic/base/vnic_devcmd.h index 253a791c3f65..f91cc3078d63 100644 --- a/drivers/net/enic/base/vnic_devcmd.h +++ b/drivers/net/enic/base/vnic_devcmd.h @@ -765,7 +765,7 @@ struct vnic_devcmd_notify { struct vnic_devcmd_provinfo { uint8_t oui[3]; uint8_t type; - uint8_t data[0]; + uint8_t data[]; }; /* -- 2.42.0