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 8010443801; Wed, 3 Jan 2024 00:45:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E7330402E5; Wed, 3 Jan 2024 00:45:05 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id E49D1402BC for ; Wed, 3 Jan 2024 00:45:03 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 2CECF20ACEEA; Tue, 2 Jan 2024 15:45:03 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2CECF20ACEEA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1704239103; bh=5HWNgsShq4RKsn8+OGmQ5ptrAyl7dRNL27IRQvCeeH0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oGq2c7JQ715+QXfryosMUnnQHSafBKGfInvWXRMv1VoE2R3GK4dKUtil4FDj/N/tK JD0dz3fi9MC5sO+iPiU3R2M9G68mkG+5Viamj3PNGqwZ1aUjSIj+0LpDOi8fWMUkxo t2VOIy+cDmzRScCNFTC0r3TeceAmpv2723z9kDgw= From: Tyler Retzlaff To: dev@dpdk.org Cc: Kai Ji , Pablo de Lara , Tyler Retzlaff Subject: [PATCH v2 1/3] eal: provide type to per lcore macro Date: Tue, 2 Jan 2024 15:45:00 -0800 Message-Id: <1704239102-31044-2-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1704239102-31044-1-git-send-email-roretzla@linux.microsoft.com> References: <1703006864-27378-1-git-send-email-roretzla@linux.microsoft.com> <1704239102-31044-1-git-send-email-roretzla@linux.microsoft.com> 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 Adjust the use of per lcore macro to provide type as the first argument as to not require __typeof__ during expansion. Signed-off-by: Tyler Retzlaff --- lib/eal/common/eal_common_errno.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eal/common/eal_common_errno.c b/lib/eal/common/eal_common_errno.c index b30e2f0..fff8c1f 100644 --- a/lib/eal/common/eal_common_errno.c +++ b/lib/eal/common/eal_common_errno.c @@ -28,7 +28,7 @@ static const char *sep = ""; #endif #define RETVAL_SZ 256 - static RTE_DEFINE_PER_LCORE(char[RETVAL_SZ], retval); + static RTE_DEFINE_PER_LCORE(char, retval[RETVAL_SZ]); char *ret = RTE_PER_LCORE(retval); /* since some implementations of strerror_r throw an error -- 1.8.3.1