Re: [axboe-block:for-5.16/passthrough-flag 136/159] fs/fs-writeback.c:1896:15: error: 'struct task_struct' has no member named 'plug'

From: Jens Axboe
Date: Sat Oct 30 2021 - 12:52:37 EST


On 10/30/21 10:24 AM, kernel test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.16/passthrough-flag
> head: 0bf6d96cb8294094ce1e44cbe8cf65b0899d0a3a
> commit: 008f75a20e7072d0840ec323c39b42206f3fa8a0 [136/159] block: cleanup the flush plug helpers
> config: x86_64-randconfig-s022-20211028 (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> reproduce:
> # apt-get install sparse
> # sparse version: v0.6.4-dirty
> # https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?id=008f75a20e7072d0840ec323c39b42206f3fa8a0
> git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
> git fetch --no-tags axboe-block for-5.16/passthrough-flag
> git checkout 008f75a20e7072d0840ec323c39b42206f3fa8a0
> # save the attached .config to linux build tree
> make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):

This got fixed by:

commit 599593a82fc57f5e9453c8ef7420df3206934a0c
Author: Jens Axboe <axboe@xxxxxxxxx>
Date: Fri Oct 22 19:35:45 2021 -0600

sched: make task_struct->plug always defined

it's just that for-5.16/passthrough-flag was forked off before that commit
ended up in for-5.16/block. This report can be ignored.

--
Jens Axboe