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 8A67842DDB; Mon, 10 Jul 2023 23:29:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 593E940698; Mon, 10 Jul 2023 23:29:51 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id D643840150 for ; Mon, 10 Jul 2023 23:29:49 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 2E64A21C4252; Mon, 10 Jul 2023 14:29:49 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2E64A21C4252 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1689024589; bh=39CI33LHV/u7h2o+4Gk39knH3DxMtGzADrddEFXDx50=; h=From:To:Cc:Subject:Date:From; b=Ufr5aIT2oWSy/osd7mHAnVwYS9GLwMzSAb3GAttpuw7ILf1gpNasolv4a4jwaJxcx 0VD6hy1RVk5ghsT97/FnUxwZzg2DpG5sNk2nUpgkMOEd++PEmsb3yawjbVT4GjGLz2 VbouyXIZ0SE9TEDHWYR6WW9yJW5b4CExmM/h09CQ= From: Tyler Retzlaff To: dev@dpdk.org Cc: david.marchand@redhat.com, thomas@monjalon.net, Tyler Retzlaff Subject: [PATCH] provide Windows/MSVC lcore macros Date: Mon, 10 Jul 2023 14:29:44 -0700 Message-Id: <1689024585-17303-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 Provide MSVC compatible macros RTE_DEFINE_PER_LCORE and RTE_DECLARE_PER_LCORE that expand appropriately for Windows/MSVC NOTICE: It is intentional that devtools/checkpatches.pl generates an error about parenthesis to allow comparison with clang/gcc versions of these macros which also do not have the parenthesis. ``` ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parenthesis #31: FILE: lib/eal/include/rte_per_lcore.h:42: +#define RTE_DEFINE_PER_LCORE(type, name) \ + __declspec(thread) typeof(type) per_lcore_##name ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parenthesis #34: FILE: lib/eal/include/rte_per_lcore.h:45: +#define RTE_DECLARE_PER_LCORE(type, name) \ + extern __declspec(thread) typeof(type) per_lcore_##name ``` Tyler Retzlaff (1): eal: provide per lcore macros for MSVC lib/eal/include/rte_per_lcore.h | 8 ++++++++ 1 file changed, 8 insertions(+) -- 1.8.3.1