tree: https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git for-4.18/block head: 657e770d4d6e3b03c3d4b96e427b30d6f766e2e2 commit: 03766852a022b0ff5f8c4b73f40ef205a36d095e [1/13] block: add bi_blkg to the bio for cgroups config: i386-randconfig-a0-201820 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 03766852a022b0ff5f8c4b73f40ef205a36d095e # save the attached .config to linux build tree make ARCH=i386
All warnings (new ones prefixed by >>): In file included from include/linux/blkdev.h:21:0, from include/linux/t10-pi.h:6, from drivers//target/target_core_device.c:36: >> include/linux/bio.h:556:55: warning: 'struct blkcg_gq' declared inside >> parameter list static int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) { return 0; } ^ >> include/linux/bio.h:556:55: warning: its scope is only this definition or >> declaration, which is probably not what you want include/linux/bio.h:556:12: warning: 'bio_associate_blkg' defined but not used [-Wunused-function] static int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) { return 0; } ^ vim +556 include/linux/bio.h 544 545 #define bio_dev(bio) \ 546 disk_devt((bio)->bi_disk) 547 548 #ifdef CONFIG_BLK_CGROUP 549 int bio_associate_blkcg(struct bio *bio, struct cgroup_subsys_state *blkcg_css); 550 int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg); 551 void bio_disassociate_task(struct bio *bio); 552 void bio_clone_blkcg_association(struct bio *dst, struct bio *src); 553 #else /* CONFIG_BLK_CGROUP */ 554 static inline int bio_associate_blkcg(struct bio *bio, 555 struct cgroup_subsys_state *blkcg_css) { return 0; } > 556 static int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) { > return 0; } 557 static inline void bio_disassociate_task(struct bio *bio) { } 558 static inline void bio_clone_blkcg_association(struct bio *dst, 559 struct bio *src) { } 560 #endif /* CONFIG_BLK_CGROUP */ 561 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip