From: kernel test robot <lkp@intel.com>
To: Zhihao Cheng <chengzhihao1@huawei.com>,
richard@nod.at, miquel.raynal@bootlin.com, vigneshr@ti.com,
mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com,
Artem.Bityutskiy@nokia.com, ext-adrian.hunter@nokia.com
Cc: kbuild-all@lists.01.org, linux-mtd@lists.infradead.org,
linux-kernel@vger.kernel.org, chengzhihao1@huawei.com
Subject: Re: [PATCH 05/11] ubifs: Rename whiteout atomically
Date: Fri, 29 Oct 2021 13:33:57 +0800 [thread overview]
Message-ID: <202110291316.uquoyGjm-lkp@intel.com> (raw)
In-Reply-To: <20211025034116.3544321-6-chengzhihao1@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 3272 bytes --]
Hi Zhihao,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on linux/master]
[also build test ERROR on linus/master rw-ubifs/next v5.15-rc7 next-20211028]
[cannot apply to rw-ubifs/fixes]
[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/Zhihao-Cheng/Some-bugfixs-for-ubifs-ubi/20211025-113114
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2f111a6fd5b5297b4e92f53798ca086f7c7d33a4
config: x86_64-buildonly-randconfig-r004-20211028 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/8a6ca5bc1be93cca9c7b0167a71bdd338f854600
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Zhihao-Cheng/Some-bugfixs-for-ubifs-ubi/20211025-113114
git checkout 8a6ca5bc1be93cca9c7b0167a71bdd338f854600
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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/ubifs/dir.c: In function 'create_whiteout':
>> fs/ubifs/dir.c:357:22: error: variable 'ui' set but not used [-Werror=unused-but-set-variable]
357 | struct ubifs_inode *ui;
| ^~
cc1: all warnings being treated as errors
vim +/ui +357 fs/ubifs/dir.c
351
352 static struct inode *create_whiteout(struct inode *dir, struct dentry *dentry,
353 umode_t mode)
354 {
355 int err;
356 struct inode *inode;
> 357 struct ubifs_inode *ui;
358 struct ubifs_info *c = dir->i_sb->s_fs_info;
359 struct fscrypt_name nm;
360
361 /*
362 * Create an inode('nlink = 1') for whiteout without updating journal,
363 * let ubifs_jnl_rename() store it on flash to complete rename whiteout
364 * atomically.
365 */
366
367 dbg_gen("dent '%pd', mode %#hx in dir ino %lu",
368 dentry, mode, dir->i_ino);
369
370 err = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm);
371 if (err)
372 return ERR_PTR(err);
373
374 inode = ubifs_new_inode(c, dir, mode);
375 if (IS_ERR(inode)) {
376 err = PTR_ERR(inode);
377 goto out_free;
378 }
379 ui = ubifs_inode(inode);
380
381 init_special_inode(inode, inode->i_mode, WHITEOUT_DEV);
382 ubifs_assert(c, inode->i_op == &ubifs_file_inode_operations);
383
384 err = ubifs_init_security(dir, inode, &dentry->d_name);
385 if (err)
386 goto out_inode;
387
388 /* The dir size is updated by do_rename. */
389 insert_inode_hash(inode);
390
391 return inode;
392
393 out_inode:
394 make_bad_inode(inode);
395 iput(inode);
396 out_free:
397 fscrypt_free_filename(&nm);
398 ubifs_err(c, "cannot create whiteout file, error %d", err);
399 return ERR_PTR(err);
400 }
401
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35706 bytes --]
next prev parent reply other threads:[~2021-10-29 5:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-25 3:41 [PATCH 00/11] Some bugfixs for ubifs/ubi Zhihao Cheng
2021-10-25 3:41 ` [PATCH 01/11] ubifs: rename_whiteout: Fix double free for whiteout_ui->data Zhihao Cheng
2021-10-25 3:41 ` [PATCH 02/11] ubifs: Fix deadlock in concurrent rename whiteout and inode writeback Zhihao Cheng
2021-10-25 3:41 ` [PATCH 03/11] ubifs: Fix wrong number of inodes locked by ui_mutex in ubifs_inode comment Zhihao Cheng
2021-10-25 3:41 ` [PATCH 04/11] ubifs: Add missing iput if do_tmpfile() failed in rename whiteout Zhihao Cheng
2021-10-25 3:41 ` [PATCH 05/11] ubifs: Rename whiteout atomically Zhihao Cheng
2021-10-25 14:57 ` kernel test robot
2021-10-29 5:33 ` kernel test robot [this message]
2021-10-25 3:41 ` [PATCH 06/11] ubifs: Fix 'ui->dirty' race between do_tmpfile() and writeback work Zhihao Cheng
2021-10-25 3:41 ` [PATCH 07/11] ubifs: Rectify space amount budget for mkdir/tmpfile operations Zhihao Cheng
2021-10-25 3:41 ` [PATCH 08/11] ubifs: setflags: Don't make a budget for 'ui->data_len' Zhihao Cheng
2021-10-25 3:41 ` [PATCH 09/11] ubifs: Fix read out-of-bounds in ubifs_wbuf_write_nolock() Zhihao Cheng
2021-10-25 3:41 ` [PATCH 10/11] ubi: fastmap: Return error code if memory allocation fails in add_aeb() Zhihao Cheng
2021-10-25 3:41 ` [PATCH 11/11] ubi: fastmap: Add all fastmap pebs into 'ai->fastmap' when fm->used_blocks>=2 Zhihao Cheng
[not found] <202110301821.Ik9ShD1B-lkp@intel.com>
2021-11-05 5:35 ` [PATCH 05/11] ubifs: Rename whiteout atomically kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202110291316.uquoyGjm-lkp@intel.com \
--to=lkp@intel.com \
--cc=Artem.Bityutskiy@nokia.com \
--cc=alexandre.torgue@foss.st.com \
--cc=chengzhihao1@huawei.com \
--cc=ext-adrian.hunter@nokia.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=mcoquelin.stm32@gmail.com \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®