From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E2098A0563 for ; Sun, 8 Mar 2020 05:22:41 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BE9101BFE1; Sun, 8 Mar 2020 05:22:41 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id E35F7FEB; Sun, 8 Mar 2020 05:22:38 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2020 20:22:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,528,1574150400"; d="scan'208";a="414426545" Received: from npg-dpdk-haiyue-3.sh.intel.com ([10.67.119.46]) by orsmga005.jf.intel.com with ESMTP; 07 Mar 2020 20:22:36 -0800 From: Haiyue Wang To: dev@dpdk.org, jerinj@marvell.com, gavin.hu@arm.com, matan@mellanox.com Cc: Haiyue Wang , stable@dpdk.org Date: Sun, 8 Mar 2020 12:18:24 +0800 Message-Id: <20200308041824.8220-1-haiyue.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v1] eal: fix structure marker 4B type error X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Use the 32bit typedef for structure 4B alignment marking. Fixes: 2b393160a480 ("eal: introduce structure markers") Cc: stable@dpdk.org Signed-off-by: Haiyue Wang --- lib/librte_eal/common/include/rte_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index 4b5f3a31f..3662545d2 100644 --- a/lib/librte_eal/common/include/rte_common.h +++ b/lib/librte_eal/common/include/rte_common.h @@ -344,7 +344,7 @@ __extension__ typedef uint8_t RTE_MARKER8[0]; /** Marker for 2B alignment in a structure. */ __extension__ typedef uint16_t RTE_MARKER16[0]; /** Marker for 4B alignment in a structure. */ -__extension__ typedef uint16_t RTE_MARKER32[0]; +__extension__ typedef uint32_t RTE_MARKER32[0]; /** Marker for 8B alignment in a structure. */ __extension__ typedef uint64_t RTE_MARKER64[0]; -- 2.25.1