Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2651177pxj; Mon, 31 May 2021 07:24:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZzKNFxRwuET4D0mJ1zZ5P106UjIaJv6YbeOeQ7gx6V+r6vUX01Hvfd9N+fwjII8jaYO9W X-Received: by 2002:a92:7b01:: with SMTP id w1mr16275959ilc.100.1622471099573; Mon, 31 May 2021 07:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622471099; cv=none; d=google.com; s=arc-20160816; b=r8MxJoNLx4IuOAqx2WsJDCAr0e0N96frs/0mdl+nEkZlvSf8o2VfBzwZB33IcpvC7h WEQzuXmpabaDFQ1yrED1M1IP/WeS/1TlRM80iXUhHsaCi9t5qV5+GQp4GlBBtr1LXzTf sSYo9AQa3bH4oKEd7egXulZiT1M+YmnFFpMxasrm/ptg7k7GTGDZ5aU7ra/EWAQJa4xd VH+TnwsI8VdBwZ+X+0Cf8LPHRRQJDR6DYbYIFq5O+nImXRrJRGVBhT3YCOi3WAr6Za1I mhvPLcW9ZjrGmNIY8bVDalr+MC+wcG4VF2dzh+HYK9ObiJE4vVTPD7bjvv8Rh7bSMYk5 /KOw== 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=Fc/nVPUntXHqRaeIrnG7XS+/m2IV8CdCCQE3pcMwWEIaNhcXE9S3hOzg7yG0EK/Tgh G5OmtPqcFJTZP1wJJhfrBYtzD+u+AIWtRaPpKR3WseABwYZbCJeZ1bGnc5zSWLQvzfFQ jr7peufQCui9TepDtCN03PeIsTHuWbll+atk7opPrZ8VmSLwvuznKC6WjCMiLZ/VVFhs tO4WKlvsoz+683vp8keo5PrIgVewVZSuK1mQ3LaCyS5jsWv1rUVctBfZK6NIfvwE8+vL +ImxrQ1tTYoiLPmRW9LgBglhYd5xyYECg5eO/gufIjx9gPVScLw5Z4Gn+omKVae/XV9F tJ4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bsP8Qn4a; 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 f2si15864010ioz.41.2021.05.31.07.24.46; Mon, 31 May 2021 07:24:59 -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=bsP8Qn4a; 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 S233891AbhEaOYQ (ORCPT + 99 others); Mon, 31 May 2021 10:24:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:55706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233256AbhEaNu2 (ORCPT ); Mon, 31 May 2021 09:50:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6AD3361431; Mon, 31 May 2021 13:31:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467919; bh=wfHtREpFmlGBcwyHVdlPE0JPPJA1LE83SdAOS4fMfQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bsP8Qn4azXNpg1LzGOWl1RKzQ7B18zOLUlgxX5S0f+5E96i+UqjJ6vcmftrf6I/YZ h8KO++96HhUy7NeufVaf3S4So60Xuu3NdeCAuDhXTrSlYE2mGpKFy5gof/VNb7xAzl mO2hQevy4TMHA2EiJRf9H5/Dlx7ovdYV1O8yIW4g= 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.10 050/252] kgdb: fix gcc-11 warnings harder Date: Mon, 31 May 2021 15:11:55 +0200 Message-Id: <20210531130659.678217373@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 { \