Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2905959pxb; Tue, 24 Aug 2021 10:18:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmI3PYQT2fTIlOmBk4LZ5RU0J5tMQ2o1rjp9qCIs6lAwwz8BGVRqwfWgcHZuOL0O3DMc4/ X-Received: by 2002:a5d:9c53:: with SMTP id 19mr33055418iof.192.1629825486351; Tue, 24 Aug 2021 10:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825486; cv=none; d=google.com; s=arc-20160816; b=r0sPmfLImkQ3m13fpDley2D7FEPheocmODnCTGBRyVwToL9mk7t1yLh0QSyFEmI+YT gYFI66bg8jzedcbougmi2NuJe5UCZfwmkFqWonqXKDktv9OERKx7JnsiNKMZRbcpQoYW t0XPiVRQLlV3KlPH8ZfRX0URyU+HZy40cRhfWEhV+EbLeXGKlirDfT7fc+q/rHBaIKYD 3oMieNK2cnua2pLxIF0Mo93kykxngTodMBS3bltQ2UUsZJboZp6yO2yanFm5dDBKJIEn V4e1EmGgE985rf5qGR7dwLTB8gPhxKAVE4GNnFW23NCYEJQu3zadaVV9+qqi5mHT4PIy 5gUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nw5lnyDSk8jpxp0jFualrrURqtlW7RWFPfs3OMHpLLM=; b=r7c94tBK/tN6TCd3nhjV27oC2tbTZUgl5FuWSeQuaGKAtF4e5lreXWMzarrzrIHDv0 64uPE04HsHk7YBHRsxTCU//51KtdeRLLGY1Spb+CdibxLOK+uESUHBmr5l8WkVB3L8nY JHkhyq9fe5LktzOosgIHIwQIuf35zs/2dFIzCCPdfQ4MNuDA0r320JRDwCT9TnElACwF DV//KChOzktOefsDtNKcPLiHz+ialF+Wr6X7FNt1JC4DEbZ9tYdx8AT/UElhW4DmKWYq E2el7AXm5fb78CNwcuS4nH3n38k3DEtMR6w2bIWkHgJAlFmeTKQTXz76ErKqCkzLSLEE Ha5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pK6dvsPn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si16771660iox.32.2021.08.24.10.17.54; Tue, 24 Aug 2021 10:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pK6dvsPn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240218AbhHXRRB (ORCPT + 99 others); Tue, 24 Aug 2021 13:17:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:52018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239827AbhHXROB (ORCPT ); Tue, 24 Aug 2021 13:14:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0A16861A7C; Tue, 24 Aug 2021 17:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824494; bh=ModVs4V38kl+Kix/teyvO3TPaZaMhx1DioA/HZ/OxEY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pK6dvsPnvvr627OD5i/RStkq6BFuy7tM8kI/f7Mt6lMQ/pGqnm6L5m7BAexzxdhTH oNeeq5zGL474Q2+yB4sraRmctH59c1YXvHELRkBLaF/1q+Ja51ArHY6+be8BdllMMm 13wd4642Ywyxxd/p5fotASLQS/kiSgg7kLTPzsFZDVjZJ/I/ixoaAfJvuhNuk79tTi XKqDzaTNvLcme480ZjW1zJXaU+7CrNQSg7xdIKV+eElnBfnt01NFKDDpXVDc7Ci4m8 ctHrnrPgvrKcpbc3CFgeSJ5vbO64onIKZdncQpARLFD2Ntvv9uTkzdDBv38UUHNMSq BJdivPmAq5myQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Randy Dunlap , dccp@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Gerrit Renker , Sasha Levin Subject: [PATCH 5.4 27/61] dccp: add do-while-0 stubs for dccp_pr_debug macros Date: Tue, 24 Aug 2021 13:00:32 -0400 Message-Id: <20210824170106.710221-28-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824170106.710221-1-sashal@kernel.org> References: <20210824170106.710221-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.143-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.4.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.4.143-rc1 X-KernelTest-Deadline: 2021-08-26T17:01+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap [ Upstream commit 86aab09a4870bb8346c9579864588c3d7f555299 ] GCC complains about empty macros in an 'if' statement, so convert them to 'do {} while (0)' macros. Fixes these build warnings: net/dccp/output.c: In function 'dccp_xmit_packet': ../net/dccp/output.c:283:71: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] 283 | dccp_pr_debug("transmit_skb() returned err=%d\n", err); net/dccp/ackvec.c: In function 'dccp_ackvec_update_old': ../net/dccp/ackvec.c:163:80: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] 163 | (unsigned long long)seqno, state); Fixes: dc841e30eaea ("dccp: Extend CCID packet dequeueing interface") Fixes: 380240864451 ("dccp ccid-2: Update code for the Ack Vector input/registration routine") Signed-off-by: Randy Dunlap Cc: dccp@vger.kernel.org Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Gerrit Renker Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/dccp/dccp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h index 9c3b27c257bb..cb818617699c 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h @@ -41,9 +41,9 @@ extern bool dccp_debug; #define dccp_pr_debug_cat(format, a...) DCCP_PRINTK(dccp_debug, format, ##a) #define dccp_debug(fmt, a...) dccp_pr_debug_cat(KERN_DEBUG fmt, ##a) #else -#define dccp_pr_debug(format, a...) -#define dccp_pr_debug_cat(format, a...) -#define dccp_debug(format, a...) +#define dccp_pr_debug(format, a...) do {} while (0) +#define dccp_pr_debug_cat(format, a...) do {} while (0) +#define dccp_debug(format, a...) do {} while (0) #endif extern struct inet_hashinfo dccp_hashinfo; -- 2.30.2