Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1432387ybt; Thu, 9 Jul 2020 07:02:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0Wf9+eCVcN93ZOPIR5tI9nr4twUCi/uJlpwEk1ceSrNhfLy3u1ds+U+q5Wh0x7FW8AMSS X-Received: by 2002:a17:906:fcab:: with SMTP id qw11mr56084915ejb.456.1594303349615; Thu, 09 Jul 2020 07:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594303349; cv=none; d=google.com; s=arc-20160816; b=dN4lWXPF5iMqS1q2nwF/KF7wUeRGbH+TosVOPbi1ILFtMQe2Q6xdkA1WXIR9LM7az8 IOuzsH8lc57JTqYZRnmLtur1IVCW1inyBJ1GuIvA4p++cOdQfcUzMiM4DyHiZszxl2Mg BtRyDq+C34HSemskA1IOESgwtjUGuziXvqLiHxQW4xvAFYJAvBBG7bIOyMgsUHf6Baiv ++aX14jjskNaDoNw6zN1PuaYXvA63wKYfZqPHhEaWrvVmt+wjZwLvp2Ft+EW2yGizAYm ahx5fMpNeDq8hZhIbR13rwYNSgoJD+hizP0OPzAdm+7ip8haO42H0eml0vhoBb/UwhZ5 HwKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Ul4dAIEoF4mguOZtY6H2Yetv+rV9xjndlNw3cTtWZRc=; b=np/ro5wqDdjzWcMx9p4SyNQX43o88P8TSYku894rvwTfQ0S3nwnsAw9EKEQyXEzAhr pP779fvUU8Lc4cP3+nT5dGcx5t3ugQN+rSkUjy6oaTesF8lwC3Xo8RYUW/CFYN7FZz0b YVtax5cjS/4t+h/KR4mtQJTB3i8HsdnvWkUgB2lDbWn37So3+qZoWsaKDPlRxRqZFMzl 7IHzesXAoyixCim+uUTXoUlzP/t25Iy6piyCteR4526ZJX5pYmM+cGAsBbq6/6eEy5or 9gtZIe16Qqk3TWUKbzlLl1CNIxctof7dV9whEdh8jDnvbWnZwWZbZGRehYhijXqkZLMb 3UAw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si2152214edo.202.2020.07.09.07.02.02; Thu, 09 Jul 2020 07:02:29 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726886AbgGIOBu (ORCPT + 99 others); Thu, 9 Jul 2020 10:01:50 -0400 Received: from verein.lst.de ([213.95.11.211]:39578 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbgGIOBt (ORCPT ); Thu, 9 Jul 2020 10:01:49 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 03E3D68AEF; Thu, 9 Jul 2020 16:01:46 +0200 (CEST) Date: Thu, 9 Jul 2020 16:01:45 +0200 From: Christoph Hellwig To: Jens Axboe Cc: Christoph Hellwig , Tejun Heo , dm-devel@redhat.com, cgroups@vger.kernel.org, linux-block@vger.kernel.org, drbd-dev@lists.linbit.com, linux-bcache@vger.kernel.org, linux-raid@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: remove dead bdi congestion leftovers Message-ID: <20200709140145.GA3068@lst.de> References: <20200701090622.3354860-1-hch@lst.de> <20200709053233.GA3243@lst.de> <82e2785d-2091-1986-0014-3b7cea7cd0d8@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <82e2785d-2091-1986-0014-3b7cea7cd0d8@kernel.dk> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 09, 2020 at 07:58:58AM -0600, Jens Axboe wrote: > On 7/8/20 11:32 PM, Christoph Hellwig wrote: > > 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. > > Are you using gcc-10? It sucks for that. gcc-9 seems to reliably hit > these cases for me, not sure why gcc-10 doesn't. And the ones quoted > above are about as trivial as they can get. gcc-9.3 from Debian -testing. And yes, I'm really surprised it didn't find those.