[linux-stable-rc:linux-5.10.y 7936/7987] include/linux/types.h:30:33: error: two or more data types in declaration specifiers

From: kernel test robot
Date: Sat Aug 20 2022 - 19:42:34 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.10.y
head: 879ffc7efcbe48e91264fd3bd3ec52cbcf69114c
commit: 56660dd43bbfcd7b0a6872f3ceb0c924fe2f5af9 [7936/7987] um: seed rng using host OS rng
config: um-kunit_defconfig (https://download.01.org/0day-ci/archive/20220821/202208210710.fFNAH58i-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=56660dd43bbfcd7b0a6872f3ceb0c924fe2f5af9
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.10.y
git checkout 56660dd43bbfcd7b0a6872f3ceb0c924fe2f5af9
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=um SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

cc1: warning: arch/um/include/uapi: No such file or directory [-Wmissing-include-dirs]
In file included from arch/um/include/shared/irq_user.h:10,
from arch/um/include/shared/os.h:12,
from arch/um/kernel/umid.c:9:
>> include/linux/stddef.h:11:9: error: expected identifier before numeric constant
11 | false = 0,
| ^~~~~
>> include/linux/types.h:30:33: error: two or more data types in declaration specifiers
30 | typedef _Bool bool;
| ^~~~
In file included from arch/um/include/shared/os.h:17,
from arch/um/kernel/umid.c:9:
include/linux/types.h:30:1: warning: useless type name in empty declaration
30 | typedef _Bool bool;
| ^~~~~~~


vim +30 include/linux/types.h

^1da177e4c3f415 Linus Torvalds 2005-04-16 29
6e2182874324727 Richard Knutsson 2006-09-30 @30 typedef _Bool bool;
6e2182874324727 Richard Knutsson 2006-09-30 31

:::::: The code at line 30 was first introduced by commit
:::::: 6e21828743247270d09a86756a0c11702500dbfb [PATCH] Generic boolean

:::::: TO: Richard Knutsson <ricknu-0@xxxxxxxxxxxxxx>
:::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxx>

--
0-DAY CI Kernel Test Service
https://01.org/lkp