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 C4D4F45E6F; Wed, 11 Dec 2024 03:08:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5F5740A8A; Wed, 11 Dec 2024 03:06:42 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 1713E4042C for ; Wed, 11 Dec 2024 03:06:18 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id C3AB72047234; Tue, 10 Dec 2024 18:06:17 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com C3AB72047234 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1733882777; bh=y4eg7W6LRrfFpocnxAPTfuZf0VsSZp/kqi5YPaUzCLE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IhUv3mxoLq7f6mOdXTRAQfjEJUJCoFGiSPey2qiyZRT5vGq/GKEMPllatLIiw2Bmu iT28ebvczXRtvxGQO9xnCpLOVY1wjD/SJDWB2gV9jIGQ5g5uoCocWkQEAlG9ycJP3z wIfbbBRKYahLOpIcjkSfcpWLEvaplkJc68TTFS7g= From: Andre Muezerie To: Honnappa Nagarahalli Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH 20/21] lib/rcu: ensure code structure does not change Date: Tue, 10 Dec 2024 18:05:50 -0800 Message-Id: <1733882751-29598-21-git-send-email-andremue@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1733882751-29598-1-git-send-email-andremue@linux.microsoft.com> References: <1733882751-29598-1-git-send-email-andremue@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 Add "do { } while (0)" to macros used to remove logging calls, to ensure there's no code structure change when enabling/disabling logging. Signed-off-by: Andre Muezerie --- lib/rcu/rte_rcu_qsbr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rcu/rte_rcu_qsbr.h b/lib/rcu/rte_rcu_qsbr.h index 550fadf56a..040bb273e9 100644 --- a/lib/rcu/rte_rcu_qsbr.h +++ b/lib/rcu/rte_rcu_qsbr.h @@ -52,7 +52,7 @@ extern int rte_rcu_log_type; RTE_LOG_LINE_PREFIX(level, RCU, "%s(): ", __func__, __VA_ARGS__); \ } while (0) #else -#define __RTE_RCU_IS_LOCK_CNT_ZERO(v, thread_id, level, ...) +#define __RTE_RCU_IS_LOCK_CNT_ZERO(v, thread_id, level, ...) do { } while (0) #endif /* Registered thread IDs are stored as a bitmap of 64b element array. -- 2.47.0.vfs.0.3