[peterz-queue:x86/wip.ibt 9/15] arch/x86/include/asm/ibt.h:19:15: error: unknown type name 'bool'

From: kernel test robot
Date: Fri Dec 03 2021 - 06:26:36 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/wip.ibt
head: 80bc7f2a129848b0885cf214fda77f623ba2f5f9
commit: 2d27d6fd4034bc446885ee6bd234df59e2b11cdb [9/15] x86/linkage: Add ENDBR to SYM_FUNC_START*()
config: x86_64-randconfig-r003-20211203 (https://download.01.org/0day-ci/archive/20211203/202112031911.oFNVAdph-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?id=2d27d6fd4034bc446885ee6bd234df59e2b11cdb
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue x86/wip.ibt
git checkout 2d27d6fd4034bc446885ee6bd234df59e2b11cdb
# save the config file to linux build tree
mkdir build_dir
make W=1 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>

Note: the peterz-queue/x86/wip.ibt HEAD 80bc7f2a129848b0885cf214fda77f623ba2f5f9 builds fine.
It only hurts bisectability.

All errors (new ones prefixed by >>):

In file included from arch/x86/include/asm/linkage.h:7,
from include/linux/instruction_pointer.h:5,
from include/linux/bottom_half.h:5,
from net/ipv4/tcp_ipv4.c:50:
>> arch/x86/include/asm/ibt.h:19:15: error: unknown type name 'bool'
19 | static inline bool is_endbr(const void *addr)
| ^~~~


vim +/bool +19 arch/x86/include/asm/ibt.h

7446adeec86172 Peter Zijlstra 2021-11-22 14
7446adeec86172 Peter Zijlstra 2021-11-22 15 /*
7446adeec86172 Peter Zijlstra 2021-11-22 16 * A bit convoluted, but matches both endbr32 and endbr64 without
7446adeec86172 Peter Zijlstra 2021-11-22 17 * having either as literal in the text.
7446adeec86172 Peter Zijlstra 2021-11-22 18 */
7446adeec86172 Peter Zijlstra 2021-11-22 @19 static inline bool is_endbr(const void *addr)
7446adeec86172 Peter Zijlstra 2021-11-22 20 {
7446adeec86172 Peter Zijlstra 2021-11-22 21 unsigned int val = ~*(unsigned int *)addr;
7446adeec86172 Peter Zijlstra 2021-11-22 22 val |= 0x01000000U;
7446adeec86172 Peter Zijlstra 2021-11-22 23 return val == ~0xfa1e0ff3;
7446adeec86172 Peter Zijlstra 2021-11-22 24 }
7446adeec86172 Peter Zijlstra 2021-11-22 25

:::::: The code at line 19 was first introduced by commit
:::::: 7446adeec8617255600933e8da5e7daf20eb2263 x86: Base IBT bits

:::::: TO: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
:::::: CC: Peter Zijlstra <peterz@xxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx