From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [chao-linux:dev 9/9] fs/f2fs/inline.c:205 f2fs_convert_inline_inode() error: uninitialized symbol 'ipage'.
Date: Thu, 04 Mar 2021 06:44:40 +0800 [thread overview]
Message-ID: <202103040632.eOzusA1e-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3770 bytes --]
CC: kbuild-all(a)lists.01.org
CC: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
TO: Chao Yu <yuchao0@huawei.com>, Chao Yu <chao@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/chao/linux.git dev
head: 07f5b791de7cd7d985c5d0ccd3b6c9096907f75e
commit: 07f5b791de7cd7d985c5d0ccd3b6c9096907f75e [9/9] f2fs: fix to avoid uninitialized value
:::::: branch date: 7 hours ago
:::::: commit date: 7 hours ago
config: x86_64-randconfig-m001-20210303 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch warnings:
fs/f2fs/inline.c:205 f2fs_convert_inline_inode() error: uninitialized symbol 'ipage'.
vim +/ipage +205 fs/f2fs/inline.c
e18c65b2ac91aa Huajun Li 2013-11-10 183
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 184 int f2fs_convert_inline_inode(struct inode *inode)
e18c65b2ac91aa Huajun Li 2013-11-10 185 {
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 186 struct f2fs_sb_info *sbi = F2FS_I_SB(inode);
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 187 struct dnode_of_data dn;
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 188 struct page *ipage, *page;
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 189 int err = 0;
e18c65b2ac91aa Huajun Li 2013-11-10 190
ec2ddf499402a6 Jaegeuk Kim 2020-12-03 191 if (!f2fs_has_inline_data(inode) ||
ec2ddf499402a6 Jaegeuk Kim 2020-12-03 192 f2fs_hw_is_readonly(sbi) || f2fs_readonly(sbi->sb))
b9d777b85ff1ff Jaegeuk Kim 2015-12-22 193 return 0;
b9d777b85ff1ff Jaegeuk Kim 2015-12-22 194
25fb04dbce6a0e Yi Chen 2021-01-28 195 err = dquot_initialize(inode);
25fb04dbce6a0e Yi Chen 2021-01-28 196 if (err)
25fb04dbce6a0e Yi Chen 2021-01-28 197 return err;
25fb04dbce6a0e Yi Chen 2021-01-28 198
300e129c15f0ed Jaegeuk Kim 2016-04-29 199 page = f2fs_grab_cache_page(inode->i_mapping, 0, false);
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 200 if (!page)
9e09fc855dd6f6 Jaegeuk Kim 2013-12-27 201 return -ENOMEM;
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 202
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 203 f2fs_lock_op(sbi);
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 204
07f5b791de7cd7 Chao Yu 2021-03-03 @205 set_new_dnode(&dn, inode, ipage, ipage, 0);
07f5b791de7cd7 Chao Yu 2021-03-03 206
4d57b86dd86404 Chao Yu 2018-05-30 207 ipage = f2fs_get_node_page(sbi, inode->i_ino);
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 208 if (IS_ERR(ipage)) {
6d20aff83c24e9 Jaegeuk Kim 2014-11-17 209 err = PTR_ERR(ipage);
6d20aff83c24e9 Jaegeuk Kim 2014-11-17 210 goto out;
b067ba1f1b3fa7 Jaegeuk Kim 2014-08-07 211 }
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 212
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 213 if (f2fs_has_inline_data(inode))
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 214 err = f2fs_convert_inline_page(&dn, page);
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 215
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 216 f2fs_put_dnode(&dn);
6d20aff83c24e9 Jaegeuk Kim 2014-11-17 217 out:
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 218 f2fs_unlock_op(sbi);
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 219
b3d208f96d6bb2 Jaegeuk Kim 2014-10-23 220 f2fs_put_page(page, 1);
2a3407607028f7 Jaegeuk Kim 2015-12-22 221
2c4db1a6f6b42e Jaegeuk Kim 2016-01-07 222 f2fs_balance_fs(sbi, dn.node_changed);
2a3407607028f7 Jaegeuk Kim 2015-12-22 223
e18c65b2ac91aa Huajun Li 2013-11-10 224 return err;
e18c65b2ac91aa Huajun Li 2013-11-10 225 }
e18c65b2ac91aa Huajun Li 2013-11-10 226
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36599 bytes --]
next reply other threads:[~2021-03-03 22:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-03 22:44 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-04 13:22 [chao-linux:dev 9/9] fs/f2fs/inline.c:205 f2fs_convert_inline_inode() error: uninitialized symbol 'ipage' Dan Carpenter
2021-03-04 13:22 ` Dan Carpenter
2021-03-05 1:21 ` Chao Yu
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=202103040632.eOzusA1e-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.