From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D25AC433ED for ; Tue, 6 Apr 2021 02:41:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1AC8461262 for ; Tue, 6 Apr 2021 02:41:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242321AbhDFCla (ORCPT ); Mon, 5 Apr 2021 22:41:30 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:38275 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239096AbhDFCla (ORCPT ); Mon, 5 Apr 2021 22:41:30 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 1362doKl031316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 5 Apr 2021 22:39:51 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id 5705115C3399; Mon, 5 Apr 2021 22:39:50 -0400 (EDT) Date: Mon, 5 Apr 2021 22:39:50 -0400 From: "Theodore Ts'o" To: Jan Kara Cc: Arnd Bergmann , Jan Kara , Arnd Bergmann , Harshad Shirwadkar , Mauricio Faria de Oliveira , Andreas Dilger , Mauro Carvalho Chehab , "zhangyi (F)" , Alexander Lochmann , Hui Su , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] jbd2: avoid -Wempty-body warnings Message-ID: References: <20210322102152.95684-1-arnd@kernel.org> <20210330151533.GA10067@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210330151533.GA10067@quack2.suse.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 30, 2021 at 05:15:33PM +0200, Jan Kara wrote: > On Mon 22-03-21 11:21:38, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > Building with 'make W=1' shows a harmless -Wempty-body warning: > > > > fs/jbd2/recovery.c: In function 'fc_do_one_pass': > > fs/jbd2/recovery.c:267:75: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] > > 267 | jbd_debug(3, "Fast commit replay failed, err = %d\n", err); > > | ^ > > > > Change the empty dprintk() macros to no_printk(), which avoids this > > warning and adds format string checking. > > > > Signed-off-by: Arnd Bergmann > > Sure. Feel free to add: > > Reviewed-by: Jan Kara Applied, thanks. - Ted