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=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 7578BC31E40 for ; Fri, 9 Aug 2019 06:15:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 55FD3208C3 for ; Fri, 9 Aug 2019 06:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405563AbfHIGP3 (ORCPT ); Fri, 9 Aug 2019 02:15:29 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4205 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725920AbfHIGP3 (ORCPT ); Fri, 9 Aug 2019 02:15:29 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 2005844A2B8D8B8EE3F1; Fri, 9 Aug 2019 14:15:27 +0800 (CST) Received: from [127.0.0.1] (10.133.213.239) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.439.0; Fri, 9 Aug 2019 14:15:21 +0800 Subject: Re: linux-next: build warning after merge of the block tree To: Stephen Rothwell , Jens Axboe References: <20190809140035.5b59c31e@canb.auug.org.au> CC: Linux Next Mailing List , "Linux Kernel Mailing List" From: Yuehaibing Message-ID: Date: Fri, 9 Aug 2019 14:15:21 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20190809140035.5b59c31e@canb.auug.org.au> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/8/9 12:00, Stephen Rothwell wrote: > Hi all, > > After merging the block tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > drivers/lightnvm/pblk-read.c: In function 'pblk_submit_read_gc': > drivers/lightnvm/pblk-read.c:421:18: warning: unused variable 'geo' [-Wunused-variable] > struct nvm_geo *geo = &dev->geo; > ^~~ > > Introduced by commit > > ba6f7da99aaf ("lightnvm: remove set but not used variables 'data_len' and 'rq_len'") > > Removing the above line will also remove the last use of the variable > "dev" ... Oh, my bad, thanks! >