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 2CE88423C5; Sat, 14 Jan 2023 02:13:53 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C563140156; Sat, 14 Jan 2023 02:13:52 +0100 (CET) Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) by mails.dpdk.org (Postfix) with ESMTP id 0191540042 for ; Sat, 14 Jan 2023 02:13:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4754; q=dns/txt; s=iport; t=1673658831; x=1674868431; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=up6QvQ9jGauc7Dji7S574IMqbhFvarwnLxehoZBoILE=; b=ENeidVhDoaX580kvpF/KddMWBGJYg0YKic9l5rf11GVp4cCmWuSy0SZt tTJIVurAi6QAevnUVZV0dCB2DsShU8rq02Sx88IsqakejQ3ebr76XTt8M jZkP6QJ0ZFlkkSZchR1Hso4V7BkiNKNhdyAvyns9VnDSt0Bf3e8HahOZG g=; X-IPAS-Result: =?us-ascii?q?A0AkAAA2AcJjmIUNJK1aHQEBAQEJARIBBQUBQIE7CAELA?= =?us-ascii?q?YEpMVKBBQJZOkWIGgOEUF+IJJZxhR+BLIElA1YPAQEBDQEBRAQBAYUGAoUVA?= =?us-ascii?q?iU0CQ4BAgQBAQEBAwIDAQEBAQEBAwEBBQEBAQIBBwQUAQEBAQEBAQEeGQUOE?= =?us-ascii?q?CeFaA2GVgEBAQEDEi4BATcBDwIBCBEDAQIvMh0IAgQBDQUIGoJcAYIWgQwDA?= =?us-ascii?q?Z9vAYE/AoofeIE0gQGCCAEBBgQEnx4JgUABiQqIFiccgUlEgViCZz6CYgKBJ?= =?us-ascii?q?zseg3CCLppcCoE9fIEnDoFIgSwHNgNEHUADCzs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vqrIQ8VO V+BsDV4/hbNVuccnDCp2FqhNihRG46EBuKSlUL/pX96UkdoFlpi08DgMAPlHYJ85wwD5FC+u TfK6xt0LVDVNUfY65xDPoIBcG3FmvOSxTRN3/6GyWtKIgXf3bW75Ln6rQ84++nPJQO0ZspgZ zEFEhVsGYjEniefvFmHKc7hiwlbF/NKAgFkPsulKSRkoeMNobWDQ== X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="5.97,215,1669075200"; d="scan'208,217";a="36240470" Received: from alln-core-11.cisco.com ([173.36.13.133]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 14 Jan 2023 01:13:41 +0000 Received: from mail.cisco.com (xfe-rtp-005.cisco.com [64.101.210.235]) by alln-core-11.cisco.com (8.15.2/8.15.2) with ESMTPS id 30E1DeZS001389 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=OK); Sat, 14 Jan 2023 01:13:41 GMT Received: from xfe-aln-003.cisco.com (173.37.135.123) by xfe-rtp-005.cisco.com (64.101.210.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.9; Fri, 13 Jan 2023 20:13:40 -0500 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (173.37.151.57) by xfe-aln-003.cisco.com (173.37.135.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.9 via Frontend Transport; Fri, 13 Jan 2023 19:13:39 -0600 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LZTTh4JMJInMUlu6Rd++g/YGATEfzBPekhFx0IJGRsBIPOhdhhxI7Vx5CtB1ZIe7Mqfhf3Z+ICk93h2iViqxMpYWvXh3pEdE+zUBMECwuAIidq1BMp0u3VX3xgzLWmbu0rqJwInqXzkIecSMrjnHrlDfsfPyOQUY/11HVkQ1IbchhRqbYdvM13tCIRF6g2kXH5XXDOPeNQJpL9ZnVu1Oxc+KC/zvZ+bCkcr/iv27KgWdWsEkQbNyPSoyGgS6izYPJovdMzGjt7o90vEbkDbwZuZYj8tSYhUPCFbdlWMLSEuvzWMUxCABkvQQl2Fk7+S9anmkcvBA1htbcMjzC3+lDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vri4BgtTtpp/yNFdzyiVIlcrk/4eXyfZTcO1NBcsWHc=; b=Ibv0GruaQifHDu6IlnlUZJ+PVgn77lwIg/izVyJm1Pb2ITjxqn3DkSHbQITaBL80rJC7UeLeWzCf5lyTikcwOAFRoTrB4gvZZqPHcEPPSIOCF2B/gYq4czzvp/1XIvUOwt/X1+qj00k/eQ4Y+SszQR3ceBazKYEw7w2AqiAILQ1nIKfkNuPE6DtIX2tH/z83QvNpmWCFm2Yyy5pNanBqSac8tByXELG45ROwPzjFZRT8qKbLC8ONlNGnjouPQHAF5+mirONfXD4I2uVyt/c/izOt6uMaiDr6LI+tSBMAv4TYeXWEZ94lQQ3wE0hgueXb+KlnAOVGG7JQ82VrP41Vtg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vri4BgtTtpp/yNFdzyiVIlcrk/4eXyfZTcO1NBcsWHc=; b=j8JNyDKPlS9gkTpXK06awk1QESbU0j4lWah9iadmdU5FCMe+F7CJvE6ha4RbYU5ys8qkUaUBJV+ElV4zFLf5IFZmeSD8W+aJEuElA8pXNI5cNVe1RmAOd33jKExHXnqIxj607cJ05AEn6gy/KNsjf0KAdqYoByjacHENXbLNiDo= Received: from BYAPR11MB2535.namprd11.prod.outlook.com (2603:10b6:a02:be::32) by SA2PR11MB5145.namprd11.prod.outlook.com (2603:10b6:806:113::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.19; Sat, 14 Jan 2023 01:13:36 +0000 Received: from BYAPR11MB2535.namprd11.prod.outlook.com ([fe80::5b06:52e:8774:9ace]) by BYAPR11MB2535.namprd11.prod.outlook.com ([fe80::5b06:52e:8774:9ace%4]) with mapi id 15.20.5986.018; Sat, 14 Jan 2023 01:13:36 +0000 From: "John Daley (johndale)" To: Stephen Hemminger , "dev@dpdk.org" CC: Stephen Hemminger , "Hyong Youb Kim (hyonkim)" Subject: Re: [PATCH 6/7] enic: replace zero length array with flex array Thread-Topic: [PATCH 6/7] enic: replace zero length array with flex array Thread-Index: AQHZJ5lOSOIhgWXde0yFl10/kcOvrK6dGovb Date: Sat, 14 Jan 2023 01:12:54 +0000 Message-ID: References: <20230113215205.125767-1-stephen@networkplumber.org> <20230113215205.125767-7-stephen@networkplumber.org> In-Reply-To: <20230113215205.125767-7-stephen@networkplumber.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cisco.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR11MB2535:EE_|SA2PR11MB5145:EE_ x-ms-office365-filtering-correlation-id: ee96ce8c-6615-4d7e-40c1-08daf5cc8ff7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rPJkqynDGmAx9sxOvGBRprEkLvjZtplsoRCbxhmpg5StHtg9YawYdeAvUW2qXDYD5X8etpzkF0ZkPT9qNRdqspuBV8kUV0ozrueeLTxTF2nQETYds0ov+AZJ0wJrdi7vEsz+Q5ooKzihwdnhy63LjZf6u66BBqfPRhPU8c43UE1neKSF5GpHYftViHreAqO9+USG42vzSSx16gK8dPbChKJu6MDOIrTUimlxTez4IJ9IrXbbK5tGO8aJE5orX6k50g4yGYd7GDrRAc02clhc0TTgegub8KBuo9uJcxgtmp11HJ0kHSkxg8/lkItVWf6ueoOdnYv0UAFR3q0U+GJauvK2UGOD9W9BnePYw4jY0XbJw9CaZ7tJsF9u6/6OU2XShJCSsq31a48TlBaxQIZBaDueNDHhOIDzT687eO+oFSgeSPg/RP9xKtJhQSz40SjCsuj8ZNCgYldXjPirko8eJH89V/UeDzHJxsBiZLdzIfJcTMKwuozWYdbPTsD+gvgbXCv1nHxpU5LQBjivr8cVrgnUs5BDYlEvF8hYXnmFYxmIgNlhSZbkQdtaqd2l5YQHW1ItqGaI+6XUf56LfMXjbm90AoqGPIz4wNqTUiPggwCj57XpcgXs1ZMoW0zHaVgpK5+pxpZQ8Qljzcxt9KaCRJIx4VIiOUw1drzcLLPmpnWeLPfaD4QU5LNdy5k6KsQ2PwpSi4x4+EoPQb2q2qTUjA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2535.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(39860400002)(346002)(136003)(366004)(376002)(451199015)(110136005)(2906002)(54906003)(7696005)(9686003)(71200400001)(122000001)(26005)(186003)(55016003)(38100700002)(38070700005)(316002)(33656002)(8676002)(478600001)(66946007)(4326008)(66476007)(66556008)(76116006)(66446008)(64756008)(5660300002)(83380400001)(41300700001)(4744005)(86362001)(8936002)(52536014)(53546011)(6506007)(107886003)(6666004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?YIwBuEnHNuYRHG6H064RbanL+Gz5alHAhc/UnMU1pv0993c7jhH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XmsKj5mEWdeBoYizawf9WeqUNGOejbxaZVFvGF6WryBD42T?= =?us-ascii?Q?/bfNtbhpdWm3eEzjhCjEKQtL+OHWIDd1i7ewPpevC62zDzz5KeltoAdTuVtW?= =?us-ascii?Q?AKHgUJXMZ/aQ2cdb1zs7WWnDHzIJO+BoHD4Ps+WgxlEcE5kraFmOnOS6YHd6?= =?us-ascii?Q?142/8pbDuE8qY0PbptqM9JcLxIrvAyxT4fzlKx7ElfJ29LaDJ7Ua9IgDpAfC?= =?us-ascii?Q?XIG+0VdKMtjRZh+kW7/NmYPyqh1jCx4KTNM4y0lLvmPLKFGtlCbhgMAy7Nb5?= =?us-ascii?Q?FFNJgldoOOBycf+Khhg71+oxvz1PjGxzEgGhx4ED+XV47VOdjnoF6tzXL6Ax?= =?us-ascii?Q?5sG64it93gHtttRdbPszwo2ZxKLRngbp7Y2tsTk9WhPTBRC5fqGSanI6jWS7?= =?us-ascii?Q?7knK968ICgqbXvWzkXCp0mR9JhyV5rBXCDQnohIUXNDJSoIcF+593HhVS94e?= =?us-ascii?Q?e3+JAlJztpvn0k0bGfi+Q0IQL0paIdOd1Rhp/lgInbe2N7750fHM8IFnC91Q?= =?us-ascii?Q?8Z91STZdBAEj32Y2hLij8gNVvhIQthKJT+kFryz1Kkcc1XWoFKg/RBlAmFx6?= =?us-ascii?Q?YqXybpZCpLvgMulw6LEe2MbGI2cDHzUpc4JoTppgl1cbpXSIzEnaufF2j115?= =?us-ascii?Q?R20Yxam+qILM4dD6y6+aMV0QOSR+iN7Wc0aAPGQG?= Content-Type: multipart/alternative; boundary="_000_BYAPR11MB2535B7A2E245614709E90700CFC39BYAPR11MB2535namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2535.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee96ce8c-6615-4d7e-40c1-08daf5cc8ff7 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jan 2023 01:13:36.3357 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: t7Jyutl+V8jLEwc/BQ+TWY/XZbH+7oRNR2ZmgPa6rGKGNqIgO7Hc8cSXIGjtNj8rpX+iVq/O9WZnG4kxK7YN1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5145 X-OriginatorOrg: cisco.com X-Outbound-SMTP-Client: 64.101.210.235, xfe-rtp-005.cisco.com X-Outbound-Node: alln-core-11.cisco.com 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 --_000_BYAPR11MB2535B7A2E245614709E90700CFC39BYAPR11MB2535namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Acked-by: John Daley From: Stephen Hemminger Date: Friday, January 13, 2023 at 1:52 PM To: dev@dpdk.org Cc: Stephen Hemminger , John Daley (johndale) <= johndale@cisco.com>, Hyong Youb Kim (hyonkim) Subject: [PATCH 6/7] enic: replace zero length array with flex array 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/vn= ic_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 --_000_BYAPR11MB2535B7A2E245614709E90700CFC39BYAPR11MB2535namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Acked-by: John Dale= y <johndale@cisco.com>

 

From: Stephen Hemminger &= lt;stephen@networkplumber.org>
Date: Friday, January 13, 2023 at 1:52 PM
To: dev@dpdk.org <dev@dpdk.org>
Cc: Stephen Hemminger <stephen@networkplumber.org>, John Daley= (johndale) <johndale@cisco.com>, Hyong Youb Kim (hyonkim) <hyonki= m@cisco.com>
Subject: [PATCH 6/7] enic: replace zero length array with flex array=

Zero length arrays are GNU extension. Replace with
standard flex array.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 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/vn= ic_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

--_000_BYAPR11MB2535B7A2E245614709E90700CFC39BYAPR11MB2535namp_--