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 C3863433F5; Wed, 29 Nov 2023 03:43:40 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26B9F42E3B; Wed, 29 Nov 2023 03:42:45 +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 4F29842E38 for ; Wed, 29 Nov 2023 03:42:41 +0100 (CET) Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-6cdd4aab5f5so31965b3a.3 for ; Tue, 28 Nov 2023 18:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1701225760; x=1701830560; 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=bSeCFlweWgH8tAjxZSpXDWR9DNnF/IzvsHutYS5fvtA=; b=pbNkqjQe5GS4Pm7W2kRnm3baWxFVG9p1jtCtMez2i3l714JGZJYIkBrz6GAfv7IjUw o82TGpqNklxYpcCl1jYRx940rtf5HISnNT5+8HuCvp/u+2jiaTz1E5fmx+yj5Ba6fWCT KPQSvSP5A9fkrT5PsCJ932i2CH7vri82xa0A2DHrK+0gSRjEtHiCik7k1dYCGHvd5vuW JjhUDf4b5gU1mIA7uLEIvSx1TKGD9WymnVm3q9ELmtWqAAmtcnOp2qfGEtfCkfqNR9Ha RVJ46dHpWbo0vK5ol7AfB3cV35wFLbv0IwAt6CQiVmelLNovrZgYszKgegG9ybtfpfWs YKlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701225760; x=1701830560; 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=bSeCFlweWgH8tAjxZSpXDWR9DNnF/IzvsHutYS5fvtA=; b=F+yqIJeBTHQqTYPfWkiDAbcy14KoR1F5ij/F4uwPyBCLYvTs/tBzdxTraL0gw9jy7e uKvVDcf4T58rU0Jw1Rtm/piFfel3OIeK2pHaEyrb6lV5yCd7KTyhbzzKN3FZUasLMu7j YFZBovUGL0X5bvo2cMT8JndmjYTUs8XIWKjhiQsjULkbosYVE6TCOLL+s8NB57nIwnch XumeV1XRTg/2Ic98XFyEd6coNKiStpk7L+DKPyUsi+zWNOP5VooeazNaNHGJzInWToYN A7PHKxEZoJ0fzwQenqnvpkD1L+BuyQkOrgnoKQiuDmxQMecly0x405htlopilV1mwUI7 E4Hw== X-Gm-Message-State: AOJu0YzAU7HG8vmILSIuxUItb8xdMLItbaLgti1HW8ydom9XAWVz/EYz z6gKkIWatXbfmzy1tJOPu3rKWl20F2yvp7BrJ5I= X-Google-Smtp-Source: AGHT+IECJL7588bGjTZlXVoiQ10JHCQcX8I6z1uvZam6dEHwLjsH3wEQ5V9VuRmrDBsDBWdJNafHfg== X-Received: by 2002:a05:6a00:a22:b0:6cb:d24c:4a9f with SMTP id p34-20020a056a000a2200b006cbd24c4a9fmr25068596pfh.29.1701225760205; Tue, 28 Nov 2023 18:42:40 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j17-20020aa78011000000b006cb95f6aa0fsm9674900pfi.150.2023.11.28.18.42.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:42:39 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Anoob Joseph , Volodymyr Fialko Subject: [PATCH v5 08/10] pdcp: replace zero length array with flex array Date: Tue, 28 Nov 2023 18:39:15 -0800 Message-ID: <20231129024221.57653-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231129024221.57653-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231129024221.57653-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 Reviewed-by: Tyler Retzlaff Acked-by: Anoob Joseph --- lib/pdcp/pdcp_entity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pdcp/pdcp_entity.h b/lib/pdcp/pdcp_entity.h index 4fc6342a5ced..f854192e98dc 100644 --- a/lib/pdcp/pdcp_entity.h +++ b/lib/pdcp/pdcp_entity.h @@ -185,7 +185,7 @@ struct entity_priv_dl_part { /** Reorder packet buffer */ struct pdcp_reorder reorder; /** Bitmap memory region */ - uint8_t bitmap_mem[0]; + uint8_t bitmap_mem[]; }; struct entity_priv_ul_part { -- 2.42.0