tree: https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git current-work head: 1ac686f6d1b04b480cd245fb927180e1238bd3ac commit: 4ece201cfafab298cd89083567403a53f0971635 [2/3] block: add bi_blkg to the bio for cgroups config: i386-randconfig-a1-201804 (attached as .config) compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4 reproduce: git checkout 4ece201cfafab298cd89083567403a53f0971635 # 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/backing-dev.h:15,
from fs/open.c:15:
>> include/linux/bio.h:521: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:521:55: warning: its scope is only this definition or
>> declaration, which is probably not what you want
include/linux/bio.h:521: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 +521 include/linux/bio.h
506
507 #define bio_dev(bio) \
508 disk_devt((bio)->bi_disk)
509
510 #define bio_devname(bio, buf) \
511 __bdevname(bio_dev(bio), (buf))
512
513 #ifdef CONFIG_BLK_CGROUP
514 int bio_associate_blkcg(struct bio *bio, struct cgroup_subsys_state
*blkcg_css);
515 int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg);
516 void bio_disassociate_task(struct bio *bio);
517 void bio_clone_blkcg_association(struct bio *dst, struct bio *src);
518 #else /* CONFIG_BLK_CGROUP */
519 static inline int bio_associate_blkcg(struct bio *bio,
520 struct cgroup_subsys_state *blkcg_css) { return
0; }
> 521 static int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) {
> return 0; }
522 static inline void bio_disassociate_task(struct bio *bio) { }
523 static inline void bio_clone_blkcg_association(struct bio *dst,
524 struct bio *src) { }
525 #endif /* CONFIG_BLK_CGROUP */
526
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: application/gzip
