From: kernel test robot <lkp@intel.com>
To: "Ahmed S. Darwish" <a.darwish@linutronix.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Peter Zijlstra <peterz@infradead.org>
Subject: fs/btrfs/volumes.h:206 btrfs_device_set_total_bytes() warn: statement has no effect 31
Date: Thu, 13 Aug 2020 14:46:30 +0800 [thread overview]
Message-ID: <202008131425.ghmkxzwl%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2316 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: dc06fe51d26efc100ac74121607c01a454867c91
commit: 55f3560df975f557c48aa6afc636808f31ecb87a seqlock: Extend seqcount API with associated locks
date: 2 weeks ago
config: parisc-randconfig-m031-20200811 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
New smatch warnings:
fs/btrfs/volumes.h:206 btrfs_device_set_total_bytes() warn: statement has no effect 31
fs/btrfs/volumes.h:207 btrfs_device_set_disk_total_bytes() warn: statement has no effect 31
fs/btrfs/volumes.h:208 btrfs_device_set_bytes_used() warn: statement has no effect 31
fs/btrfs/volumes.h:206 btrfs_device_set_total_bytes() warn: statement has no effect 31
fs/btrfs/volumes.h:207 btrfs_device_set_disk_total_bytes() warn: statement has no effect 31
fs/btrfs/volumes.h:208 btrfs_device_set_bytes_used() warn: statement has no effect 31
block/partitions/../blk.h:424 part_nr_sects_write() warn: statement has no effect 31
Old smatch warnings:
fs/btrfs/volumes.c:1091 btrfs_free_extra_devids() error: we previously assumed 'latest_dev' could be null (see line 1046)
fs/btrfs/volumes.c:6008 __btrfs_map_block() error: 'em' dereferencing possible ERR_PTR()
fs/btrfs/volumes.c:6827 read_one_dev() error: potential null dereference 'device'. (add_missing_dev returns null)
block/partitions/core.c:172 check_partition() warn: passing zero to 'ERR_PTR'
include/linux/fs.h:888 i_size_write() warn: statement has no effect 31
vim +206 fs/btrfs/volumes.h
7cc8e58d53cd22 Miao Xie 2014-09-03 205
7cc8e58d53cd22 Miao Xie 2014-09-03 @206 BTRFS_DEVICE_GETSET_FUNCS(total_bytes);
7cc8e58d53cd22 Miao Xie 2014-09-03 @207 BTRFS_DEVICE_GETSET_FUNCS(disk_total_bytes);
7cc8e58d53cd22 Miao Xie 2014-09-03 @208 BTRFS_DEVICE_GETSET_FUNCS(bytes_used);
7cc8e58d53cd22 Miao Xie 2014-09-03 209
:::::: The code at line 206 was first introduced by commit
:::::: 7cc8e58d53cd2295c3c1cee7b503bd1790ea4486 Btrfs: fix unprotected device's variants on 32bits machine
:::::: TO: Miao Xie <miaox@cn.fujitsu.com>
:::::: CC: Chris Mason <clm@fb.com>
---
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: 30888 bytes --]
reply other threads:[~2020-08-13 6:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202008131425.ghmkxzwl%lkp@intel.com \
--to=lkp@intel.com \
--cc=a.darwish@linutronix.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.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 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®