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 A28AA423CA; Fri, 13 Jan 2023 22:52:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D399742E23; Fri, 13 Jan 2023 22:52:11 +0100 (CET) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mails.dpdk.org (Postfix) with ESMTP id EB96E42DF8 for ; Fri, 13 Jan 2023 22:52:09 +0100 (CET) Received: by mail-pf1-f174.google.com with SMTP id c26so12715216pfp.10 for ; Fri, 13 Jan 2023 13:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; 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=9YrtDZRs8/zt5XeHU7mJjb6gV/2aLVSxWUfeyPoDJlA=; b=VSG+il9M1tZULZbT+7RO2kxlaqkaMZzIJu3pKQC6KeCtsiYm7nFcsYa+vMLqVvmt+T RWvxpQxuXfSW22oWPlO5ziJz+G1v9mH388rrNCAUYGuwTrY1Nw6+2dOZ+WVqmwHiD3ZS ZLfQdv/DUBcUUb0NUeGQW+ddAMlV8uGDEQruTNt9KlCmfDpOeP7O4T/Ypfx8ncRJffr6 qHITXT6pE3wSfYrQ3/0mhTHhyJ6GesZKs5mgoaqX8xPBKJODQSV+svaCHQQDMMgUxqeu 1lyOrnh/rRxdIDwRe4Dw1IerCm3ieia8e6lYOu3Ou4JvBfuNBYA+FnaUeVii+higHxPv bDLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=9YrtDZRs8/zt5XeHU7mJjb6gV/2aLVSxWUfeyPoDJlA=; b=JK/0wnHBnDx+7HSg5RTrbZsvl9n3UiaXwvtEB7uJ5I0QWelLFTKi7H2Y+JB+x9sma8 ygyfG9pJfZoRfz5nWStyYa8m16g0PmmlLOiSME4kMbWFr+gQfCR15M2ADDyi7bWmmmnl F7QvqIoV0iAWuMg/gUzsLftelsIUO+bigCkY7emKOgmaSGpapG88Qmz3KoTup/dr6Yf9 HfyTsY/DtW9E02MS2DNsqkXgifheFJrk/HBa7J2Z6HNcze0q2vrCrobH/coNI5rHDWzH EqCx7YUGu8rUX1NGvScozBWTwSPFiIOX1kYxW6XTee0563T6ZjY7JvENYLov85cuxFBf PmZw== X-Gm-Message-State: AFqh2kqNJCB8QUQ/A0Wb6l2pytZlcYPcPEZvcBD/aqDmJt3V6rwnpsdW cBbLPQ65ZQ4ZeBs4tb4gwWSS3qlnWIJq5sob4TY= X-Google-Smtp-Source: AMrXdXsjlQ7kpqv/Fty1UdTaG1gLjnL6fWkphy+QkQxHMZTKkwBFtodII/MRT9erI7QipfewumvfVw== X-Received: by 2002:a05:6a00:b48:b0:581:dda:cec3 with SMTP id p8-20020a056a000b4800b005810ddacec3mr85822938pfo.16.1673646728919; Fri, 13 Jan 2023 13:52:08 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id m190-20020a6258c7000000b005821c109cebsm9543995pfb.199.2023.01.13.13.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 13:52:08 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Fan Zhang Subject: [PATCH 2/7] cryptodev: replace zero length array with flex array Date: Fri, 13 Jan 2023 13:52:00 -0800 Message-Id: <20230113215205.125767-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230113215205.125767-1-stephen@networkplumber.org> References: <20230113215205.125767-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/cryptodev/cryptodev_pmd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h index 0020102eb7db..ffca31db4a96 100644 --- a/lib/cryptodev/cryptodev_pmd.h +++ b/lib/cryptodev/cryptodev_pmd.h @@ -153,7 +153,7 @@ struct rte_cryptodev_sym_session { RTE_MARKER cacheline1 __rte_cache_min_aligned; /**< Second cache line - start of the driver session data */ - uint8_t driver_priv_data[0]; + uint8_t driver_priv_data[]; /**< Driver specific session data, variable size */ }; -- 2.39.0