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 87B90A0555; Fri, 3 Jun 2022 08:56:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A5CE40691; Fri, 3 Jun 2022 08:56:35 +0200 (CEST) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2051.outbound.protection.outlook.com [40.107.21.51]) by mails.dpdk.org (Postfix) with ESMTP id 34E524021E for ; Fri, 3 Jun 2022 08:56:34 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m6P6lbh9HLf3Qr/jpiFIANvt8TsY2k8mbFJvAplfriAa6cqcknH8wup7JWHWU7PWwZmJQS42UBgbNub0HuxQJBjFGIDxydt7xbFRIc8MXFmlSQdEhIm9J9CQteMqw6PXm3nkYyt2Z0/TbFbO3vB8ksyT4yQqgD1Jd2VjwwtiD7zu2/EX/H33tgP5lJfzon9lbg2NYqmOxbGcCLgYjnMXuTIFCPeLp3Fke36hgQOvhEaLqylrnEQSUZjL/RlNusGQ7+Y7UOvbXtnuIlcRQNkLTYSgnisn/6HEa4BWAxZ5qvUQtH3wCTxzlXJAB7Edxd+XQWq6GU3arY8PRLIBCIE04g== 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=Db3SyqGkBE9chTGeVOU92jbi5JVaMNoNyeB2vEsAo9M=; b=W84+I0PCibGsvg8KYRFMkaAr4jL0dzO1Un/0JjKTtj1I4IHMJs0Uo1DB2obfVX6tIVZYGt57NhNWuBFPHDel/+hI4i4uqLyPSnTBZyuNPP14Gl8ifnfz6Syq5WhkXacIkg/ru2nnG0bAiKixhNYIsrhdrE499U01ouGWc4gvBloJSAqnB8N+PPwgvn5backDkndISVg4rrvlmjVWlCc78aB1KHORfIuvArsqpbDOujp1w0exTB9rG4+5n33GSjUyoUE5ts90kIMV6/v+bcnu0HebBv21nPtWaxG7oMgIFUatQ7y50rIMlOdI8qb1kTTTfvP4VKNmMS7JV69fQN52Sw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Db3SyqGkBE9chTGeVOU92jbi5JVaMNoNyeB2vEsAo9M=; b=dUryeH3a9kYkWnFnLqLlgE3bKKytmEgY8x2VdZcu7238Gl3loTMOyi9kVDxuNux6ArNhIUes5gjeZqK5EXyR0awxqG2rdpsDljGwJE7Rj/plUMNqEpqHEUd7+/36CZUpO4VdUgdawcHWdWkeCqCbj8QokZ0VG1YUptJ5fi8c+to= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AS8PR04MB9064.eurprd04.prod.outlook.com (2603:10a6:20b:447::17) by AM6PR0402MB3415.eurprd04.prod.outlook.com (2603:10a6:209:d::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.19; Fri, 3 Jun 2022 06:56:32 +0000 Received: from AS8PR04MB9064.eurprd04.prod.outlook.com ([fe80::7441:a97b:6d91:2943]) by AS8PR04MB9064.eurprd04.prod.outlook.com ([fe80::7441:a97b:6d91:2943%7]) with mapi id 15.20.5293.018; Fri, 3 Jun 2022 06:56:32 +0000 Message-ID: <5942d5e5-b953-ed57-2bfe-ec36174464a3@oss.nxp.com> Date: Fri, 3 Jun 2022 12:26:25 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v2 0/4] clean up zero-length arrays Content-Language: en-US To: Bruce Richardson , dev@dpdk.org Cc: david.marchand@redhat.com References: <20220602150834.643745-1-bruce.richardson@intel.com> <20220602161324.1123926-1-bruce.richardson@intel.com> From: Hemant Agrawal In-Reply-To: <20220602161324.1123926-1-bruce.richardson@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR02CA0024.apcprd02.prod.outlook.com (2603:1096:3:17::36) To AS8PR04MB9064.eurprd04.prod.outlook.com (2603:10a6:20b:447::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aafaeda7-3c6c-46dd-b963-08da452e310d X-MS-TrafficTypeDiagnostic: AM6PR0402MB3415:EE_ X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tri4M4rcl7c+qmcytEX3JkmFuusxI3JoxCYWrxGGTMiEsgt/zl1x1BtaWlu1tySaaKSLEFFQnwDrNxbRz8MUNxdIEN3fK3ZKPCasVkQUvkkby51mLqGoAUq6CXrqaaq/ONpY11H2ETdr80sG/+93airHfIZ+WRM7qkxuv3fnyBicnSmCetMnGrIIw37bA47TB/pC/BKSD9UoOKjBHhYuWHWQ/obFIHZX21m/QUi6CcpHuT/om9mhTE0QhH+0I/6JCQDeEOmREqyRyEeGkuCvOv8Hf1+8tFfWeWSV1zW137VOyOxMjFz0dHg2s0Qq/l/fDp5DFH1EdtQc/KMasMBHf6h3LZzm3PYp05Y/TSJQGbxOL8kk4/J8vwThXHW/GLh3o/R7X3XD5crNowNRwlwdsKG8isSBHbuieBtOTZEemAyDikfSuGTTNu5eOJAjQ8m5cAPxP2ooQR0QDLx3K+KI7zqAswfdarjf7Q1f+dI43pjzcY5LKrGPWySclgWQwMLp4BiMlMcRJ2IuDGZ2cyGWrL1pHoP7qBAYSCyrVSive1XG7veF18KXAwChSxisJzHtWtEc8xDc+d53SPxfJiTOBiGzhRPp/tAJUIetQK1ut6Hr3D+G0xmECxsUPYGFxC9vvEBeiTLw3Re18mpeLRIPTsk1bg0X2pErYoUNMLBYvZBuYcNMYFofEpQUYGG96zrqRZ0C1WiscUdbPMhM6gKq1cVldpGwHmAtQ60mBql/hDgJgKkX8o/iPdgZ6RTNfh3ddiEWyioygHa9HKgbeKb4fg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR04MB9064.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(8936002)(66476007)(83380400001)(31696002)(5660300002)(66556008)(4326008)(8676002)(508600001)(186003)(6486002)(6512007)(38350700002)(38100700002)(44832011)(26005)(66946007)(2616005)(6506007)(53546011)(86362001)(52116002)(2906002)(6666004)(31686004)(316002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WlhnalJQSG53VlhCZjIreGE4RTI5OFFxaC93dmVqVlM4UXFHSVpHa0J3TjRB?= =?utf-8?B?dzJvcmVtangyQjRLVnUvRyt3NVc5dkhlT2Q3WmpuWWF0Tmt1WGlXeUVvVjc1?= =?utf-8?B?RUN0RmR0WmNOb2FaaDFqd3d3YWxHN3lWaG85djRjMVBtaVVEMjd4aFFSUDJO?= =?utf-8?B?eUFQdWNQWExQSEtmYUNLVkVaWVo4c0ZEWEN6V05QZlRzbGNvTHE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Dc2cUxlaERRVzByUCt1Zm40UmdLRTN4YTVmemxq?= =?utf-8?B?eGNYNmcxbmtEZ1FicVV5MjFIVTNYblhYZzFDTmFsL0VBbHJOdW9QdDJiWG5U?= =?utf-8?B?ellQZEhrTHg3b2ZLblVBQkZhYldFYXFzeGVJRkFCUFErT2p3aGNkbjM5MTF3?= =?utf-8?B?WGM2b1VMY3JuUk9wdTVxWTRub1pWME5oeFF3dTRQTUhrUXlkT3NWUkgxamM0?= =?utf-8?B?VHNveDVLaWlUQ3FjZ3QyYmthNndnby9QbU02NXFobnlTSVRBeXgrWkFndnBk?= =?utf-8?B?OHl1RFhnRDhVblc5elV1YUcrdW93TXI5RWl2a2xDM0w3dW8zenVGTElTYUdh?= =?utf-8?Q?w5n7dAM04I8IQ1Vk=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: aafaeda7-3c6c-46dd-b963-08da452e310d X-MS-Exchange-CrossTenant-AuthSource: AS8PR04MB9064.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2022 06:56:32.4003 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +/VbAGs+KAk1sOyEFDu5uuBymosvRXVMi5B0zyRyZg2exbQ5klUfYt92ZDaC9QR3YkOfNMIGCqszM700/G7xvQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3415 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: , Reply-To: hemant.agrawal@nxp.com Errors-To: dev-bounces@dpdk.org Series- Acked-by:  Hemant Agrawal On 6/2/2022 9:43 PM, Bruce Richardson wrote: > This patchset adds a coccinelle script to clean-up zero-length > arrays in structures. The final patches are the result of running > that script on the DPDK repository. > > V2: rebased to fix apply conflict > > Bruce Richardson (4): > cocci: add script for zero-length arrays in structs > drivers: replace zero-length arrays with undimensioned ones > lib: replace zero-length arrays with undimensioned ones > app: examples: replace zero-length arrays with undimensioned ones > > app/test/test_table_tables.c | 2 +- > devtools/cocci/zero_length_array.cocci | 21 +++++++++++++++++++ > drivers/bus/dpaa/include/netcfg.h | 4 ++-- > drivers/bus/vmbus/rte_vmbus_reg.h | 4 ++-- > drivers/common/cnxk/roc_se.h | 2 +- > drivers/common/dpaax/caamflib/desc/ipsec.h | 2 +- > drivers/common/dpaax/dpaax_iova_table.h | 2 +- > drivers/common/mlx5/mlx5_prm.h | 10 ++++----- > drivers/crypto/ipsec_mb/ipsec_mb_private.h | 4 ++-- > drivers/crypto/virtio/virtio_ring.h | 4 ++-- > drivers/crypto/virtio/virtqueue.h | 2 +- > drivers/net/atlantic/hw_atl/hw_atl_utils.h | 2 +- > drivers/net/cxgbe/clip_tbl.h | 2 +- > drivers/net/cxgbe/l2t.h | 2 +- > drivers/net/cxgbe/mps_tcam.h | 2 +- > drivers/net/cxgbe/smt.h | 2 +- > drivers/net/enic/base/vnic_devcmd.h | 2 +- > drivers/net/hinic/hinic_pmd_tx.h | 2 +- > drivers/net/mlx5/mlx5_tx.h | 2 +- > drivers/net/nfp/nfpcore/nfp_nsp.h | 2 +- > drivers/net/virtio/virtio_ring.h | 4 ++-- > drivers/net/virtio/virtio_user/vhost_kernel.c | 2 +- > drivers/net/virtio/virtio_user/vhost_vdpa.c | 2 +- > drivers/net/virtio/virtqueue.h | 2 +- > drivers/regex/mlx5/mlx5_rxp.h | 4 ++-- > examples/ip_reassembly/main.c | 2 +- > examples/ptpclient/ptpclient.c | 4 ++-- > lib/cryptodev/cryptodev_pmd.h | 2 +- > lib/cryptodev/rte_cryptodev.h | 2 +- > lib/eventdev/rte_event_timer_adapter.h | 2 +- > lib/ip_frag/ip_reassembly.h | 2 +- > lib/ipsec/sa.h | 2 +- > lib/rib/rte_rib.c | 2 +- > lib/rib/rte_rib6.c | 2 +- > lib/table/rte_swx_table_learner.c | 4 ++-- > lib/table/rte_table_hash_key16.c | 4 ++-- > lib/table/rte_table_hash_key32.c | 4 ++-- > lib/table/rte_table_hash_key8.c | 4 ++-- > lib/vhost/rte_vhost.h | 4 ++-- > 39 files changed, 75 insertions(+), 54 deletions(-) > create mode 100644 devtools/cocci/zero_length_array.cocci > > -- > 2.34.1 >