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: nds32-allnoconfig (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
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
git checkout 6affa383c213074810553ceb6d97493a9404f09c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/backing-dev.h:15,
from fs//ramfs/inode.c:32:
include/linux/blkdev.h: In function 'bio_start_io_acct':
> include/linux/blkdev.h:1908:31: error: dereferencing pointer to
incomplete type 'struct bio'
1908 | return
disk_start_io_acct(bio->bi_disk, bio_sectors(bio), bio_op(bio));
| ^~
include/linux/blkdev.h:1908:42: error: implicit declaration of function
'bio_sectors' [-Werror=implicit-function-declaration]
1908 | return disk_start_io_acct(bio->bi_disk, bio_sectors(bio), bio_op(bio));
| ^~~~~~~~~~~
> include/linux/blkdev.h:1908:60: error: implicit declaration of
function 'bio_op' [-Werror=implicit-function-declaration]
1908 | return
disk_start_io_acct(bio->bi_disk, bio_sectors(bio), bio_op(bio));
| ^~~~~~
include/linux/blkdev.h: In function 'bio_end_io_acct':
> include/linux/blkdev.h:1918:9: warning: 'return' with a
value, in function returning void [-Wreturn-type]
1918 | return
disk_end_io_acct(bio->bi_disk, bio_op(bio), start_time);
| ^~~~~~~~~~~~~~~~
include/linux/blkdev.h:1916:20: note: declared here
1916 | static inline void bio_end_io_acct(struct bio *bio, unsigned long start_time)
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +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
1911 /**
1912 * bio_end_io_acct - end I/O accounting for bio based drivers
1913 * @bio: bio to end account for
1914 * @start: start time returned by bio_start_io_acct()
1915 */
1916 static inline void bio_end_io_acct(struct bio *bio, unsigned long start_time)
1917 {
1918 return disk_end_io_acct(bio->bi_disk, bio_op(bio),
start_time);
1919 }
1920
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org