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 E65964334C; Fri, 17 Nov 2023 05:05:36 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C249140E09; Fri, 17 Nov 2023 05:04:54 +0100 (CET) Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) by mails.dpdk.org (Postfix) with ESMTP id B195040A8A for ; Fri, 17 Nov 2023 05:04:51 +0100 (CET) Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-589d412e8aeso809018eaf.3 for ; Thu, 16 Nov 2023 20:04:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700193890; x=1700798690; 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=PXsUfn8zlrTPUShdQIh3qsoAkha80TpGHRBI65K5kBI=; b=EQAoMDnnZCX+66mXxAf6c2OKPiwAtvC+xWFGSSxedQdrvbpgBNdcOTt8XGxIvAsqHD M9ot4rgUthIYYrOBw9/09A8yVmONX7TlGrdHVYzY7peXZiJd9IuwVl+vlaEmmQTOZ7sT 8wVvGYp9Ao9enIZQq30gBa4AsFDiI6cnMT5ri84ySTiHG3sztSDjJk18Ydquk1W6owio i8lkb4ucinEVmalILCw19eOb6Zit6VgTxRx1HPAXB5J2yjseA1sHvowtYABDtMh6+lOL J3TDfi5/TrqhMeUAkfjwAKcV0BVksxiVHpALRWSz9vVPR1yu0/OHu/GakhzBABEi20gB xkKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700193890; x=1700798690; 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=PXsUfn8zlrTPUShdQIh3qsoAkha80TpGHRBI65K5kBI=; b=JFxCZYYSk4lgskjeizaPia0Bc9rL7yrTfcNJTKliSUp2m8gvvhRbBjD/Sr/cV18BxW ddjphCGc3z1EVXCXAHvTjhZ7SX59zOqmAku59UBjof2MUs7WE4f116KUq/rfgreOD4MB mLl8NXQLcnFrFUKBeg0xJnAgng+KgG2Rc1IC9MaY5B0zpX8SwLKqnYbf8/VDrI9Ke5Yi +7IWg8xw5TnFmjs3Cwl7//LE7K9utmPru8LuYuzfw92WF26cBD6oXMeAhyWHzbKI0D+0 jY68EIMIR4EEZB3BQ9RiE0aPuLn7Vkp851xBKm8zotyUYS1/W5Z1+pokLaEBfpnQK/6y J9EQ== X-Gm-Message-State: AOJu0YxJoz+Ns+6iLu9RqUMJ7WgrRWqRPlJUUgBwGM7/akCltsguT2fj 2x5pgVWKsrRg7+bjkCWp23r2IOc+etZxd4zINEkkOA== X-Google-Smtp-Source: AGHT+IFsR6h9vPaK1rFXKEirpsa3ub8f8tFhpJK0Ck1kp9l7carNkP/zxr2LI/t0URrPdkOe90qzSQ== X-Received: by 2002:a05:6358:787:b0:168:de6a:d653 with SMTP id n7-20020a056358078700b00168de6ad653mr13600059rwj.21.1700193890663; Thu, 16 Nov 2023 20:04:50 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id s11-20020a65644b000000b005bcebc93d7asm389873pgv.47.2023.11.16.20.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 20:04:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Anoob Joseph , Volodymyr Fialko Subject: [PATCH v2 08/10] pdcp: replace zero length array with flex array Date: Thu, 16 Nov 2023 20:03:20 -0800 Message-ID: <20231117040432.131737-9-stephen@networkplumber.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117040432.131737-1-stephen@networkplumber.org> References: <20230113215205.125767-1-stephen@networkplumber.org> <20231117040432.131737-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 --- 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