tree:
git://git.infradead.org/users/hch/block.git blk-accounting-cleanup
head: 426c2d7f0c7434a57d66be949f1c20e87f8f94ac
commit: 6affa383c213074810553ceb6d97493a9404f09c [1/16] block: add disk/bio-based
accounting helpers
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
git checkout 6affa383c213074810553ceb6d97493a9404f09c
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/blk-cgroup.h:23:0,
from include/linux/writeback.h:14,
from include/linux/memcontrol.h:22,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from arch/x86/kernel/asm-offsets.c:13:
include/linux/blkdev.h: In function 'bio_start_io_acct':
> include/linux/blkdev.h:1908:42: error: implicit declaration of
function 'bio_sectors' [-Werror=implicit-function-declaration]
return
disk_start_io_acct(bio->bi_disk, bio_sectors(bio), bio_op(bio));
^~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:100: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1141: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:180: sub-make] Error 2
vim +/bio_sectors +1908 include/linux/blkdev.h
1894
1895 unsigned long disk_start_io_acct(struct gendisk *disk, unsigned int sectors,
1896 unsigned int op);
1897 void disk_end_io_acct(struct gendisk *disk, unsigned int op,
1898 unsigned long start_time);
1899
1900 /**
1901 * bio_start_io_acct - start I/O accounting for bio based drivers
1902 * @bio: bio to start account for
1903 *
1904 * Returns the start time that should be passed back to bio_end_io_acct().
1905 */
1906 static inline unsigned long bio_start_io_acct(struct bio *bio)
1907 {
1908 return disk_start_io_acct(bio->bi_disk, bio_sectors(bio),
bio_op(bio));
1909 }
1910
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org