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 3869443355; Fri, 17 Nov 2023 17:21:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D689542D55; Fri, 17 Nov 2023 17:21:04 +0100 (CET) Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) by mails.dpdk.org (Postfix) with ESMTP id DB9AD402C7 for ; Fri, 17 Nov 2023 17:20:58 +0100 (CET) Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6b7f0170d7bso2089648b3a.2 for ; Fri, 17 Nov 2023 08:20:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700238058; x=1700842858; 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=BeDfkTyZNLNzjAhDX0gaIsbVYH+2dlzyWVsH3kVpih42pd5Pna6C+L44o8S8Rl4rXw eXuQrpK0EL0hR4QMUTP9EqbKwwVQED8Nna4Ra4HrRNbUWCLKh6PIzJldJNN1TIJfeK9V xsBvdwmHsX6UfSI37UUOqYhj15KUQ+eeisTAfrzW2QntyNxS3GzpxLZKSmx4G8KQIuWt DI5L/y2/FT8/R4lg0RMA9BRDPwajpfu2UlyfPz7KyyH4W7ijmCxTwE/6RW+Crks1UQ7q W2J+ZJnKMhPsBpwOcatkMjtBJ1v2tumhFh1uYfvP92C98CE/l2uHbnKLcVaU4I1Rf2OX xMWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700238058; x=1700842858; 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=gNz28VhAbeW3kD3W1Pf4NqDFRhD68AsnJxHEstcUAk3Izz6lGuO0XB0WxZtX2OXWlf BPKSrKbz8xLNN42r1Vjr36isma8p8Sb8Vsl0ZAyZsN3oUNw5wfoHRKz6G56oJqF/yCXu w4PkkIL5ezdxb7wTGC3op78XS11LaiJz5YdvoSMH5FxBu/UBQOekXhlLX372BDlyL9vX pfO/1q85/AgSIh4gUCEQsXjrXxVG+lZoBmiNaz871K+4Arf+ivrN4e8aoQJvbONu7v6H SU4DkviFXN9a2j1KIdyb8FDncmWEl2lRDw07gIZGugYPv9b8MgrKLS7uqMum3LsZ45zK W1eA== X-Gm-Message-State: AOJu0YzupV/tPW2iCkWTw8W5KemqySq1Tu+4MYUqO2xhDMlaPuhboSXc ectvEebhnnKNDPMXiWvQGN7fLgNp9RZr15ZxUngVjg== X-Google-Smtp-Source: AGHT+IF1eFWynFUWEpntC00aIXgAKNprafn8cSFbNbxDa+Q3dsXG+04BGYwN0xNxSTEMpgMohmTqZQ== X-Received: by 2002:a05:6a20:3c8d:b0:187:3643:ecce with SMTP id b13-20020a056a203c8d00b001873643eccemr11995378pzj.56.1700238057679; Fri, 17 Nov 2023 08:20:57 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id q15-20020a17090311cf00b001c61df93afdsm1564759plh.59.2023.11.17.08.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 08:20:57 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff , Anoob Joseph , Volodymyr Fialko Subject: [PATCH v3 08/10] pdcp: replace zero length array with flex array Date: Fri, 17 Nov 2023 08:18:34 -0800 Message-ID: <20231117162040.241466-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117162040.241466-1-stephen@networkplumber.org> References: <20231111172153.57461-1-stephen@networkplumber.org> <20231117162040.241466-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