Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1491282ybb; Thu, 2 Apr 2020 01:39:51 -0700 (PDT) X-Google-Smtp-Source: APiQypKHXwyD2HFwWWhx+mTFnHL4LUXfOmevmgYmrJrp3VoEFfDbQaHXsjKkSRDAupIxhkYISWS6 X-Received: by 2002:a9d:798f:: with SMTP id h15mr1532249otm.284.1585816791514; Thu, 02 Apr 2020 01:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585816791; cv=none; d=google.com; s=arc-20160816; b=sSSOjymtOLzxxhPPXaNBVYl6vK9Hw0u3XXEgsplfd2jEuXD7LOqq2M+m86Y/Y6zESl nmR5AnKz5/l8mI9OCFBNDB7ccXf6yaBSadE/p/OQkeap4Y40pHD/e7Qi+QciwAQwVkxJ Fs1T3nfdJkHINvNAZN2s8Z9N/3onx8MAHle5t3/AVRqi9jF7eUZ/Jqs5x64TGDN2z+H5 SlH/pB5pMjDyzCjg0iDQycgS004p/wjI356C9saI1Vb48k4sPUbsoz6h39jO3Ps9UucB KiyXHitWfUnRmJey9kkw783qt8axLwQpnQR/G6AVXQouK6u8OejDZmuSpKSXyZ8jLW1N zgBw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=DGMldTQkkS0PrN+AiTa44/67DdtmIjJUGpYQ7xLZuIM=; b=rFociJ7HbJyLT904cV9z6n7cYKOH2G+g7Zuot24IH54Jr7DHtDaQrV8AMtG4I0QC3H I+F7pabbUBVJJpcLSIjCZrgdTE4cYy+sb6c0nbcC4kGrDMIIQlEKvIcadKVrNWJ0NMOb b1Uyo+py44Nn/1Ze9V4p/6PSojwftH/MzqroFncn8cVOJlBECWcbTpEBVhoTWFSZUgwM 2X7HR2Xti7tXGnBVKWeV06uGH4eZc0byWF9KUEp4jq0M0C4dUlv+FhmvPiKe6ccOM3YY CApZFJ8VxABF/soGthjM/H4FFWyFANq8HUIR1A1qJ6pUDhzf1RfP0N/wVPmkZprL2VpD Eztg== 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 o63si2156300oih.74.2020.04.02.01.39.38; Thu, 02 Apr 2020 01:39:51 -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 S2387690AbgDBIiQ (ORCPT + 99 others); Thu, 2 Apr 2020 04:38:16 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:53216 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728612AbgDBIiP (ORCPT ); Thu, 2 Apr 2020 04:38:15 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 549B628F6AF62727C616; Thu, 2 Apr 2020 16:37:50 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.209) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 2 Apr 2020 16:37:42 +0800 Subject: Re: [f2fs-dev] [PATCH -next] f2fs: remove set but not used variable 'params' To: Jason Yan , , , , References: <20200402061545.23208-1-yanaijie@huawei.com> From: Chao Yu Message-ID: <6170e88e-5242-30dd-f624-1171aaa994de@huawei.com> Date: Thu, 2 Apr 2020 16:37:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200402061545.23208-1-yanaijie@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.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 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? 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), >