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 C9C49423CA; Fri, 13 Jan 2023 22:52:27 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D200742E28; Fri, 13 Jan 2023 22:52:12 +0100 (CET) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mails.dpdk.org (Postfix) with ESMTP id F179642E19 for ; Fri, 13 Jan 2023 22:52:10 +0100 (CET) Received: by mail-pf1-f170.google.com with SMTP id a184so17142261pfa.9 for ; Fri, 13 Jan 2023 13:52:10 -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=HknXnvsUwqREvb8p/YaV0ZIR1cUXLuy+bbSgLG3h564=; b=3dHvW2Ay2a/n+dAmP6CtYC1j11HHxKAJHjGezWwpgc/D5vJ+aXJVBrgcsGtjN/C+kd bkzySlMcDXrdu2q6dbNRNk2/G6mFV650cWNKi7UNDHToc77tzkUrtqbfVVXN4LZfyUlk z1bYv4P0ZNvK07dTFI+A+chsDeP4MwmJYYR3DgI30jn1TqG7/8nlwKFzZe96M8nvsFiN mTQ0jTH5H3FKgH5ZHOQTQwxSP9GX2sh1sbOZfVV7Bw9svA/jJ23zNZgNsMn0cRWUT+GR kZbZC9K7kw1gp/74qp8e8da6en2gi0OJJ5uLvbYu809peZu7uyPlllQoZAdwpVRGvTE/ UgoA== 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=HknXnvsUwqREvb8p/YaV0ZIR1cUXLuy+bbSgLG3h564=; b=NU3RuedR+TfYAEyxPvOOSlIhlsfFoxKOYDPfKCVrYAK5eI5Hb7SfYLzpkH3BBMETv6 9ru1oqiG2wotxITufnDT3Z7O6YbWIjwd5qQH5kcQBp8eDdEuVBSUj6AYQi7RTVrVSOGb 8H13gUqI8TXu2qNe+3luyKNRM2JY7D3TGj9JhGH1ynFGpucIV3riJF+GVc6TU+fieuBH /aniIUhvmGRbdHFKFiAwSLippoFtTza64HGN4/kXw2bKVBPRFfDYKthqC+0+/S/WWSot I74U1dfd3i3k7ENQWsGVTA8YM27UMDy9S1QW0emsPkZcIrPwaO/BIbz4OQRcKhE0cW7h /4NA== X-Gm-Message-State: AFqh2kqCdwdSEtj2KLj6qSvenWDctrddr2HkvonZjG89baM0w5xlJu5a MViJGxdkJkIi8V4zPU3vyN7NH9oc9wi+BmSjwZs= X-Google-Smtp-Source: AMrXdXt73ReVKcR4kY2/Cprfg/CDnVhsx/VwHfew6vhMaPE8Wer2kG2qn8YDXCaw/YU/Fn0mpwUHFA== X-Received: by 2002:aa7:9614:0:b0:58b:b9cc:5724 with SMTP id q20-20020aa79614000000b0058bb9cc5724mr3767717pfg.15.1673646729871; Fri, 13 Jan 2023 13:52:09 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 13:52:09 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal Subject: [PATCH 3/7] security: replace zero length array with flex array Date: Fri, 13 Jan 2023 13:52:01 -0800 Message-Id: <20230113215205.125767-4-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/security/rte_security_driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/security/rte_security_driver.h b/lib/security/rte_security_driver.h index 421e6f778067..ff6a33369a08 100644 --- a/lib/security/rte_security_driver.h +++ b/lib/security/rte_security_driver.h @@ -34,7 +34,7 @@ struct rte_security_session { /**< session private data IOVA address */ RTE_MARKER cacheline1 __rte_cache_min_aligned; - uint8_t driver_priv_data[0]; + uint8_t driver_priv_data[]; /**< Private session material, variable size (depends on driver) */ }; -- 2.39.0