Hi Yu, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on axboe-block/for-next] [also build test ERROR on linus/master v6.2-rc1 next-20221226] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yu-Kuai/block-bfq-switch-bfqg-ref-to-use-atomic-refcount-apis/20221227-105700 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next patch link: https://lore.kernel.org/r/20221227031541.2595647-1-yukuai1%40huaweicloud.com patch subject: [PATCH RFC] block, bfq: switch 'bfqg->ref' to use atomic refcount apis config: x86_64-rhel-8.3-rust compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/461f3c7be321385d0d8c9b3b33fa29bff8620281 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Yu-Kuai/block-bfq-switch-bfqg-ref-to-use-atomic-refcount-apis/20221227-105700 git checkout 461f3c7be321385d0d8c9b3b33fa29bff8620281 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> block/bfq-cgroup.c:324:28: error: passing 'refcount_t' (aka 'struct refcount_struct') to parameter of incompatible type 'refcount_t *' (aka 'struct refcount_struct *'); take the address with & if (refcount_dec_and_test(bfqg->ref)) ^~~~~~~~~ & include/linux/refcount.h:331:67: note: passing argument to parameter 'r' here static inline __must_check bool refcount_dec_and_test(refcount_t *r) ^ 1 error generated. vim +324 block/bfq-cgroup.c 321 322 static void bfqg_put(struct bfq_group *bfqg) 323 { > 324 if (refcount_dec_and_test(bfqg->ref)) 325 kfree(bfqg); 326 } 327 -- 0-DAY CI Kernel Test Service https://01.org/lkp