Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3013433ybb; Sun, 5 Apr 2020 23:40:08 -0700 (PDT) X-Google-Smtp-Source: APiQypIUFr2bkd/oDj2kO/ucM9SNeg5ieC8r+gDGtq12B1H7LuTGU1Hgw0krCibMIRvcClYw6Fds X-Received: by 2002:a05:6830:1b66:: with SMTP id d6mr16237386ote.12.1586155208271; Sun, 05 Apr 2020 23:40:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586155208; cv=none; d=google.com; s=arc-20160816; b=IV/Cqn3bMU888L9lxdNY9Pz/FbED8K+GbQDuCoDvLUjGUkGCB2gUCYWiw788qTlgxV vc+epYrBu/WcmcX9fTdIzbYz3B7FjxDZeivGJd3wHYk+HlZFQCSKzh2LwLad7P/iqjdR DE6yG6yr5LOj0dy7WvnLYreg2gEKwFqmdn+CqRejfaGaKYjP4gW8m9/9UV9gSzqnZzjU nR8MMNZqKkHzRfr3XaXbgpYywYPSI0TzR1gYo3RXNNsFBY7pnzUVK9b/f2MbqULUaTZR BYfuM/ffh1asVNGMAUP9GhR7HE+8UTBApIN6yfh9asWEEwICFHRDWYQ/dgGOAv5VVtij J7vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=K6GVNgX+33zkIVfEGMNXs9O8VJu9TOPWWcqpLUXcuDw=; b=zfCb/w+UnvjM/kqt9J698z5LqVVl2T8l+QZ8ZWbyr36pFvo47+F7ccrBovrFdOpPHk LZeeNKZWvLGzmMFl6Fk+0D7FzZb6BCo7WVUgBUzAsPZPbFi5GKUYUG7KSvGNe1Se6VY4 hbXv5lUE8fAePLuRpqlSaqIEdlB2AOwapai02CoSnwfMufqqyGHQ6VgUEB2Sh9kWIeua 0b/NlDFbL6qyRoHa7ip79xTOpvIKLYZuQqOzY5TC6Vsuu/W1r+ftYpAFQtsfR+m+hKKc 2TWmJpvN8szm6+UNTRAQUqkLxV8f+urfw+C+GFH+qr4d3qJ2CsYdRScYZSAoT+qLtKwL /vXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si7293090oib.105.2020.04.05.23.39.55; Sun, 05 Apr 2020 23:40:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726530AbgDFGjf (ORCPT + 99 others); Mon, 6 Apr 2020 02:39:35 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12679 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726408AbgDFGjf (ORCPT ); Mon, 6 Apr 2020 02:39:35 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D4FC3696FF8E108486F8; Mon, 6 Apr 2020 14:39:29 +0800 (CST) Received: from [127.0.0.1] (10.133.203.15) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 6 Apr 2020 14:39:28 +0800 Subject: Re: [PATCH] bcache: remove set but not used variable 'i' To: Coly Li , CC: , References: <1586259407-23673-1-git-send-email-wanghai38@huawei.com> From: "wanghai (M)" Message-ID: Date: Mon, 6 Apr 2020 14:39:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.133.203.15] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2020/4/6 12:43, Coly Li 写道: > On 2020/4/7 7:36 下午, Wang Hai wrote: >> Fixes gcc '-Wunused-but-set-variable' warning: >> >> drivers/md/bcache/btree.c: In function bch_btree_check_thread: >> drivers/md/bcache/btree.c:1910:6: warning: >> variable ‘i’ set but not used [-Wunused-but-set-variable] >> >> It's not used since commit 8e7102273f59 ("bcache: make bch_btree_check() >> to be multithreaded"), so remove it. >> >> Reported-by: Hulk Robot >> Signed-off-by: Wang Hai > Hi Hai, > > Colin King already submitted a similar patch on Apr 2 to fix it. > > Thanks. > > Coly Li Thanks for reminding, please ignore this patch.