linux-next: build failure after merge of the block tree
Subsystems (2)
Hi all,
After merging the block tree, today's linux-next build (x86_64 allnoconfig) failed like this:
In file included from include/linux/blk-cgroup.h:23,
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)
1857 | unsigned long timeout = sysctl_hung_task_timeout_secs * HZ / 2;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~Caused by commit
e6249cdd46e4 ("block: add blk_io_schedule() for avoiding task hung in sync dio")
linux/sched/sysctl.h was not included since CONFIG_BLOCK is not defined. I have applied the following patch for today.
From: Stephen Rothwell <[email protected]>
Date: Thu, 14 May 2020 18:48:32 +1000
Subject: [PATCH] fix for "block: add blk_io_schedule() for avoiding task hung in sync dio"
--- include/linux/blkdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/blkdev.h +1 -1
@@ -4,6 +4,7 @@#include <linux/sched.h> #include <linux/sched/clock.h> +#include <linux/sched/sysctl.h> #ifdef CONFIG_BLOCK
@@ -27,7 +28,6 @@#include <linux/percpu-refcount.h> #include <linux/scatterlist.h> #include <linux/blkzoned.h> -#include <linux/sched/sysctl.h> struct module ;struct scsi_ioctl_command ;
Signature · 5 lines
2.26.2 -- Cheers, Stephen Rothwell
Jens Axboe
maintainerQuoted 16 lines · Stephen Rothwell
Hi all,
After merging the block tree, today's linux-next build (
x86_64allnoconfig) failed like this:In file included from
include/linux/blk-cgroup.h:23,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) 1857 | unsigned long timeout = sysctl_hung_task_timeout_secs * HZ / 2; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 6 lines
Caused by commit
e6249cdd46e4("block: addblk_io_schedule()for avoiding task hung in sync dio")
linux/sched/sysctl.hwas not included sinceCONFIG_BLOCKis not defined. I have applied the following patch for today.
Sorry about that, it's fixed in the current tree.
Signature · 1 line
Jens Axboe