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: x86_64-allnoconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
3393cc4cebf9969db94dc424b7a2b6195589c33b)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 6affa383c213074810553ceb6d97493a9404f09c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 arch/x86/kernel/asm-offsets.c:13:
In file included from include/linux/suspend.h:5:
In file included from include/linux/swap.h:9:
In file included from include/linux/memcontrol.h:22:
In file included from include/linux/writeback.h:14:
In file included from include/linux/blk-cgroup.h:23:
> include/linux/blkdev.h:1908:42: error: implicit declaration of
function 'bio_sectors' [-Werror,-Wimplicit-function-declaration]
return
disk_start_io_acct(bio->bi_disk, bio_sectors(bio), bio_op(bio));
^
1 error generated.
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