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 5409A43381; Mon, 20 Nov 2023 18:10:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9833B42E53; Mon, 20 Nov 2023 18:10:03 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id 8D84B4027A for ; Mon, 20 Nov 2023 18:09:59 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6c34e87b571so3661641b3a.3 for ; Mon, 20 Nov 2023 09:09:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500198; x=1701104998; 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=ukg5VvJ6iDzDEHQgeEwnu4wKupKKnY5MKLl8KqqjlH+84Wi44GypkaEFXwteiqKa0D LMzM+42AhyoZjnEW3z//95yAXO+WlcKaMzpi1kF3cEXtRAhvCZAkp/VvKKZ/216M315L /ljxRpZShjSLh8H8RQ/HI+Rui7FhzHgdarLhEllCryIGS3w3OadWE8e3YDoZdkssLL6z YwfAKzO6naoL2J6mMgh3QG/OiZzZdQXxeN/uoU5eSR3iEtO9iOakKsMl4R5IMpVBpzOT a3OZ5NP5Ft4pl1+R664rHn2Mq/Srg9P+BUGUmN+7Sk6qwhHsWiKx9jxhOYBAXtOqjYui 1KdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500198; x=1701104998; 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=tyMwcHtIXa6kgYV048bOMMjlHrnQZdQ/x/gOb+uoAuyLwj422m94SgzySGZ+7mZOsF RWvRxM3gqFiD9Zq4eOpFzOiA3UN068tWI8te5d7rNtPtqJwioRzMw7QJHmu/MuGBfvf0 YyeWUcIZ9YtEmqSWD42vBlXnZW2sz/MsYkLZwmmKWa4BS2LPBpI/TPYZntDqBBond4WP P3uf+hmtGxS+ORjKYbk/NyuwHErDq8SxGjRjY6VMMz/qJkQTA4mkN/yD4LOY7iWv3Qof Sou6Nq8jxyYNkwl961coWxNw+LlVlP2wteqwnAs0ZOB0mSQc8aXIZtYsjDosQfDG1L6+ XO1A== X-Gm-Message-State: AOJu0YwopGV7xVN8Tr3tsUyKE6OghZf0QoPPeVaNVZRjKd+VgvCFzfz6 MIg4YCjTM0TtFsiVSCVzAm2/Bac/p5QrlE3cjHc= X-Google-Smtp-Source: AGHT+IG+PkuA7Krl4lO2X8X5XnoglVvD2+tpc5x321BRoHfA/TeDqxZOeJv8SRTHXt2QuXjp6EqjpQ== X-Received: by 2002:a05:6a21:789d:b0:187:15e2:fdd9 with SMTP id bf29-20020a056a21789d00b0018715e2fdd9mr6538690pzc.39.1700500198249; Mon, 20 Nov 2023 09:09:58 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id p18-20020a62ab12000000b006cb7f9da229sm2894681pff.202.2023.11.20.09.09.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:57 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , John Daley , Tyler Retzlaff , Hyong Youb Kim Subject: [PATCH v4 06/10] net/enic: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:07:01 -0800 Message-ID: <20231120170942.197172-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231120170942.197172-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231120170942.197172-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