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 3E08043355; Fri, 17 Nov 2023 17:21:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 67D3742D2A; Fri, 17 Nov 2023 17:21:02 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id E86C9427DD for ; Fri, 17 Nov 2023 17:20:56 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1cc5b705769so19397975ad.0 for ; Fri, 17 Nov 2023 08:20:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238056; x=1700842856; 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=rQRR4IDZlT/YmZig/OWvFOgzfsjphujDIh9CWUE4tCZzlA0o4Bv6kUtAyWOdYq3Bdf NjDQnL/VIpo9Y3MEhC+hYV6AxAeZU48fyxZgQY9GXbVbTL3G+JTXPx1defD9rZlBvIqa ipXliFRD0TFjD7Sfg0PL/qmkjf8FMzZTjruRfo+S2ndNZUkO+ZQXNB8lgf/SasgNtYk8 FJfmP3PoqN1aUXtP406r7pbrQrG3JiyLz4iC+n7W9qjrIQsSNsADQUHcOrV91jCMWAE7 /RTGDzv0K2nTWgWyXsfbV/cXuEXmIG4w+LYJk0tINsfEmy+ERJJxeHAcAMxeSiKiMG3U XNPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238056; x=1700842856; 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=K078Z7SVJOPwxJ8ln48S6ZaARskD15lcNGcFCwIch6GCKRoLW+4XuGZMPS3el3VpDX sIOzz2tre7ip2SxVbb142wYKCk1Ov9ynisT21khzV5XIgOTWoxX3HUcP85ZMUZ3wswhO PsDTbmsM1gMnznK3j0O0o9EsYdrTJMsMxwwBiJIBIwyvFd/z/8yUksx6iShk1mc27I2o rPJ5JNFmfWSPtORTBwygtOISEOxfLGIOn807tzRis9/cb+Wa6oldIkQq8ybtqNAFncZd 028oagV7f8dAPiYffGDauDxSffI5DQnm61afKtXVsqmvo9L+TETkfyTJbGs2YRfdsKgk 4QqQ== X-Gm-Message-State: AOJu0YxaTotLSVE6E/8rTPniD7a1EYroyZUh6GCi0LB9ohTADVLNlj1u mRapwKGk2eNMF0fS55wlwD8pNshycGYnBvMmSw2ODw== X-Google-Smtp-Source: AGHT+IHTI6AgJDVvbN+Sw8PSOa0ssALnprMBUVFPZeVjsEyTAz+zf4NlN9A+dFJGTf85p8XxNOI1WA== X-Received: by 2002:a17:902:c40a:b0:1cc:3c2d:1299 with SMTP id k10-20020a170902c40a00b001cc3c2d1299mr58298plk.37.1700238055976; Fri, 17 Nov 2023 08:20:55 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id q15-20020a17090311cf00b001c61df93afdsm1564759plh.59.2023.11.17.08.20.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , John Daley , Tyler Retzlaff , Hyong Youb Kim Subject: [PATCH v3 06/10] net/enic: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:32 -0800 Message-ID: <20231117162040.241466-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117162040.241466-1-stephen@networkplumber.org> References: <20231111172153.57461-1-stephen@networkplumber.org> <20231117162040.241466-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