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 25CB9423CA; Fri, 13 Jan 2023 22:52:44 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B109642E38; Fri, 13 Jan 2023 22:52:17 +0100 (CET) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mails.dpdk.org (Postfix) with ESMTP id 2E51542E32 for ; Fri, 13 Jan 2023 22:52:14 +0100 (CET) Received: by mail-pf1-f171.google.com with SMTP id i65so13681561pfc.0 for ; Fri, 13 Jan 2023 13:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; 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=vlw/jFRLSyCWl3YMJK/aGJngZrfhQkZ7iUj2hynPyko=; b=51o0A+p1bXzaUE4JDZkLtNxMsRF53bVnizIS+1BLA+gW3zenfnxt2tn7heLGx8vswk Y5jpj8W93eN+mQ7RzIYDm0aIp73VoC1RlrBRSqawT99fLIJFmaxQ9mR6UvwaP3zlIp3S BFxLSiUJL+Fd/B6XKTi2jXH8FHxyM4Yfm7WSkL8qXG1ggVzvAhonCUx1Y7V9Gj9Il7MH 9MmUvX8JWs2XvFUZqDkGWK5/mBlwk4L3rmVzqbERyFJQFs5UPzOhYarNKkdXNE+CULoc y0k5F21cxuOSFosbXCpjlTZsh+qGjVjr2+Wl1Q0+9PK4dwaprjY/B98aQ8EMmua/fVvR UbwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=vlw/jFRLSyCWl3YMJK/aGJngZrfhQkZ7iUj2hynPyko=; b=yKIxT3fOjSlQrqJ1LFsZZ8iHpZFWlo490mKiOuQ97YbaCJkVOkFfM1dFzNhLt5lHu8 ho7l3UWg3lTjDvql5IUocIRQ/wo7LeMRUb9ucWVUDDROMl0qFnZQqigITIeHwbWp9Aja g38S/+EaIpTR+9GUEm1LKwC8R5QFwRNm8PuE1uOlNaKecUzjjF/hBLCrIWAwghgekv1s x0/SCGy5PVkc8Qd0qn+GzHroPsBUh+RTcwqKTgy+cx1zcegBBI56G3cEprnt/Os3nwVh L+4yjgpOOi7FVGEk+8YAL9cMN6VmYCwnDjjSFDxJJqYYg1/AQWXIdSbZUDN/pJF2M6P0 vaKw== X-Gm-Message-State: AFqh2kr/lypS0pCla64cCrHjQZAORTrSt//1+ciByd/6kZLRi03HSRLt xVo3pL5O13+wMvBbySMgzrtFtw7zVsfFElNMH4I= X-Google-Smtp-Source: AMrXdXuA91Vc5HVufXWWilqmc7t6zGHAz44A7a0ip1mM2dzkh42WyZmViWgVJroWYzTZ0w2/1oEB1w== X-Received: by 2002:a62:8408:0:b0:575:d06d:1bfa with SMTP id k8-20020a628408000000b00575d06d1bfamr84203032pfd.2.1673646733096; Fri, 13 Jan 2023 13:52:13 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id m190-20020a6258c7000000b005821c109cebsm9543995pfb.199.2023.01.13.13.52.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 13:52:12 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , John Daley , Hyong Youb Kim Subject: [PATCH 6/7] enic: replace zero length array with flex array Date: Fri, 13 Jan 2023 13:52:04 -0800 Message-Id: <20230113215205.125767-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113215205.125767-1-stephen@networkplumber.org> References: <20230113215205.125767-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 --- 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.39.0