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 2DF8C43A13; Wed, 31 Jan 2024 00:26:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C48C940269; Wed, 31 Jan 2024 00:26:16 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 5FE2840269 for ; Wed, 31 Jan 2024 00:26:15 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 8CF2420B2000; Tue, 30 Jan 2024 15:26:14 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8CF2420B2000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1706657174; bh=vfzUe6UruNb65iOsCh3xCY5Jh3akAdRzI1/fw4RUDLs=; h=From:To:Cc:Subject:Date:From; b=myPG360kZzHc8MaHsHHNbEZL1Xb8NWE6cOh5DuZKnK8u1v+GpyYaSyZvzcM0CDNqV 5O7aHzSeDgTyb+MdxMV5Yk8K7bh+yQW9o758SDMuPgnPeNux6DWU5grgavQ57Cufo6 2353+n63YDRH/qoADHYnwKDS228nMwIKmvtjXgCQ= From: Tyler Retzlaff To: dev@dpdk.org Cc: Andrew Boyer , Andrew Rybchenko , Bruce Richardson , Chenbo Xia , Konstantin Ananyev , Maxime Coquelin , Tyler Retzlaff Subject: [PATCH] replace GCC marker extension with C11 anonymous unions Date: Tue, 30 Jan 2024 15:26:12 -0800 Message-Id: <1706657173-26166-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 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 The zero sized RTE_MARKER typedefs are a GCC extension unsupported by MSVC. Replace the use of the RTE_MARKER typedefs with anonymous unions. both lib/mbuf and consuming drivers have been updated in the same commit to avoid driver build break. note: since rte_mbuf is a public structure it might be argued that the removal of the ability to access the fields as an array could be an api break. there is no intended change in the application abi. Tyler Retzlaff (1): mbuf: replace GCC marker extension with C11 anonymous unions drivers/net/ionic/ionic_lif.c | 8 +- drivers/net/ionic/ionic_rxtx_sg.c | 4 +- drivers/net/ionic/ionic_rxtx_simple.c | 2 +- drivers/net/sfc/sfc_ef100_rx.c | 8 +- drivers/net/sfc/sfc_ef10_rx.c | 12 +-- drivers/net/virtio/virtio_rxtx_packed_avx.h | 8 +- lib/mbuf/rte_mbuf_core.h | 135 +++++++++++++++------------- 7 files changed, 94 insertions(+), 83 deletions(-) -- 1.8.3.1