[josef-btrfs:blk-iolatency 1/13] include/linux/bio.h:556:55: warning: 'struct blkcg_gq' declared inside parameter list will not be visible outside of this definition or declaration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-next.git blk-iolatency
head:   657e770d4d6e3b03c3d4b96e427b30d6f766e2e2
commit: 03766852a022b0ff5f8c4b73f40ef205a36d095e [1/13] block: add bi_blkg to the bio for cgroups
config: x86_64-randconfig-x011-201820 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        git checkout 03766852a022b0ff5f8c4b73f40ef205a36d095e
        # 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:556: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: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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux