[josef-btrfs:for-4.18/block 6/13] include/linux/blk-cgroup.h:832:13: error: 'blkcg_schedule_throttle' defined but not used

[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 for-4.18/block
head:   657e770d4d6e3b03c3d4b96e427b30d6f766e2e2
commit: b5c78af7bc40baa7dd71d1b5fccb78ece59812ba [6/13] blkcg: add generic throttling mechanism
config: sparc-defconfig (attached as .config)
compiler: sparc-linux-gcc (GCC) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout b5c78af7bc40baa7dd71d1b5fccb78ece59812ba
        # save the attached .config to linux build tree
        make.cross ARCH=sparc 

All errors (new ones prefixed by >>):

   In file included from include/linux/blkdev.h:21:0,
                    from include/linux/blk-cgroup.h:21,
                    from include/linux/tracehook.h:54,
                    from arch/sparc/kernel/ptrace_32.c:24:
   include/linux/bio.h:556:55: error: 'struct blkcg_gq' declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
    static int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) { return 0; }
                                                          ^~~~~~~~
   In file included from include/linux/tracehook.h:54:0,
                    from arch/sparc/kernel/ptrace_32.c:24:
>> include/linux/blk-cgroup.h:832:13: error: 'blkcg_schedule_throttle' defined but not used [-Werror=unused-function]
    static void blkcg_schedule_throttle(struct request_queue *q, bool use_memdelay) { }
                ^~~~~~~~~~~~~~~~~~~~~~~
>> include/linux/blk-cgroup.h:831:13: error: 'blkcg_add_delay' defined but not used [-Werror=unused-function]
    static void blkcg_add_delay(struct blkcg_gq *blkg, u64 now, u64 delta) { }
                ^~~~~~~~~~~~~~~
   In file included from include/linux/blkdev.h:21:0,
                    from include/linux/blk-cgroup.h:21,
                    from include/linux/tracehook.h:54,
                    from arch/sparc/kernel/ptrace_32.c:24:
>> include/linux/bio.h:556:12: error: 'bio_associate_blkg' defined but not used [-Werror=unused-function]
    static int bio_associate_blkg(struct bio *bio, struct blkcg_gq *blkg) { return 0; }
               ^~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors

vim +/blkcg_schedule_throttle +832 include/linux/blk-cgroup.h

   828	
   829	static inline bool blkcg_bio_issue_check(struct request_queue *q,
   830						 struct bio *bio) { return true; }
 > 831	static void blkcg_add_delay(struct blkcg_gq *blkg, u64 now, u64 delta) { }
 > 832	static void blkcg_schedule_throttle(struct request_queue *q, bool use_memdelay) { }
   833	static inline void blkcg_maybe_throttle_current(void) {}
   834	

---
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