[cgroup:review-cgroup-btrfs-metadata-v2 5/5] include/linux/blk-cgroup.h:736:24: error: passing argument 3 of 'submit_bh_blkcg_css' from incompatible pointer type

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git review-cgroup-btrfs-metadata-v2
head:   5fcd5b307c005767bf759179da8f346defd6f328
commit: 5fcd5b307c005767bf759179da8f346defd6f328 [5/5] btrfs: ensure that metadata and flush are issued from the root cgroup
config: i386-randconfig-x013-201741 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout 5fcd5b307c005767bf759179da8f346defd6f328
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

   In file included from include/linux/backing-dev.h:16:0,
                    from fs/btrfs/ctree.h:29,
                    from fs/btrfs/check-integrity.c:99:
   fs/btrfs/check-integrity.c: In function 'btrfsic_submit_bh':
>> include/linux/blk-cgroup.h:736:24: error: passing argument 3 of 'submit_bh_blkcg_css' from incompatible pointer type [-Werror=incompatible-pointer-types]
    #define blkcg_root_css ((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
                           ^
>> fs/btrfs/check-integrity.c:2744:44: note: in expansion of macro 'blkcg_root_css'
      return submit_bh_blkcg_css(op, op_flags, blkcg_root_css);
                                               ^~~~~~~~~~~~~~
   In file included from fs/btrfs/check-integrity.c:93:0:
   include/linux/buffer_head.h:201:5: note: expected 'struct buffer_head *' but argument is of type 'struct cgroup_subsys_state *'
    int submit_bh_blkcg_css(int op, int op_flags, struct buffer_head *bh,
        ^~~~~~~~~~~~~~~~~~~
   fs/btrfs/check-integrity.c:2744:10: error: too few arguments to function 'submit_bh_blkcg_css'
      return submit_bh_blkcg_css(op, op_flags, blkcg_root_css);
             ^~~~~~~~~~~~~~~~~~~
   In file included from fs/btrfs/check-integrity.c:93:0:
   include/linux/buffer_head.h:201:5: note: declared here
    int submit_bh_blkcg_css(int op, int op_flags, struct buffer_head *bh,
        ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from include/linux/backing-dev.h:16:0,
                    from fs//btrfs/ctree.h:29,
                    from fs//btrfs/check-integrity.c:99:
   fs//btrfs/check-integrity.c: In function 'btrfsic_submit_bh':
>> include/linux/blk-cgroup.h:736:24: error: passing argument 3 of 'submit_bh_blkcg_css' from incompatible pointer type [-Werror=incompatible-pointer-types]
    #define blkcg_root_css ((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
                           ^
   fs//btrfs/check-integrity.c:2744:44: note: in expansion of macro 'blkcg_root_css'
      return submit_bh_blkcg_css(op, op_flags, blkcg_root_css);
                                               ^~~~~~~~~~~~~~
   In file included from fs//btrfs/check-integrity.c:93:0:
   include/linux/buffer_head.h:201:5: note: expected 'struct buffer_head *' but argument is of type 'struct cgroup_subsys_state *'
    int submit_bh_blkcg_css(int op, int op_flags, struct buffer_head *bh,
        ^~~~~~~~~~~~~~~~~~~
   fs//btrfs/check-integrity.c:2744:10: error: too few arguments to function 'submit_bh_blkcg_css'
      return submit_bh_blkcg_css(op, op_flags, blkcg_root_css);
             ^~~~~~~~~~~~~~~~~~~
   In file included from fs//btrfs/check-integrity.c:93:0:
   include/linux/buffer_head.h:201:5: note: declared here
    int submit_bh_blkcg_css(int op, int op_flags, struct buffer_head *bh,
        ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/submit_bh_blkcg_css +736 include/linux/blk-cgroup.h

3e252066 block/blk-cgroup.h         Vivek Goyal 2009-12-04  735  
496d5e75 include/linux/blk-cgroup.h Tejun Heo   2015-05-22 @736  #define blkcg_root_css	((struct cgroup_subsys_state *)ERR_PTR(-EINVAL))
496d5e75 include/linux/blk-cgroup.h Tejun Heo   2015-05-22  737  

:::::: The code at line 736 was first introduced by commit
:::::: 496d5e7560dbb84399dbd92316fc33857aa83900 blkcg: add blkcg_root_css

:::::: TO: Tejun Heo <tj@xxxxxxxxxx>
:::::: CC: Jens Axboe <axboe@xxxxxx>

---
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 ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [Monitors]

  Powered by Linux