From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 183664203B3 for ; Thu, 9 Jul 2020 07:32:35 +0200 (CEST) Date: Thu, 9 Jul 2020 07:32:33 +0200 From: Christoph Hellwig To: Jens Axboe Message-ID: <20200709053233.GA3243@lst.de> References: <20200701090622.3354860-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Cc: linux-raid@vger.kernel.org, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-mm@kvack.org, dm-devel@redhat.com, Tejun Heo , cgroups@vger.kernel.org, Christoph Hellwig , linux-btrfs@vger.kernel.org, drbd-dev@lists.linbit.com Subject: Re: [Drbd-dev] remove dead bdi congestion leftovers List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Jul 08, 2020 at 05:14:29PM -0600, Jens Axboe wrote: > On 7/1/20 3:06 AM, Christoph Hellwig wrote: > > Hi Jens, > > > > we have a lot of bdi congestion related code that is left around without > > any use. This series removes it in preparation of sorting out the bdi > > lifetime rules properly. > > Please run series like this through a full compilation, for both this one > and the previous series I had to fix up issues like this: > > drivers/md/bcache/request.c: In function ‘bch_cached_dev_request_init’: > drivers/md/bcache/request.c:1233:18: warning: unused variable ‘g’ [-Wunused-variable] > 1233 | struct gendisk *g = dc->disk.disk; > | ^ > drivers/md/bcache/request.c: In function ‘bch_flash_dev_request_init’: > drivers/md/bcache/request.c:1320:18: warning: unused variable ‘g’ [-Wunused-variable] > 1320 | struct gendisk *g = d->disk; > | ^ > > Did the same here, applied it. And just like the previous one I did, and the compiler did not complain. There must be something about certain gcc versions not warning about variables that are initialized but not otherwise used.