tree:
git://git.infradead.org/users/hch/block.git block-fs.h-cleanup
head: 48ca5ac96538719d7dd6557513b98d6c505a423e
commit: 853dbdee39f151c64a01e921b49f651251adcf69 [5/8] fs: move block-related definitions
out of fs.h
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 853dbdee39f151c64a01e921b49f651251adcf69
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the hch-block/block-fs.h-cleanup HEAD 48ca5ac96538719d7dd6557513b98d6c505a423e
builds fine.
It only hurts bisectibility.
All errors (new 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 'blk_io_schedule':
include/linux/blkdev.h:1857:26: error: 'sysctl_hung_task_timeout_secs' undeclared
(first use in this function)
unsigned long timeout = sysctl_hung_task_timeout_secs * HZ / 2;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/blkdev.h:1857:26: note: each undeclared identifier is reported only once for
each function it appears in
include/linux/blkdev.h: At top level:
> include/linux/blkdev.h:1931:2: error: expected identifier or
'(' before ':' token
}:
^
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 +1931 include/linux/blkdev.h
1922
1923 extern struct super_block *blockdev_superblock;
1924 static inline bool sb_is_blkdev_sb(struct super_block *sb)
1925 {
1926 return sb == blockdev_superblock;
1927 }
1928 #else
1929 void invalidate_bdev(struct block_device *bdev)
1930 {
1931 }:
1932 static inline void bd_forget(struct inode
*inode)
1933 {
1934 }
1935 static inline bool sb_is_blkdev_sb(struct super_block *sb)
1936 {
1937 return false;
1938 }
1939 #endif /* CONFIG_BLOCK */
1940
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org