Hi, [auto build test WARNING on block/for-next] [also build test WARNING on v4.7 next-20160726] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Paolo-Valente/block-add-missing-group-association-in-bio-cloning-functions/20160727-005044 base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next config: x86_64-randconfig-x015-201630 (attached as .config) compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): In file included from block/bio.c:20:0: include/linux/bio.h: In function 'bio_clone_blkcg_association': >> include/linux/bio.h:480:30: warning: 'return' with a value, in function returning void struct bio *src) { return 0; } ^ include/linux/bio.h:479:20: note: declared here static inline void bio_clone_blkcg_association(struct bio *dst, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/return +480 include/linux/bio.h 464 void zero_fill_bio(struct bio *bio); 465 extern struct bio_vec *bvec_alloc(gfp_t, int, unsigned long *, mempool_t *); 466 extern void bvec_free(mempool_t *, struct bio_vec *, unsigned int); 467 extern unsigned int bvec_nr_vecs(unsigned short idx); 468 469 #ifdef CONFIG_BLK_CGROUP 470 int bio_associate_blkcg(struct bio *bio, struct cgroup_subsys_state *blkcg_css); 471 int bio_associate_current(struct bio *bio); 472 void bio_disassociate_task(struct bio *bio); 473 void bio_clone_blkcg_association(struct bio *dst, struct bio *src); 474 #else /* CONFIG_BLK_CGROUP */ 475 static inline int bio_associate_blkcg(struct bio *bio, 476 struct cgroup_subsys_state *blkcg_css) { return 0; } 477 static inline int bio_associate_current(struct bio *bio) { return -ENOENT; } 478 static inline void bio_disassociate_task(struct bio *bio) { } 479 static inline void bio_clone_blkcg_association(struct bio *dst, > 480 struct bio *src) { return 0; } 481 #endif /* CONFIG_BLK_CGROUP */ 482 483 #ifdef CONFIG_HIGHMEM 484 /* 485 * remember never ever reenable interrupts between a bvec_kmap_irq and 486 * bvec_kunmap_irq! 487 */ 488 static inline char *bvec_kmap_irq(struct bio_vec *bvec, unsigned long *flags) --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data