[android-common:android16-6.12 12/12] drivers/md/dm-bow.c:793:6: sparse: sparse: symbol 'dm_bow_resume' was not declared. Should it be static?
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://android.googlesource.com/kernel/common android16-6.12 head: 0fd55a309793adc6b8cddb5c29e80caa545ba4bb commit: d242fc9bf14a655afe36d65223e9e0d44d8ce636 [12/12] ANDROID: dm-bow: Fix 5.15 compatibility issue config: arm-randconfig-r112-20260716 (https://download.01.org/0day-ci/archive/20260718/[email protected]/config) compiler: arm-linux-gnueabi-gcc (GCC) 15.2.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260718/[email protected]/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ sparse warnings: (new ones prefixed by >>) drivers/md/dm-bow.c:97:10: sparse: sparse: symbol 'range_top' was not declared. Should it be static? drivers/md/dm-bow.c:148:6: sparse: sparse: symbol 'add_before' was not declared. Should it be static? drivers/md/dm-bow.c:178:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:178:24: sparse: expected int drivers/md/dm-bow.c:178:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:186:32: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:186:32: sparse: expected int drivers/md/dm-bow.c:186:32: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:205:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:205:24: sparse: expected int drivers/md/dm-bow.c:205:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:282:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:282:24: sparse: expected int drivers/md/dm-bow.c:282:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:395:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:395:24: sparse: expected int drivers/md/dm-bow.c:395:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:339:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:339:24: sparse: expected int drivers/md/dm-bow.c:339:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:344:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:344:24: sparse: expected int drivers/md/dm-bow.c:344:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:350:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:350:24: sparse: expected int drivers/md/dm-bow.c:350:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:358:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:358:24: sparse: expected int drivers/md/dm-bow.c:358:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:422:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:422:24: sparse: expected int drivers/md/dm-bow.c:422:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:427:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:427:24: sparse: expected int drivers/md/dm-bow.c:427:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:437:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:437:24: sparse: expected int drivers/md/dm-bow.c:437:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:443:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:443:24: sparse: expected int drivers/md/dm-bow.c:443:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:462:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:462:24: sparse: expected int drivers/md/dm-bow.c:462:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:553:53: sparse: sparse: Using plain integer as NULL pointer >> drivers/md/dm-bow.c:793:6: sparse: sparse: symbol 'dm_bow_resume' was not declared. Should it be static? drivers/md/dm-bow.c:827:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:827:24: sparse: expected int drivers/md/dm-bow.c:827:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:846:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:846:24: sparse: expected int drivers/md/dm-bow.c:846:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:939:24: sparse: sparse: incorrect type in return expression (different base types) @@ expected int @@ got restricted blk_status_t [usertype] @@ drivers/md/dm-bow.c:939:24: sparse: expected int drivers/md/dm-bow.c:939:24: sparse: got restricted blk_status_t [usertype] drivers/md/dm-bow.c:975:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted blk_status_t [usertype] bi_status @@ got int [assigned] ret @@ drivers/md/dm-bow.c:975:32: sparse: expected restricted blk_status_t [usertype] bi_status drivers/md/dm-bow.c:975:32: sparse: got int [assigned] ret drivers/md/dm-bow.c:1103:5: sparse: sparse: symbol 'remap_unless_illegal_trim' was not declared. Should it be static? drivers/md/dm-bow.c:1259:5: sparse: sparse: symbol 'dm_bow_prepare_ioctl' was not declared. Should it be static? drivers/md/dm-bow.c:1292:12: sparse: sparse: symbol 'dm_bow_init' was not declared. Should it be static? drivers/md/dm-bow.c:1301:6: sparse: sparse: symbol 'dm_bow_exit' was not declared. Should it be static? drivers/md/dm-bow.c:524:21: sparse: sparse: unsigned value that used to be signed checked against zero? drivers/md/dm-bow.c:523:26: sparse: signed value source vim +/dm_bow_resume +793 drivers/md/dm-bow.c 792 > 793 void dm_bow_resume(struct dm_target *ti) 794 { 795 struct mapped_device *md = dm_table_get_md(ti->table); 796 struct bow_context *bc = ti->private; 797 int ret; 798 799 if (bc->kobj_holder.kobj.state_initialized) 800 return; 801 802 ret = kobject_init_and_add(&bc->kobj_holder.kobj, &bow_ktype, 803 &disk_to_dev(dm_disk(md))->kobj, "%s", 804 "bow"); 805 if (ret) 806 ti->error = "Cannot create sysfs node"; 807 } 808 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki