Re: [PATCH v4 03/35] include: reduce header dependencies by using "*_types.h"

From: kernel test robot
Date: Mon Feb 12 2024 - 00:18:41 EST

Hi Max,

kernel test robot noticed the following build errors:

[auto build test ERROR on next-20240209]
[cannot apply to drm-misc/drm-misc-next media-tree/master mkp-scsi/for-next linus/master v6.8-rc4 v6.8-rc3 v6.8-rc2 v6.8-rc4]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in]

base: next-20240209
patch link:
patch subject: [PATCH v4 03/35] include: reduce header dependencies by using "*_types.h"
config: arm64-defconfig (
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes:

All errors (new ones prefixed by >>):

In file included from include/linux/mtd/cfi.h:13,
from drivers/mtd/chips/cfi_probe.c:19:
>> include/linux/mtd/flashchip.h:16:10: fatal error: linux/wait_types.h: No such file or directory
16 | #include <linux/wait_types.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

vim +16 include/linux/mtd/flashchip.h

10 /* For spinlocks. sched.h includes spinlock.h from whichever directory it
11 * happens to be in - so we don't have to care whether we're on 2.2, which
12 * has asm/spinlock.h, or 2.4, which has linux/spinlock.h
13 */
14 #include <linux/sched.h>
15 #include <linux/mutex_types.h>
> 16 #include <linux/wait_types.h>

0-DAY CI Kernel Test Service