Message ID | 20240124010322.94782-1-yang.lee@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-36252-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp701075dyi; Tue, 23 Jan 2024 17:03:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgNaJl6t3fp8ccy10F2x2FgT4yYXjux5pvo8xgRLz4k8jKP5GXHrodBjILbmizyz16xFi2 X-Received: by 2002:a7b:c358:0:b0:40e:41b8:1974 with SMTP id l24-20020a7bc358000000b0040e41b81974mr409163wmj.103.1706058225546; Tue, 23 Jan 2024 17:03:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706058225; cv=pass; d=google.com; s=arc-20160816; b=pBYtZiCKRlzVK3JTzQTZnXLJ6P0dTBMh+mCxAOgei081OLk6jkUBRLAVJw/Idaq6ri 6MZGOwII9SdYesShoTkvwR9BnOV8P8nLLXuZZDdtH05wAybehv5bue8tNkRI5/R7jPnj Pnw6Pi0UcJ6Mlta3n6DYp+cuR6BKRzCsD8Ui01gDt1pP/NIgoHZoLrStKBZ3fhqAtf/T p/FJrmzhcyHgEHbV7ye2tt0+j2FhkWrPaC90CyiCjjLSoWiia9CwGjIAq/5JQ7hqzxqW fj9002M/431I5NmEMhajEhm5re0cVCGvgZfYGleF/4PXlPBSTn9/9WB0Jq5+EnWx7gwO v9Yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=JlPnXBw3io2sC7hrq4K/Nm3EdFUUDctFRUDqCAAlq/w=; fh=ETKI0NrBSIftkAm6NdJjXtzX46xB7DKBqhgnUoZnIbM=; b=vfqzgkKK4WiCPmJFOhmdynk74yZv3k0/mOzjx0TtxjJtPY6KN3as+hfk9ErR1FYdgK P4M8evSRdkzTxmdPvFcvFkAC7MugIDAWKu4Zm64z6SJoTpuhx3yXeFsEgPJEK8elqHdb Dtjl9SYsVOLnFJBU8pUdjv8eEXd/l5/Y0jBNXIU4vsZ8SVl0Eyv69eG+p2yov+pY4EE1 pRA2hvUkTGdKVm5hNTsn/0QZQeFvPRkMKMrPznHoUhgQDwPgj+bm4bZHFfrIx4jFfAc4 OYodcn02wCKoapWzkZVCtVX8c70nSEWY9JoMB5AYZiwpTKOzh1gGX0URf+j+Jzoi+2Jt wZ6w== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-36252-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36252-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y7-20020a50e607000000b005593cb82dd9si10154417edm.636.2024.01.23.17.03.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 17:03:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36252-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-36252-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36252-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2FE331F2ABBE for <ouuuleilei@gmail.com>; Wed, 24 Jan 2024 01:03:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 71DBF17CB; Wed, 24 Jan 2024 01:03:31 +0000 (UTC) Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 173F910E3 for <linux-kernel@vger.kernel.org>; Wed, 24 Jan 2024 01:03:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706058210; cv=none; b=q2rRH0RIqp5oVXysqjOgfiD1AQZKf7KT+mi7sNv+dSsAiPRwSRyA1eaHKYArTZOEbNTK+wKu6tbzhQ3QfP0i1h5fk0uJZopo2Y5iAe15xtXZ4bDqJq8gd5OGJywf4933zOVvokPFVzANGzpchIeu+E6UkeMCLpKIaZUKjI2unUA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706058210; c=relaxed/simple; bh=hV6NqU0W1+Wf0pkFYtSJr6jS6L+KKlOLwkBT5Tj40U4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=oRvbsABr+d0mB9sS9dj7myFXiM/LvZGEzB4b2QgzCt9lLCFSoeBZPNx93PzPMLasLrb/Pqjb1I8kxX8PBrAVM+qwY+NazGbQtDbuxfJo6+gBvBmIGTXiY+z+lBUHnrwdKD0s42A/Hn1A3I2ltskIJaxKmjIYA9xi0PgH0nVeXgw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; arc=none smtp.client-ip=115.124.30.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0W.E7vKj_1706058203; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0W.E7vKj_1706058203) by smtp.aliyun-inc.com; Wed, 24 Jan 2024 09:03:24 +0800 From: Yang Li <yang.lee@linux.alibaba.com> To: jaharkes@cs.cmu.edu, coda@cs.cmu.edu Cc: codalist@coda.cs.cmu.edu, linux-kernel@vger.kernel.org, Yang Li <yang.lee@linux.alibaba.com> Subject: [PATCH -next] fs: coda: Remove unused variable 'outp' in venus_rmdir Date: Wed, 24 Jan 2024 09:03:22 +0800 Message-Id: <20240124010322.94782-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788931709710852832 X-GMAIL-MSGID: 1788931709710852832 |
Series |
[-next] fs: coda: Remove unused variable 'outp' in venus_rmdir
|
|
Commit Message
Yang Li
Jan. 24, 2024, 1:03 a.m. UTC
The variable 'outp' is declared but not used in the venus_rmdir
function within the Coda filesystem module. This causes a compiler
warning about the variable being set but not used.
To clean up the code and address the compiler warning, this patch
removes the declaration of the unused 'outp' variable.
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
fs/coda/upcall.c | 1 -
1 file changed, 1 deletion(-)
Comments
Thank you, but you sent the same patch in April 2021 and it resulted in compile errors in the expansion of UPARG. I assume this one will result in the same errors. Jan [auto build test ERROR on linus/master] [also build test ERROR on v5.12-rc5 next-20210401] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Yang-Li/coda-Remove-various-instances-of-an-unused-variable-outp/20210402-173111 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 1678e493d530e7977cce34e59a86bb86f3c5631e config: arc-randconfig-r014-20210402 (attached as .config) compiler: arceb-elf-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/b6484bc8a589df437829010ab82b49c48d56ee46 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Yang-Li/coda-Remove-various-instances-of-an-unused-variable-outp/20210402-173111 git checkout b6484bc8a589df437829010ab82b49c48d56ee46 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All errors (new ones prefixed by >>): fs/coda/upcall.c: In function 'venus_setattr': >> fs/coda/upcall.c:65:9: error: 'outp' undeclared (first use in this >> function); did you mean 'outl'? 65 | outp = (union outputArgs *)(inp); \ | ^~~~ fs/coda/upcall.c:118:2: note: in expansion of macro 'UPARG' 118 | UPARG(CODA_SETATTR); | ^~~~~ fs/coda/upcall.c:65:9: note: each undeclared identifier is reported only once for each function it appears in 65 | outp = (union outputArgs *)(inp); \ | ^~~~ On Wed, Jan 24, 2024 at 09:03:22AM +0800, Yang Li wrote: > The variable 'outp' is declared but not used in the venus_rmdir > function within the Coda filesystem module. This causes a compiler > warning about the variable being set but not used. > > To clean up the code and address the compiler warning, this patch > removes the declaration of the unused 'outp' variable. > > Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> > --- > fs/coda/upcall.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c > index cd6a3721f6f6..d97e0e4374f9 100644 > --- a/fs/coda/upcall.c > +++ b/fs/coda/upcall.c > @@ -303,7 +303,6 @@ int venus_rmdir(struct super_block *sb, struct CodaFid *dirfid, > const char *name, int length) > { > union inputArgs *inp; > - union outputArgs *outp; > int insize, outsize, error; > int offset; > > -- > 2.20.1.7.g153144c > >
diff --git a/fs/coda/upcall.c b/fs/coda/upcall.c index cd6a3721f6f6..d97e0e4374f9 100644 --- a/fs/coda/upcall.c +++ b/fs/coda/upcall.c @@ -303,7 +303,6 @@ int venus_rmdir(struct super_block *sb, struct CodaFid *dirfid, const char *name, int length) { union inputArgs *inp; - union outputArgs *outp; int insize, outsize, error; int offset;