Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1519687ybb; Thu, 2 Apr 2020 02:20:37 -0700 (PDT) X-Google-Smtp-Source: APiQypIhpBO54bKu1H4xXOpd6fREzfmwHo8P3LG7kL8DujcX5BjD+rJqPEO+66GeI0nH0GNtBUU3 X-Received: by 2002:aca:ddc4:: with SMTP id u187mr1513271oig.129.1585819237377; Thu, 02 Apr 2020 02:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585819237; cv=none; d=google.com; s=arc-20160816; b=kR9oEjfdmhzzVUG9dLEI5CpxXXxvpblY0ZwIg8Eoskzd6MvVocXx8p6Xw8gZCdk/3U NP0MIOmOPsEV+MKegZqyjHoIeLRy92LD+P4sqlISP7QSpjU3nRc68xhuWQpX3t/lpP/H w7AwC3CQo9SDUbOLuf1NsOsLpw83ICzkBpO9xr6LnN8FokEpPvgcCOkgqce3pdTbEKIk QzZ3VMS49qz+p3uVPbcgCoMX419ZjEOf8yD8zWulBfU17eQobP3MwfIOaGjUejifbnPa ijF1KtXOIyHtR+m9rr3UkSEqxjAppveDgYccaVLoSqM+aYpfXwgiyCt9BN6g2c4AEpmp pKVA== 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:to:subject; bh=hriGjVg371gy4DIV86nW5E3XncWEgryRVCqPCIzaab8=; b=SOZ0FbF3tfeIL45+L+JLswCgLLi1xim4fblVonR7aZ8oPQ913vFlFddIsNDVugRcjO u+XZk9AfmgLcIjlB+B7QM4x8UYfvqCSc/caudtWXykXykSaG5pbi2MpfiT8sh5Gy3Kj7 64FWL0RlluVx2uLvmTiP1kITNacYvDHjJV7AjLzJcsEEJd4xpPwPiCGuWt9ylAcie01P 1/lMS/FLPBEX/WC+c5UU4cgvbBYXoZKjCd8/xxpPMVx0RnvrbLanV7xzhd8jdZ4ncom2 9U9hNDxQw9mj43a6yCSkLAbRrm8y/vTak0i58wVVtQvbszL11h+mVRRNVoyR9WrOfM3f b38g== 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 51si2082228oty.202.2020.04.02.02.20.24; Thu, 02 Apr 2020 02:20:37 -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 S2387849AbgDBJOc (ORCPT + 99 others); Thu, 2 Apr 2020 05:14:32 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12672 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729033AbgDBJOb (ORCPT ); Thu, 2 Apr 2020 05:14:31 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id DD45955660C927AEE8D0; Thu, 2 Apr 2020 17:14:24 +0800 (CST) Received: from [127.0.0.1] (10.173.221.195) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 2 Apr 2020 17:14:15 +0800 Subject: Re: [f2fs-dev] [PATCH -next] f2fs: remove set but not used variable 'params' To: Chao Yu , , , , References: <20200402061545.23208-1-yanaijie@huawei.com> <6170e88e-5242-30dd-f624-1171aaa994de@huawei.com> From: Jason Yan Message-ID: Date: Thu, 2 Apr 2020 17:14:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <6170e88e-5242-30dd-f624-1171aaa994de@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.173.221.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chao, 在 2020/4/2 16:37, Chao Yu 写道: > Hi Jason, > > On 2020/4/2 14:15, Jason Yan wrote: >> Fix the following gcc warning: >> >> fs/f2fs/compress.c:375:18: warning: variable 'params' set but not used [-Wunused-but-set-variable] >> ZSTD_parameters params; >> ^~~~~~ >> >> Reported-by: Hulk Robot >> Signed-off-by: Jason Yan > > Thanks for the patch, would you mind that just merge this fix into > original path which is still in f2fs private git tree? > It's ok to merge this into the original patch. > Thanks, > >> --- >> fs/f2fs/compress.c | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c >> index f05ecf4cb899..df7b2d15eacd 100644 >> --- a/fs/f2fs/compress.c >> +++ b/fs/f2fs/compress.c >> @@ -372,12 +372,10 @@ static int zstd_compress_pages(struct compress_ctx *cc) >> >> static int zstd_init_decompress_ctx(struct decompress_io_ctx *dic) >> { >> - ZSTD_parameters params; >> ZSTD_DStream *stream; >> void *workspace; >> unsigned int workspace_size; >> >> - params = ZSTD_getParams(F2FS_ZSTD_DEFAULT_CLEVEL, dic->clen, 0); >> workspace_size = ZSTD_DStreamWorkspaceBound(MAX_COMPRESS_WINDOW_SIZE); >> >> workspace = f2fs_kvmalloc(F2FS_I_SB(dic->inode), >> > > . >