All of lore.kernel.org
 help / color / mirror / Atom feed
* fs/btrfs/volumes.h:206 btrfs_device_set_total_bytes() warn: statement has no effect 31
@ 2020-08-13  6:46 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-08-13  6:46 UTC (permalink / raw)
  To: Ahmed S. Darwish; +Cc: kbuild-all, linux-kernel, Peter Zijlstra

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* fs/btrfs/volumes.h:206 btrfs_device_set_total_bytes() warn: statement has no effect 31
@ 2020-08-13  6:46 ` kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2020-08-13  6:46 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2361 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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 30888 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* fs/btrfs/volumes.h:206 btrfs_device_set_total_bytes() warn: statement has no effect 31
@ 2021-06-29 11:00 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2021-06-29 11:00 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2296 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: "Ahmed S. Darwish" <a.darwish@linutronix.de>
CC: Peter Zijlstra <peterz@infradead.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c54b245d011855ea91c5beff07f1db74143ce614
commit: 55f3560df975f557c48aa6afc636808f31ecb87a seqlock: Extend seqcount API with associated locks
date:   11 months ago
:::::: branch date: 7 hours ago
:::::: commit date: 11 months ago
config: i386-randconfig-m021-20210629 (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>

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

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()

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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37304 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-29 11:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13  6:46 fs/btrfs/volumes.h:206 btrfs_device_set_total_bytes() warn: statement has no effect 31 kernel test robot
2020-08-13  6:46 ` kernel test robot
2021-06-29 11:00 kernel test robot

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.