Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2920073pxb; Tue, 24 Aug 2021 10:37:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2y58o5dlynJOTdHy6e3a9eLAUbKD5I/r3PDW2U4GVL0i2rVkebo8HB+oq21vkL/WiD6nn X-Received: by 2002:a05:6402:3099:: with SMTP id de25mr43813550edb.36.1629826621502; Tue, 24 Aug 2021 10:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629826621; cv=none; d=google.com; s=arc-20160816; b=ZfXxGQ4KnLZa+J4kHpdlFKPNAbFxKlOfSWJafmwJKJqbZYMiOzaDS7xI7T4TLJH2G8 KM+or3L2rnUO+A/Gz1iylLMhB2hI860NskOyvJsWNlC2zoayxT1WRdLGKz1E3Y/ScdAc ZDlhB1vlyBCM2zEcaoC7fDIBCQ4ll6eexk2WF+tY14ApZdlEhxlbnTDxU5k+Iu++16Z3 kPrxAKjijJYunB9y9Ru6dpnyvIoB2vF75hmUV7WO2CBUkBki+neISDjjjulJaDC8AyJk LPVcjtTN8TIec2D3fKU6CJqGD37PZNh0QUEuZsyaK9209r3hpLii420caX+b8upd7BYN bEqw== 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=AO57GnzHTjAIkXKuNIHOW79SDk5G1XutmcSVPgSKbfk=; b=N7hDNQwr+QXXDbRKn1ckLTEt02Ys7uVIFvMNqebqQJoageTF7D+qHeKsDAGaBI9yvn zTLuoxPINl258ts2n5yZwttUyYIBv8z4rADgWU5aVp2jrkiU7qFKT36jMkZXABI47Oeq pG/xs4rSC/hLR9V8Qivz2xPSdftrCbP0iggCfYkgrKlZHtshcGtK2yBkQ0iAUnIGD2Px CHmIwc5s2SoL1+2+dbpd/By9kYkdtvN9Xa6Gtu4nXwadiMpWycsqR3mRJxRQ/sgTBSc0 JK3VIvf900HidzRhb0nPF1lTO7Y2mY7PL94eUDlqaF07m+gM+rraSoBRAy5fgGKhmZ1W x3Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D5WgLoro; 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 i4si6666854edq.13.2021.08.24.10.36.38; Tue, 24 Aug 2021 10:37:01 -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=D5WgLoro; 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 S240510AbhHXRdk (ORCPT + 99 others); Tue, 24 Aug 2021 13:33:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:35826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241556AbhHXRbD (ORCPT ); Tue, 24 Aug 2021 13:31:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DAD0761B7C; Tue, 24 Aug 2021 17:05:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824744; bh=hTyX5k762v8JM7eRFgseJO0Tti3D9/Wq7UaPT/jY2IE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D5WgLoro2q/wN3YdbXpP2p6lOILnAqPYRuFdA/8hU5YQNaH6dKQpQd1nvRDh7Zq74 AwEnruuf+rOwjLvr/snLZVDTp1Z02dSQPA7jaiNnL8VoGgnZR33BzJvl7M1+TssiLg 9BUlAL2P2usDwKCoJebRoo/n5fxTPYSTFUvhmJiy7XR+MhSQjUL1R9+OXdmq0hpaN0 yvUX0H35UtJVoAMOcBGrfQeAc6OlJdyOXVFse2eq/LLHSxUMHnVeOoeBgHt2jr1JXx LM/dxYns4CUsTnfo1foSgsZRKbPdiNiNGrDzo8HxAtUhAYxiK6xsPFvpBtMk2cBoo6 THLlND/Z/9RKQ== 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 4.14 48/64] dccp: add do-while-0 stubs for dccp_pr_debug macros Date: Tue, 24 Aug 2021 13:04:41 -0400 Message-Id: <20210824170457.710623-49-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824170457.710623-1-sashal@kernel.org> References: <20210824170457.710623-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.245-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.14.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.14.245-rc1 X-KernelTest-Deadline: 2021-08-26T17:04+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 0c55ffb859bf..121aa71fcb5c 100644 --- a/net/dccp/dccp.h +++ b/net/dccp/dccp.h @@ -44,9 +44,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