* [josef-btrfs:current-work 2/3] include/linux/bio.h:521:55: warning: 'struct blkcg_gq' declared inside parameter list will not be visible outside of this definition or declaration
@ 2018-02-02 14:26 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-02-02 14:26 UTC (permalink / raw)
To: Josef Bacik; +Cc: kbuild-all, linux-btrfs
[-- Attachment #1: Type: text/plain, Size: 2382 bytes --]
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: x86_64-randconfig-x018-201804 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
git checkout 4ece201cfafab298cd89083567403a53f0971635
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from include/linux/blkdev.h:21:0,
from block//partitions/check.h:3,
from block//partitions/check.c:22:
>> include/linux/bio.h:521:55: warning: 'struct blkcg_gq' declared inside parameter list will not be visible outside of this definition or declaration
static int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) { return 0; }
^~~~~~~~
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 26032 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-02 14:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-02 14:26 [josef-btrfs:current-work 2/3] include/linux/bio.h:521:55: warning: 'struct blkcg_gq' declared inside parameter list will not be visible outside of this definition or declaration kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).