summaryrefslogtreecommitdiff
path: root/block/fops.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-10-22 19:35:45 -0600
committerJens Axboe <axboe@kernel.dk>2021-10-22 19:35:45 -0600
commit599593a82fc57f5e9453c8ef7420df3206934a0c (patch)
treec0a812ea62a84844475fb63db62839728f444f53 /block/fops.c
parent8bdf7b3fe1f48a2c1c212d4685903bba01409c0e (diff)
downloadlwn-599593a82fc57f5e9453c8ef7420df3206934a0c.tar.gz
lwn-599593a82fc57f5e9453c8ef7420df3206934a0c.zip
sched: make task_struct->plug always defined
If CONFIG_BLOCK isn't set, then it's an empty struct anyway. Just make it generally available, so we don't break the compile: kernel/sched/core.c: In function ‘sched_submit_work’: kernel/sched/core.c:6346:35: error: ‘struct task_struct’ has no member named ‘plug’ 6346 | blk_flush_plug(tsk->plug, true); | ^~ kernel/sched/core.c: In function ‘io_schedule_prepare’: kernel/sched/core.c:8357:20: error: ‘struct task_struct’ has no member named ‘plug’ 8357 | if (current->plug) | ^~ kernel/sched/core.c:8358:39: error: ‘struct task_struct’ has no member named ‘plug’ 8358 | blk_flush_plug(current->plug, true); | ^~ Reported-by: Nathan Chancellor <nathan@kernel.org> Fixes: 008f75a20e70 ("block: cleanup the flush plug helpers") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/fops.c')
0 files changed, 0 insertions, 0 deletions