Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp478174pxj; Thu, 20 May 2021 13:58:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnvABVJVG7sXxWKpSeiBc9t63YYfgPWWJaf5Huj/XpNHWpqmNWI2yBtMo3OAeiqQvOoy62 X-Received: by 2002:a17:906:e91:: with SMTP id p17mr6681929ejf.9.1621544280686; Thu, 20 May 2021 13:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621544280; cv=none; d=google.com; s=arc-20160816; b=afV/PqawI30INrM4GffTrSf6TrONRLHTnUnKvR6Pun+lp1zYnHM9oB20dRveMcgkqg ECdmu4D/1PId3x7H6eC01GzMHYKStm/BcgLKFvAwNooQ4TZ/jA9DhmgQ7tK8ZfILY6Ag t32foNh1Ucfemu8ds/VmX4/dHgspnQdzV+vFnORacLfPNR5Mst7Qq5Cfxhcr2b0e3wpc Kc5xfmoIFl9e1xKRaOlZOjgeyhgPzrimAAi8W1R7CItaOKj4fmrJsElKR/LUgre5bEyz uebJDhVE+VWFCmapvQTyCS1xWozVnXLerBFVucy7838SbWJZSfSnKlCNrEEMH0svSF13 UnHQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nn2dIiv7aZIVuAYXTu9Bs0rYTEpUaAB++L4AxiFqzZU=; b=pRrLGxzmOOB2ztkSF7h25UgTbUlACi41gTNDHDEawYJvMpuV4ZigT/qnzzp1sgV795 Ccu2To9CFdadB+WxiIHAGPiXG47EUw92OwvuzY5Akw/ocue8HwXJ8kzSHXnv+vbHBoOE HRPJVx+SpfhG1mtugJW2FG+4njNXGJLft2Xu8VLXeNGSXf1hEyNHVXNBFiWZNv0/ueOc /2KM1KND+zS36oypsUUXT78WRVo36x62GWFTk76VXLC/wETYLy4++FeSIWaSnr+K/93V eF131XGi7BR2aBpe62AhjkWLUH2UVzqd1Hj+5DuygeF0u6TuBEcm/6K4ZoUe1x/pBi0q 9QKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="q/0PBufm"; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l25si3629816ejq.639.2021.05.20.13.57.37; Thu, 20 May 2021 13:58:00 -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=@linuxfoundation.org header.s=korg header.b="q/0PBufm"; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239032AbhETK5m (ORCPT + 99 others); Thu, 20 May 2021 06:57:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:44686 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237552AbhETKln (ORCPT ); Thu, 20 May 2021 06:41:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D846D61C87; Thu, 20 May 2021 09:56:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504565; bh=1FMfuSkphlXgWf6giN3xc1cdi3gtXazWI9ZFJ23i7ms=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=q/0PBufmnA2kehypFsrWvWSGw+ZPYTKK00Ie3CZEqO5uxjB02+xMjq0uGuY8IVz9Y n7nixuTV19KR+NsGDWxJH8RpbRzDIqpySF+sAZRGZNbvppBNrkTVBQJEn+u4WGzNu8 rJC2zMdB68+WiVbr3EwzUg4l8lWz+56Q/xY6brbs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Thompson , Arnd Bergmann Subject: [PATCH 4.14 303/323] kgdb: fix gcc-11 warning on indentation Date: Thu, 20 May 2021 11:23:15 +0200 Message-Id: <20210520092130.624262685@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann commit 40cc3a80bb42587db1e6ae21d6f3090582d33e89 upstream. gcc-11 starts warning about misleading indentation inside of macros: drivers/misc/kgdbts.c: In function ‘kgdbts_break_test’: drivers/misc/kgdbts.c:103:9: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] 103 | if (verbose > 1) \ | ^~ drivers/misc/kgdbts.c:200:9: note: in expansion of macro ‘v2printk’ 200 | v2printk("kgdbts: breakpoint complete\n"); | ^~~~~~~~ drivers/misc/kgdbts.c:105:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 105 | touch_nmi_watchdog(); \ | ^~~~~~~~~~~~~~~~~~ The code looks correct to me, so just reindent it for readability. Fixes: e8d31c204e36 ("kgdb: add kgdb internal test suite") Acked-by: Daniel Thompson Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20210322164308.827846-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/misc/kgdbts.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) --- a/drivers/misc/kgdbts.c +++ b/drivers/misc/kgdbts.c @@ -107,19 +107,19 @@ #include -#define v1printk(a...) do { \ - if (verbose) \ - printk(KERN_INFO a); \ - } while (0) -#define v2printk(a...) do { \ - if (verbose > 1) \ - printk(KERN_INFO a); \ - touch_nmi_watchdog(); \ - } while (0) -#define eprintk(a...) do { \ - printk(KERN_ERR a); \ - WARN_ON(1); \ - } while (0) +#define v1printk(a...) do { \ + if (verbose) \ + printk(KERN_INFO a); \ +} while (0) +#define v2printk(a...) do { \ + if (verbose > 1) \ + printk(KERN_INFO a); \ + touch_nmi_watchdog(); \ +} while (0) +#define eprintk(a...) do { \ + printk(KERN_ERR a); \ + WARN_ON(1); \ +} while (0) #define MAX_CONFIG_LEN 40 static struct kgdb_io kgdbts_io_ops;