[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

[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 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: .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