Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp558938pxj; Thu, 20 May 2021 16:12:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuvw3lSxunctw826jEzuvOkSwD4QZB+qCtpVEzc+ii2SuINKtT4kQZmVOkQ2JdatYhFikr X-Received: by 2002:a17:907:98a9:: with SMTP id ju9mr6929311ejc.257.1621552361074; Thu, 20 May 2021 16:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621552361; cv=none; d=google.com; s=arc-20160816; b=xnoG/WsZIqHKIU0IAZDFZ6SbXZ0vyyKS6eydiqG6ETD+JTJqGlY+yLDBq3uiDuL5Hq azmZq52ra/5vauBzR8I1ejCJuhiq3HNIhxuEsX4LEzlBpJ6cgOlU1INjlV1PhQWC7UCP ZdQe5o1k7ASWpotRva1lrtl7r4CSpp01fM+B6rh86z1aQkwbaWjT8+tMPM6HI3ql6mQ1 +Y93F1QB/wXYNrXTpx3rJZBzWA+5Yo+imuh5Rlpg0C2o2VyP9mMgfLgXUb+Ubn2HBuVh uaWd/jYhG5R/Vd6y2ZoOyWKjP0IYu/lmUlJcG/Vm9zNHz815MUA9+1avjoeeKk/TVPv8 qZJQ== 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=ZPdvIedMxLHru8ZIAAAHJXlrRkwK3Uwe8ppVongfl5U=; b=QCSyPF73QGVYg9XYjksdgh32SmsmB4Jk0Z7TyaoJhPCoJvMC/p6U/fjGS1MmyfR4R+ 05yJSvmNQxVEgR6m7CYcH7NUJy7V1zgNpN0zSVeOmr7aooksoC+Xy1sMlliXJ2ij1waM sROQFWxJ4DlfjHUFKtfcEaatyxnv+dD2jIb2N7IciDNBCQOYZIj63pCUxV9F/aoUXFDt UfcqUze43CZ+1NRBQJlCxg9qXJxXsCd9XDGdf5BMBWPasItwFWxjZcbmnSuRmDEPF6Ia ZuwdMOt0GPOvH8Q1YrbwVaETKGS78v6PsPrB+7rmvwO96TLI8M7sf+H4wM3+4ttVvw3j 1jQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bHhg5TUm; 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 bx19si3860319ejb.481.2021.05.20.16.12.17; Thu, 20 May 2021 16:12:41 -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=bHhg5TUm; 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 S241691AbhETLZU (ORCPT + 99 others); Thu, 20 May 2021 07:25:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:59406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235259AbhETLFA (ORCPT ); Thu, 20 May 2021 07:05:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD69761D2B; Thu, 20 May 2021 10:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621505106; bh=XmQgosihI8PMEqg8GdiqdEf8AdIq18xjlc027afweOY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bHhg5TUmzCzMck29dN03xBba3ljoPvfrfHmQfSotjrwYZ36n9AIPyfgXFVJNTbvHH duH1QTw/yJXeuNCD9GAzUoGvE1Lb1m5C8Btu14aPIDpa+4rKfQHUDib2Q8dlWkCmKh VL8nsXVm9mO3U4fu7Iu8vk4Xinxh6QHxOR1b7SPE= 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.9 226/240] kgdb: fix gcc-11 warning on indentation Date: Thu, 20 May 2021 11:23:38 +0200 Message-Id: <20210520092116.303133897@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092108.587553970@linuxfoundation.org> References: <20210520092108.587553970@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 @@ -105,19 +105,19 @@ #include #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;