tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e45fb347b630ee76482fe938ba76cf8eab811290 commit: 0562d7bf160402c59dd08547d56e63afaefaaec9 [15350/15568] virtio-blk: add support for zoned block devices config: sparc64-randconfig-s053-20221218 compiler: sparc64-linux-gcc (GCC) 12.1.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-39-gce1a6720-dirty # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0562d7bf160402c59dd08547d56e63afaefaaec9 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 0562d7bf160402c59dd08547d56e63afaefaaec9 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/block/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/block/virtio_blk.c:326:36: sparse: sparse: incorrect type in initializer (different base types) @@ expected int status @@ got restricted blk_status_t @@ drivers/block/virtio_blk.c:326:36: sparse: expected int status drivers/block/virtio_blk.c:326:36: sparse: got restricted blk_status_t >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:332:33: sparse: sparse: cast to restricted __le64 >> drivers/block/virtio_blk.c:334:33: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted blk_status_t [usertype] error @@ got int status @@ drivers/block/virtio_blk.c:334:33: sparse: expected restricted blk_status_t [usertype] error drivers/block/virtio_blk.c:334:33: sparse: got int status vim +326 drivers/block/virtio_blk.c 322 323 static inline void virtblk_request_done(struct request *req) 324 { 325 struct virtblk_req *vbr = blk_mq_rq_to_pdu(req); > 326 int status = virtblk_result(vbr->status); 327 328 virtblk_unmap_data(req, vbr); 329 virtblk_cleanup_cmd(req); 330 331 if (req_op(req) == REQ_OP_ZONE_APPEND) > 332 req->__sector = le64_to_cpu(vbr->zone_append_in_hdr.append_sector); 333 > 334 blk_mq_end_request(req, status); 335 } 336 -- 0-DAY CI Kernel Test Service https://01.org/lkp