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 C0F2045E6F; Wed, 11 Dec 2024 03:06:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 574F54064C; Wed, 11 Dec 2024 03:06:23 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id A4C7740613 for ; Wed, 11 Dec 2024 03:06:15 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1213) id 046EB204722E; Tue, 10 Dec 2024 18:06:15 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 046EB204722E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1733882775; bh=EimeUNnvkCDvIeg2SDIe0h5QVjCcCWlJ5yKDYcdH7lg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rXMfP0Eb00sp3oNppS5DTgQ1ocD/87Y2I90yc5DY7CJZAcKrNPT3stOCwm1sF0LKY WLwweaLCSZWGZtBstzzUTraFofqfF5dfqplMm9eov5+oI3YItQKGiFMGSguB+bfqbs qZ8m6raTzQOEHqiCTrYHYlYBOzMDA7DjWGrpJq6A= From: Andre Muezerie To: Nicolas Chautru Cc: dev@dpdk.org, Andre Muezerie Subject: [PATCH 05/21] drivers/baseband: ensure code structure does not change Date: Tue, 10 Dec 2024 18:05:35 -0800 Message-Id: <1733882751-29598-6-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 --- drivers/baseband/acc/acc100_pmd.h | 2 +- drivers/baseband/acc/vrb_pmd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/baseband/acc/acc100_pmd.h b/drivers/baseband/acc/acc100_pmd.h index 976593698e..ae66b1246c 100644 --- a/drivers/baseband/acc/acc100_pmd.h +++ b/drivers/baseband/acc/acc100_pmd.h @@ -18,7 +18,7 @@ #define rte_bbdev_log_debug(...) \ rte_bbdev_log(DEBUG, __VA_ARGS__) #else -#define rte_bbdev_log_debug(...) +#define rte_bbdev_log_debug(...) do { } while (0) #endif /* ACC100 PF and VF driver names */ diff --git a/drivers/baseband/acc/vrb_pmd.h b/drivers/baseband/acc/vrb_pmd.h index a4b81640e8..fb342d77fe 100644 --- a/drivers/baseband/acc/vrb_pmd.h +++ b/drivers/baseband/acc/vrb_pmd.h @@ -20,7 +20,7 @@ #define rte_bbdev_log_debug(...) \ rte_bbdev_log(DEBUG, __VA_ARGS__) #else -#define rte_bbdev_log_debug(...) +#define rte_bbdev_log_debug(...) do { } while (0) #endif /* VRB1 PF and VF driver names */ -- 2.47.0.vfs.0.3