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

From: kernel test robot
Date: Mon Feb 12 2024 - 00:18:51 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
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Max-Kellermann/include-add-missing-includes/20240212-072756
base: next-20240209
patch link: https://lore.kernel.org/r/20240211231518.349442-4-max.kellermann%40ionos.com
patch subject: [PATCH v4 03/35] include: reduce header dependencies by using "*_types.h"
config: arm-defconfig (https://download.01.org/0day-ci/archive/20240212/202402121320.iojukTeD-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240212/202402121320.iojukTeD-lkp@xxxxxxxxx/reproduce)

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: https://lore.kernel.org/oe-kbuild-all/202402121320.iojukTeD-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from drivers/mtd/chips/cfi_probe.c:19:
In file included from include/linux/mtd/cfi.h:13:
>> include/linux/mtd/flashchip.h:16:10: fatal error: 'linux/wait_types.h' file not found
#include <linux/wait_types.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.


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

9
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>
17

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki