Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756425AbbDOVG0 (ORCPT ); Wed, 15 Apr 2015 17:06:26 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:46119 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753780AbbDOVGQ (ORCPT ); Wed, 15 Apr 2015 17:06:16 -0400 X-Sasl-enc: iRcQ98EwAkb5RKs/zvXWWjuJJ81nlp7epEIui1TMOd4U 1429131976 Date: Thu, 16 Apr 2015 00:06:14 +0300 From: Sergei Zviagintsev To: Paul Bolle Cc: Trond Myklebust , Anna Schumaker , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nfs: Fix unused variable build warning when CONFIG_SUNRPC_DEBUG is not set Message-ID: <20150415210614.GE8572@localhost.localdomain> References: <1428962779-3741-1-git-send-email-sergei@s15v.net> <1429039169.27492.25.camel@x220> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1429039169.27492.25.camel@x220> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1243 Lines: 27 Hi Paul, On Tue, Apr 14, 2015 at 09:19:29PM +0200, Paul Bolle wrote: > On Tue, 2015-04-14 at 01:06 +0300, Sergei Zviagintsev wrote: > > Commit f52cbe4c9838 ("nfs: generic_write_checks() shouldn't be done on > > swapout...") caused unused variable build warning in fs/nfs/file.c > > when CONFIG_SUNRPC_DEBUG is not set as pos variable is used only in > > dprintk() call. Fix it. > > Would that warning be: > fs/nfs/file.c: In function ‘nfs_file_write’: > fs/nfs/file.c:677:9: warning: unused variable ‘pos’ [-Wunused-variable] > loff_t pos = iocb->ki_pos; > ^ > > Please add the warning you fix in the commit explanation. Doing that > might save other people the trouble of doing the work you already did. > Because then basically all they need to do is a web search or a "git log > --grep" for (parts of) that messages. Thank you for advice, I missed that. However I see that this warning is fixed already in Al Viro's vfs repo, so this patch is irrelevant. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/