From patchwork Thu May 20 09:22:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 443170 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp2112133jac; Thu, 20 May 2021 02:27:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyq9zzeGl894agziQrOM8Yv28hpebbvMt1ZK+je/aP4VyHlZ4Q41VtOB+1eomsIB5Yrf06C X-Received: by 2002:a50:bae6:: with SMTP id x93mr4048304ede.48.1621502875929; Thu, 20 May 2021 02:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621502875; cv=none; d=google.com; s=arc-20160816; b=z5oKdD1BqdlOtUxFkp8o/GkGFFlD+lKiYpUgPjJIHVJ1rPFATnvqHD86+sNQrEbcW4 QikChtGmZGvn20pqrQzyvqHaJVges5uSV9fl0BYZGZwU8sDn4wJW0fFdSwLDlgZ43Pvc fhaA94XLQBPEvOfgiLJ7pDUpk0oyV17JLuo1pVDFP/o/kfALPJzAzgk4GkTy0+5XphPf BToNPQCsWr7xn7Rw6Yxaapw54Ayk4PeO6X6A7EyN/ChiW02T4lY1leDGNf1oEtnLIQqO SgUTiUTuvOUuu1hvr2QoyegMr94tv2e/KPWKKTbmYHn1zlVAIPfTOAX7nGAunvBvWHU4 rkHg== 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=JMQvqQ7lfYQgdjZAxJc3clZbKOYX2C0PL0u9TNteWzA=; b=qjaX/nzQPAoQZ+3yVD4l8AfoexAOcxJAkpiMs9UfQjo71eWRRpZC3g8dAuXNRzivwj ybh0cgMnhJa2vXJuSFcPIK0824paF49s+fE1GHjPD7Bo9aXjTzos0uyPXN4mEnu5Fcxu /DUPGOnTZjprnvYTRGuYwzVhnNo106mM1Y38NU2ixS2/mE2nHbzpHkiy65W61Zp5e7UI hMb9Ufz6k91p4RDnuWE1Tyqxi+Cnh+oN3EwD8S7JYyzJVH8KjG7gT/RxAul8dy+xk9ll f++zQf+z6bYn+lRmXvfC2Ua0Q667yDXKm4WZxJ8XqPXEUdMknKuAKTW7hyws+j4pKYHT /R1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oSYB7qWf; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 n3si2254059ejz.565.2021.05.20.02.27.55; Thu, 20 May 2021 02:27:55 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=oSYB7qWf; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S231865AbhETJ3P (ORCPT + 12 others); Thu, 20 May 2021 05:29:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:52818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232062AbhETJ16 (ORCPT ); Thu, 20 May 2021 05:27:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6CCF56121E; Thu, 20 May 2021 09:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621502790; bh=GGYeuE3Kf1KuUNPDu9rHsOC+PjsoL5g6WqM8hbssvJ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oSYB7qWfoXN51XbmDSgk8ggK9hCMeBw4rDU+61iscl7tdo3NnQ/yP8JVS5b5429vx PJIDoQ0AIUP62zqI8mkWbLElmEjbd8j6z8cpA0cyoL/TLyW0uS6qSVEhKqBdfdfS+l CwNqBmMAl5EjPjyl4XLALBzOXUAxJMuLJxQxYJn4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Daniel Thompson , Arnd Bergmann Subject: [PATCH 5.10 04/47] kgdb: fix gcc-11 warning on indentation Date: Thu, 20 May 2021 11:22:02 +0200 Message-Id: <20210520092053.702373767@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092053.559923764@linuxfoundation.org> References: <20210520092053.559923764@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@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 @@ -95,19 +95,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;