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 A6FEC43381; Mon, 20 Nov 2023 18:10:59 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C12E42E64; Mon, 20 Nov 2023 18:10:06 +0100 (CET) Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by mails.dpdk.org (Postfix) with ESMTP id A9EC542E4D for ; Mon, 20 Nov 2023 18:10:01 +0100 (CET) Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-6c32a20d5dbso4035566b3a.1 for ; Mon, 20 Nov 2023 09:10:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700500200; x=1701105000; 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=kEkQe0pHl2po+k5DxouhYPB/5OHDrrIT8O8Y9kUcOm0j+nYDeq/1p48T3NxXIpT7pz 9pWgYGVWZ3Ci4Pt9IZ6eQfUAK0dduYFdRc6gs0eeOnCzbH4ZxXdDy1DK8EiJ3DORIJ2d MV778pTcq+z+LOK3Q25cCy2Yjd3sjnBW0XhShosTujPHi/yZXxv2P3hUPDiHwZAslRTY R5VAlPIS01icyKZcXamcrql3XMAEDott12dFJD0Vyz8nw99yZ9Iegxq/K43iDsjnJzeO WWCuuN4VSIA/L3SM5M9pNnet+fF2C7ApU3nrilgTbLyXjFk1iRSFavjUmfUZSNzwkVPz I/Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700500200; x=1701105000; 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=A/A1NZpCHeszRTYj1MC3eeQBhGtqd3G9zvdeHPGVFmkiG+oTRkQ1mc/qHMdeb1ysG9 7xzgkj+4aDRCJQI//3gUDozFV/D46eXr+SOXR9L7mgk0gCMub7Zct/bPRiSEOoWLHxBF Uv3QWyLUOEiGhIjCZ0bSPvzcJDTk2OMvG9tfB57CzbWLqWtee8Rp/LC3SJu7wj/3w1Nl b3vzT2Bk28VOdhsGiqUhsDB2OXv/Ldio4iAQNx3i4Za8EHPVva9BrsJS9fPOau8Rhyir 4Fus3HSHGCdChmePK+FBi0dGhcwH4XfZtQndN29c03PlJoribSjHbNgl+Uacq+dC7Bro Hr0Q== X-Gm-Message-State: AOJu0YwFHUCBYQJSu/hcQ6Qw0TGr42/0YL/3rQ0Dc3M+OYlE7j42BJCb fugSg93GrwouroVqd4shItrkDfY51805YNrIJdo= X-Google-Smtp-Source: AGHT+IE7vM/yWIfEmsXA98YfeDHzEHcKZic1gVa94x9B43fO9bJTcvLRuxTr3hBVDvnsDohvcR0q0w== X-Received: by 2002:a05:6a20:42a2:b0:187:5c6a:9f17 with SMTP id o34-20020a056a2042a200b001875c6a9f17mr6643376pzj.62.1700500200535; Mon, 20 Nov 2023 09:10:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:09:59 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Anoob Joseph , Volodymyr Fialko Subject: [PATCH v4 08/10] pdcp: replace zero length array with flex array Date: Mon, 20 Nov 2023 09:07:03 -0800 Message-ID: <20231120170942.197172-9-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 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