Hi Keith, I love your patch! Perhaps something to improve: [auto build test WARNING on axboe-block/for-next] [also build test WARNING on linux-review/Xie-Yongji/nbd-Don-t-use-workqueue-to-handle-recv-work/20211227-171406 linus/master v5.16-rc7 next-20211224] [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] url: https://github.com/0day-ci/linux/commits/Keith-Busch/block-introduce-rq_list_for_each_safe-macro/20211228-004304 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20211228/202112280210.F89j103t-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/81098ed2c64adf477eae9c21a4188916e0ef5918 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Keith-Busch/block-introduce-rq_list_for_each_safe-macro/20211228-004304 git checkout 81098ed2c64adf477eae9c21a4188916e0ef5918 # save the config file to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/um/drivers/ubd_kern.c:27: >> include/linux/blk-mq.h:227:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] 227 | static void inline rq_list_move(struct request **src, struct request **dst, | ^~~~~~ -- In file included from include/linux/blktrace_api.h:5, from block/bfq-iosched.h:9, from block/bfq-cgroup.c:16: >> include/linux/blk-mq.h:227:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration] 227 | static void inline rq_list_move(struct request **src, struct request **dst, | ^~~~~~ block/bfq-cgroup.c:1437:6: warning: no previous prototype for 'bfqg_and_blkg_get' [-Wmissing-prototypes] 1437 | void bfqg_and_blkg_get(struct bfq_group *bfqg) {} | ^~~~~~~~~~~~~~~~~ vim +/inline +227 include/linux/blk-mq.h 215 216 #define rq_dma_dir(rq) \ 217 (op_is_write(req_op(rq)) ? DMA_TO_DEVICE : DMA_FROM_DEVICE) 218 219 /** 220 * rq_list_move() - move a struct request from one list to another 221 * @src: The source list @rq is currently in 222 * @dst: The destination list that @rq will be appended to 223 * @rq: The request to move 224 * @prv: The request preceding @rq in @src (NULL if @rq is the head) 225 * @nxt: The request following @rq in @src (NULL if @rq is the tail) 226 */ > 227 static void inline rq_list_move(struct request **src, struct request **dst, 228 struct request *rq, struct request *prv, 229 struct request *nxt) 230 { 231 if (prv) 232 prv->rq_next = nxt; 233 else 234 *src = nxt; 235 rq_list_add(dst, rq); 236 } 237 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org