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 25FBB433F5; Wed, 29 Nov 2023 03:43:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C54FD42E48; Wed, 29 Nov 2023 03:42:42 +0100 (CET) Received: from mail-il1-f175.google.com (mail-il1-f175.google.com [209.85.166.175]) by mails.dpdk.org (Postfix) with ESMTP id D68F842E3F for ; Wed, 29 Nov 2023 03:42:38 +0100 (CET) Received: by mail-il1-f175.google.com with SMTP id e9e14a558f8ab-35d01ac2877so6637255ab.3 for ; Tue, 28 Nov 2023 18:42:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1701225758; x=1701830558; 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=YrPST0zegRM2YtsnMA4HnQPP7UNQ+ucxN8O78SuzEwQ=; b=AnEBFDr58WcpwffKk/jPYDsTvgO+1HLxCPQW8gr3FhS/GPldpUqbi3HCny0z+HWii9 R9WwmsoJ2sPniC22iMqrDZInVdkHp1eKdgtGhJRhdRvi9SZ+pSuyvIbO75u9l5ldv2vQ i1AzrGuhHK0u9B2ClD4QrtIm4O+2xSUxDrv5kAlqDuLwpcV39cPrx5VxbqOA6M/o1+Xi jaM1V+fhuvZODuo6JZy+pDYAHIX+azYtemFunXys88nAaSvxk2ykqeYK+6u66tT2Hllw BY1sJUoFm0rjAhTbkGwyJtNodL0r1NJAquBHDwNyyC9LGFNGqRqdzETnkoz0kXgHJJa4 w4Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701225758; x=1701830558; 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=YrPST0zegRM2YtsnMA4HnQPP7UNQ+ucxN8O78SuzEwQ=; b=vgTfHepJpQPr1sm3A2Z8kFM8vDUnyd5XUmPa/6c+jM6jbxC4FfvgKCchoO8yL4Tj73 fa0fvHpchEPF1bM8OZmvvstYnSS12pG3x/A1HC54WNYIF+XKHRwu8+vk567AXjr0S+sm WFDadXlCYgboi5bMWyORRMQpBHJtbrLtcf77Sics8G0XL1stN/dw7vk/HYSgkluf/g5x jj+QHtzyd9q8yzTadRJZ3oD9QU2B1xTOkvU3yUBF8SW6EFFayQVbWy1OnatejVw8zXbd zeeeUDQ8aPyu0rsJyP113hfopigkFLfySoQcWvtWZmOKd3GFdjL0hjoS84IZNnuBNLgU TGig== X-Gm-Message-State: AOJu0YxSuicjUTDW+4/H9zIqxXpIg9/z2x/Q6p4wpxhVu3dJ3sMin7wk LGv0QScwI6cTDd4PpC1octEQmKmWH5JlB8p1VcI= X-Google-Smtp-Source: AGHT+IFTsJIi5DX/2d7+0dyRLR9ZwKC0XiguDrs8QryUs6H/MUSJ+keRKot6hSnLZkxrSrEIg+8HIg== X-Received: by 2002:a05:6e02:1747:b0:35c:bef1:879a with SMTP id y7-20020a056e02174700b0035cbef1879amr14132026ill.10.1701225757909; Tue, 28 Nov 2023 18:42:37 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j17-20020aa78011000000b006cb95f6aa0fsm9674900pfi.150.2023.11.28.18.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:42:37 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , John Daley , Tyler Retzlaff , Hyong Youb Kim Subject: [PATCH v5 06/10] net/enic: replace zero length array with flex array Date: Tue, 28 Nov 2023 18:39:13 -0800 Message-ID: <20231129024221.57653-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231129024221.57653-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231129024221.57653-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 Reviewed-by: Tyler Retzlaff --- 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