drivers/block/drbd/drbd_receiver.c:5315:25: sparse: sparse: incorrect type in assignment (different base types)
From: kernel test robot
Date: Sun Nov 21 2021 - 03:44:12 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 923dcc5eb0c111eccd51cc7ce1658537e3c38b25
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date: 7 months ago
config: mips-randconfig-s032-20211116 (attached as .config)
compiler: mipsel-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d991bb1c8da842a2a0b9dc83b1005e655783f861
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d991bb1c8da842a2a0b9dc83b1005e655783f861
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
sparse warnings: (new ones prefixed by >>)
drivers/block/drbd/drbd_receiver.c:1169:28: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:1173:27: sparse: sparse: cast to restricted __be16
drivers/block/drbd/drbd_receiver.c:1174:28: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:1179:27: sparse: sparse: cast to restricted __be16
drivers/block/drbd/drbd_receiver.c:1180:28: sparse: sparse: cast to restricted __be16
drivers/block/drbd/drbd_receiver.c:822:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:822:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:822:14: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:877:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:877:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:877:14: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:1042:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:1042:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:1042:14: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:1434:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:1434:14: sparse: struct disk_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:1434:14: sparse: struct disk_conf *
drivers/block/drbd/drbd_receiver.c:1588:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:1588:14: sparse: struct disk_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:1588:14: sparse: struct disk_conf *
drivers/block/drbd/drbd_receiver.c:1893:22: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:1897:22: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:1909:22: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:2157:18: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:2191:18: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:2405:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:2405:22: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:2405:22: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:2415:27: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:2415:27: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:2415:27: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:2594:24: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:2622:18: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:2633:20: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:2666:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:2666:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:2666:14: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:2798:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:2798:22: sparse: struct disk_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:2798:22: sparse: struct disk_conf *
drivers/block/drbd/drbd_receiver.c:2854:18: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:2855:18: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:3066:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:3066:23: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:3066:23: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:3142:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:3142:23: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:3142:23: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:3199:23: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:3199:23: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:3199:23: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:3545:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:3545:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:3545:14: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:3677:27: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:3678:27: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:3679:27: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:3680:27: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:3681:27: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:3682:27: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:3703:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:3703:22: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:3703:22: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:3789:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:3789:9: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:3789:9: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:3946:46: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4005:55: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4006:57: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4007:56: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4008:53: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4044:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:4044:25: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:4044:25: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:4049:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:4049:17: sparse: struct disk_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:4049:17: sparse: struct disk_conf *
drivers/block/drbd/drbd_receiver.c:4055:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:4055:17: sparse: struct fifo_buffer [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:4055:17: sparse: struct fifo_buffer *
drivers/block/drbd/drbd_receiver.c:4122:18: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:4123:19: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:4124:19: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:4132:28: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:4132:28: sparse: struct disk_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:4132:28: sparse: struct disk_conf *
drivers/block/drbd/drbd_receiver.c:4174:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:4174:25: sparse: struct disk_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:4174:25: sparse: struct disk_conf *
drivers/block/drbd/drbd_receiver.c:4297:29: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:4397:18: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4398:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4423:18: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4424:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4456:24: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:4660:52: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:4987:9: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:4987:9: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5005:18: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:5006:16: sparse: sparse: cast to restricted __be32
>> drivers/block/drbd/drbd_receiver.c:5315:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] protocol_min @@ got restricted __be32 [usertype] @@
>> drivers/block/drbd/drbd_receiver.c:5316:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] protocol_max @@ got restricted __be32 [usertype] @@
>> drivers/block/drbd/drbd_receiver.c:5317:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] feature_flags @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_receiver.c:5626:23: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5645:23: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5690:27: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:5691:23: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5700:38: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5742:27: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:5743:23: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5751:38: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5788:27: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:5789:20: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5797:38: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5824:27: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:5831:38: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5833:9: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5833:9: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5833:9: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5833:9: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5854:18: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:5855:16: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5857:38: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5884:44: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5916:18: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:5917:16: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5919:38: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_receiver.c:5921:13: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_receiver.c:5970:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:5970:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:5970:14: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:6060:37: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:6060:37: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:6060:37: sparse: struct net_conf *
drivers/block/drbd/drbd_receiver.c:6157:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_receiver.c:6157:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_receiver.c:6157:14: sparse: struct net_conf *
--
drivers/block/drbd/drbd_main.c:1393:31: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:1406:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sector @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:1406:19: sparse: expected unsigned long long [usertype] sector
drivers/block/drbd/drbd_main.c:1406:19: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:1407:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] blksize @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:1407:20: sparse: expected unsigned int [usertype] blksize
drivers/block/drbd/drbd_main.c:1407:20: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:1422:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sector @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:1422:19: sparse: expected unsigned long long [usertype] sector
drivers/block/drbd/drbd_main.c:1422:19: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:1424:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] blksize @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:1424:20: sparse: expected unsigned int [usertype] blksize
drivers/block/drbd/drbd_main.c:1424:20: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:1440:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sector @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:1440:19: sparse: expected unsigned long long [usertype] sector
drivers/block/drbd/drbd_main.c:1440:19: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:1442:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] blksize @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:1442:20: sparse: expected unsigned int [usertype] blksize
drivers/block/drbd/drbd_main.c:1442:20: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:1455:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sector @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:1455:19: sparse: expected unsigned long long [usertype] sector
drivers/block/drbd/drbd_main.c:1455:19: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:1457:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] blksize @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:1457:20: sparse: expected unsigned int [usertype] blksize
drivers/block/drbd/drbd_main.c:1457:20: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:1680:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sector @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:1680:19: sparse: expected unsigned long long [usertype] sector
drivers/block/drbd/drbd_main.c:1680:19: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:1682:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] seq_num @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:1682:20: sparse: expected unsigned int [usertype] seq_num
drivers/block/drbd/drbd_main.c:1682:20: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:1696:21: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] dp_flags @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:1696:21: sparse: expected unsigned int [usertype] dp_flags
drivers/block/drbd/drbd_main.c:1696:21: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:1701:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] size @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:1701:25: sparse: expected unsigned int [usertype] size
drivers/block/drbd/drbd_main.c:1701:25: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:1711:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] size @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:1711:29: sparse: expected unsigned int [usertype] size
drivers/block/drbd/drbd_main.c:1711:29: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:1787:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sector @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:1787:19: sparse: expected unsigned long long [usertype] sector
drivers/block/drbd/drbd_main.c:1787:19: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:1810:19: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] sector @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:1810:19: sparse: expected unsigned long long [usertype] sector
drivers/block/drbd/drbd_main.c:1810:19: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:1811:20: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] blksize @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:1811:20: sparse: expected unsigned int [usertype] blksize
drivers/block/drbd/drbd_main.c:1811:20: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:1847:40: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_main.c:1847:40: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_main.c:1847:40: sparse: struct net_conf *
drivers/block/drbd/drbd_main.c:3020:30: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] la_size_sect @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:3020:30: sparse: expected unsigned long long [usertype] la_size_sect
drivers/block/drbd/drbd_main.c:3020:30: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:3022:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:3022:33: sparse: expected unsigned long long
drivers/block/drbd/drbd_main.c:3022:33: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:3023:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] flags @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3023:23: sparse: expected unsigned int [usertype] flags
drivers/block/drbd/drbd_main.c:3023:23: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3024:23: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] magic @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3024:23: sparse: expected unsigned int [usertype] magic
drivers/block/drbd/drbd_main.c:3024:23: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3026:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] md_size_sect @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3026:31: sparse: expected unsigned int [usertype] md_size_sect
drivers/block/drbd/drbd_main.c:3026:31: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3027:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] al_offset @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3027:31: sparse: expected unsigned int [usertype] al_offset
drivers/block/drbd/drbd_main.c:3027:31: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3028:31: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] al_nr_extents @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3028:31: sparse: expected unsigned int [usertype] al_nr_extents
drivers/block/drbd/drbd_main.c:3028:31: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3029:34: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] bm_bytes_per_bit @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3029:34: sparse: expected unsigned int [usertype] bm_bytes_per_bit
drivers/block/drbd/drbd_main.c:3029:34: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3030:29: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] device_uuid @@ got restricted __be64 [usertype] @@
drivers/block/drbd/drbd_main.c:3030:29: sparse: expected unsigned long long [usertype] device_uuid
drivers/block/drbd/drbd_main.c:3030:29: sparse: got restricted __be64 [usertype]
drivers/block/drbd/drbd_main.c:3032:27: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] bm_offset @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3032:27: sparse: expected unsigned int [usertype] bm_offset
drivers/block/drbd/drbd_main.c:3032:27: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3033:38: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] la_peer_max_bio_size @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3033:38: sparse: expected unsigned int [usertype] la_peer_max_bio_size
drivers/block/drbd/drbd_main.c:3033:38: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3035:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] al_stripes @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3035:28: sparse: expected unsigned int [usertype] al_stripes
drivers/block/drbd/drbd_main.c:3035:28: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3036:35: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] al_stripe_size_4k @@ got restricted __be32 [usertype] @@
drivers/block/drbd/drbd_main.c:3036:35: sparse: expected unsigned int [usertype] al_stripe_size_4k
drivers/block/drbd/drbd_main.c:3036:35: sparse: got restricted __be32 [usertype]
drivers/block/drbd/drbd_main.c:3089:26: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3090:33: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3252:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3253:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3271:13: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3272:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3272:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3272:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3272:17: sparse: sparse: cast to restricted __be32
>> drivers/block/drbd/drbd_main.c:3279:33: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_main.c:3281:36: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_main.c:3282:26: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3283:32: sparse: sparse: cast to restricted __be64
drivers/block/drbd/drbd_main.c:3285:33: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3286:30: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3287:30: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3294:13: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3295:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3295:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3295:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3295:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3299:13: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3300:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3300:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3300:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3300:17: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3310:24: sparse: sparse: cast to restricted __be32
drivers/block/drbd/drbd_main.c:3693:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_main.c:3693:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_main.c:3693:14: sparse: struct net_conf *
drivers/block/drbd/drbd_main.c:860:9: sparse: sparse: context imbalance in 'drbd_print_uuids' - different lock contexts for basic block
drivers/block/drbd/drbd_main.c: note: in included file:
drivers/block/drbd/drbd_int.h:2141:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_int.h:2141:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_int.h:2141:14: sparse: struct net_conf *
drivers/block/drbd/drbd_int.h:2141:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_int.h:2141:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_int.h:2141:14: sparse: struct net_conf *
drivers/block/drbd/drbd_int.h:2141:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_int.h:2141:14: sparse: struct net_conf [noderef] __rcu *
drivers/block/drbd/drbd_int.h:2141:14: sparse: struct net_conf *
drivers/block/drbd/drbd_int.h:1722:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
drivers/block/drbd/drbd_int.h:1722:14: sparse: struct disk_conf [noderef] __rcu *
drivers/block/drbd/drbd_int.h:1722:14: sparse: struct disk_conf *
vim +5315 drivers/block/drbd/drbd_receiver.c
b411b3637fa71f Philipp Reisner 2009-09-25 5295
b411b3637fa71f Philipp Reisner 2009-09-25 5296 /*
b411b3637fa71f Philipp Reisner 2009-09-25 5297 * We support PRO_VERSION_MIN to PRO_VERSION_MAX. The protocol version
b411b3637fa71f Philipp Reisner 2009-09-25 5298 * we can agree on is stored in agreed_pro_version.
b411b3637fa71f Philipp Reisner 2009-09-25 5299 *
b411b3637fa71f Philipp Reisner 2009-09-25 5300 * feature flags and the reserved array should be enough room for future
b411b3637fa71f Philipp Reisner 2009-09-25 5301 * enhancements of the handshake protocol, and possible plugins...
b411b3637fa71f Philipp Reisner 2009-09-25 5302 *
b411b3637fa71f Philipp Reisner 2009-09-25 5303 * for now, they are expected to be zero, but ignored.
b411b3637fa71f Philipp Reisner 2009-09-25 5304 */
bde89a9e151b48 Andreas Gruenbacher 2011-05-30 5305 static int drbd_send_features(struct drbd_connection *connection)
b411b3637fa71f Philipp Reisner 2009-09-25 5306 {
9f5bdc339e3bec Andreas Gruenbacher 2011-03-28 5307 struct drbd_socket *sock;
9f5bdc339e3bec Andreas Gruenbacher 2011-03-28 5308 struct p_connection_features *p;
b411b3637fa71f Philipp Reisner 2009-09-25 5309
bde89a9e151b48 Andreas Gruenbacher 2011-05-30 5310 sock = &connection->data;
bde89a9e151b48 Andreas Gruenbacher 2011-05-30 5311 p = conn_prepare_command(connection, sock);
9f5bdc339e3bec Andreas Gruenbacher 2011-03-28 5312 if (!p)
e8d17b015eb810 Andreas Gruenbacher 2011-03-16 5313 return -EIO;
b411b3637fa71f Philipp Reisner 2009-09-25 5314 memset(p, 0, sizeof(*p));
b411b3637fa71f Philipp Reisner 2009-09-25 @5315 p->protocol_min = cpu_to_be32(PRO_VERSION_MIN);
b411b3637fa71f Philipp Reisner 2009-09-25 @5316 p->protocol_max = cpu_to_be32(PRO_VERSION_MAX);
20c68fdea1646e Lars Ellenberg 2014-04-28 @5317 p->feature_flags = cpu_to_be32(PRO_FEATURES);
bde89a9e151b48 Andreas Gruenbacher 2011-05-30 5318 return conn_send_command(connection, sock, P_CONNECTION_FEATURES, sizeof(*p), NULL, 0);
b411b3637fa71f Philipp Reisner 2009-09-25 5319 }
b411b3637fa71f Philipp Reisner 2009-09-25 5320
:::::: The code at line 5315 was first introduced by commit
:::::: b411b3637fa71fce9cf2acf0639009500f5892fe The DRBD driver
:::::: TO: Philipp Reisner <philipp.reisner@xxxxxxxxxx>
:::::: CC: Jens Axboe <jens.axboe@xxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip