Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2689931pxj; Mon, 31 May 2021 08:19:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw96WHwM6HcugDGG9i7TM8W+58K8LYUweD7CVxPVFGdvsrIla34s3Lsi6YN3NGPBXEtQZqF X-Received: by 2002:a05:6e02:1c05:: with SMTP id l5mr16705809ilh.293.1622474372439; Mon, 31 May 2021 08:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622474372; cv=none; d=google.com; s=arc-20160816; b=KmtAkC+NfosJz425fPUHkFSxKtBjL7e7Nu6mx/0E1fOQxNCojcx2vvta2bb8CSa8iD 73mHHNDXjjmHata5kfNbM0LBKoGfpi55Cu5MCZUak6tYc5QijP/qyTITUqhvWY3BnkOa nujdmTyWyLqn/BUUUolW2S2slGdbannc6/RGIpl7yKkFbyW1X4/mzrFwiHjm54vVAMlm NSCFt0flB12uv7Gct5lKJ6G/zk92Eip6Q8SXKkQMFOcCBQKTrQVAbq7Yy/FIwLtMw6Nm ImYHhjBtmIT9a3DoOf9qyKDaCs6A2TEXd3iqVL+A2PCd6c7ETuEd9FNE+nmX9pJNLNPh TQug== 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=Z9grOghIBwMGv/hY460XtYJXpZFDKpdLOzOV+byoyo8pokUR17z8xOE9I9F0OzG1DR rrj7Pm5vyhkonsjkgZn9ZNzUzxg4iVKU2PLX30Od4XRXBRDzQW+E3/j36Avre1E4awmH 7WjIjR6RHxeHSX6M6Cqwl8MV0xrT2ndZ3DOFJc7dNdQb+H41VdtQexa5tQ60y7sS3m1f /3ml+QRp0hNDwvkk6G74TRubMvQdc87SQzjI2K2UNaCtP380ZDY2nDiZCEHuYYYZK6nL eF6FsVGJURch709qs2pse4WX0mHOKxr8sVoibRW7DJaDvuHCzI+/CdZYYFlYIVbu0vMH 9txg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kF1wIseI; 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 l12si473768ilf.96.2021.05.31.08.19.18; Mon, 31 May 2021 08:19:32 -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=kF1wIseI; 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 S234513AbhEaPT4 (ORCPT + 99 others); Mon, 31 May 2021 11:19:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:43970 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233717AbhEaOPQ (ORCPT ); Mon, 31 May 2021 10:15:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1EC3D6199D; Mon, 31 May 2021 13:42:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468561; bh=wfHtREpFmlGBcwyHVdlPE0JPPJA1LE83SdAOS4fMfQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kF1wIseIRrzR5H32eF+OQOqkEwUcYjz+TTo0pqKUbkZ5guDkv7khMI8wfhmvVhiZp XVT3S8jFFP+QQJbw5FkmSca8HvD9wsmyuiRB/wiBjEcTESguCcShwMKOpw1GtG1gkP rIvF0ZztOwF6JlqArjiaRn0Rc4caYmUHF0wYmOj4= 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.4 037/177] kgdb: fix gcc-11 warnings harder Date: Mon, 31 May 2021 15:13:14 +0200 Message-Id: <20210531130649.211361830@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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 { \