Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2730448pxj; Mon, 31 May 2021 09:17:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeIcqESv2OHuokhfScbn8r9w0zEJf+QrJOv6jeJVJpSIl1G9GEvip9URwBSmk29eag2JAa X-Received: by 2002:a05:6402:22fa:: with SMTP id dn26mr4387050edb.230.1622477836591; Mon, 31 May 2021 09:17:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622477836; cv=none; d=google.com; s=arc-20160816; b=KGi1oUxrMfyBoF6OGiDjZ7IWhJKHt+e2B+okQbaBGcLpVap5iSgiuCLcHEqi+FAe1Y 4l6KY5SIqmlp+sAhMG5xQdkHJoSsBphu3qwRRAnYacS2oI92pl+FRGRULK2xepiG7O/p LKMRJ9aDufocc8/bP5oXGZnwvvRoh+uTmszwYJq09D7PxDRw5By0dCfcqJSnzExv/7id jBA2a2fHl/1OD3uUQ/UBR6F0nM8a5DFshc/8kTP1huFBSxvJAYu2+vuiY03xT1GYjs0K MDweYCLl+pxPjnqBwmdnNG7rhmvfZvj8jG8GGTG7KYTMxwQRd3Ziw3wXqyapq3UX+A2m gqpg== 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=6DNl/HaGYN8/c1+2QdRyiW/geUU+LfpbJ3SiOL/k50w=; b=Y37sDxdWMUe+GsDnnNb8/J9T0x8iBikMgnvkexQ5Uu9Ii3YWOCpBVGHSFd3LsNiYiB gLuYtxjmYR8DFoJH67sm+XsOCmXotMzr9twK+v7jX2VqzJt5ujpn5sM7xgZRzXaASdi/ wcU27cyg7zq/1q1r6bdW132p6yK01wmR72CSn25fY0ntIwJrFPWKHKvDWMfT/ns+k6SB srbQKQB4VBCNl9XrmH/FQDZ73ox8DHVqYzxRPHt5yldt9j9ctc3kUeZFtadWhsfJSlj7 pXzUac3Ot/tkX8DCzKW9h2ikmU3w0fe32spsSW7G5d3iXztpNxhDa6Fu5lV7SODocSvz hTqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tH1jQu9D; 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 i11si14300307edc.325.2021.05.31.09.16.52; Mon, 31 May 2021 09:17:16 -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=tH1jQu9D; 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 S231859AbhEaQRe (ORCPT + 99 others); Mon, 31 May 2021 12:17:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:38022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234191AbhEaOjh (ORCPT ); Mon, 31 May 2021 10:39:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 45D996108D; Mon, 31 May 2021 13:52:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469171; bh=wfHtREpFmlGBcwyHVdlPE0JPPJA1LE83SdAOS4fMfQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tH1jQu9Djsn/zg3mQSyfe80pIOqTpdF3SxTDvqrKKr/0GwYLN4jOFwQSbDMa5RkAB Xb5lXNuMsxmQcIi8GIy4pzlnGWq7BObbtB4kaqmNOSNe9XGc/LDNiURYVk9Q8WedHA xSH1ZUVqZUZahbIFz6XmRXSQBGWT3slACUYaIMws= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Daniel Thompson , Jason Wessel Subject: [PATCH 5.12 061/296] kgdb: fix gcc-11 warnings harder Date: Mon, 31 May 2021 15:11:56 +0200 Message-Id: <20210531130705.888507236@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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: Greg Kroah-Hartman commit bda7d3ab06f19c02dcef61fefcb9dd954dfd5e4f upstream. 40cc3a80bb42 ("kgdb: fix gcc-11 warning on indentation") tried to fix up the gcc-11 complaints in this file by just reformatting the #defines. That worked for gcc 11.1.0, but in gcc 11.1.1 as shipped by Fedora 34, the warning came back for one of the #defines. Fix this up again by putting { } around the if statement, now it is quiet again. Fixes: 40cc3a80bb42 ("kgdb: fix gcc-11 warning on indentation") Cc: Arnd Bergmann Cc: Daniel Thompson Cc: Jason Wessel Link: https://lore.kernel.org/r/20210520130839.51987-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman --- drivers/misc/kgdbts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/misc/kgdbts.c +++ b/drivers/misc/kgdbts.c @@ -100,8 +100,9 @@ printk(KERN_INFO a); \ } while (0) #define v2printk(a...) do { \ - if (verbose > 1) \ + if (verbose > 1) { \ printk(KERN_INFO a); \ + } \ touch_nmi_watchdog(); \ } while (0) #define eprintk(a...) do { \