linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:guest 66/107] include/linux/protected_guest.h:31:64: error: 'false' undeclared
@ 2021-07-31 12:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-31 12:12 UTC (permalink / raw)
  To: Andi Kleen; +Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan

[-- Attachment #1: Type: text/plain, Size: 3014 bytes --]

tree:   https://github.com/intel/tdx.git guest
head:   31ae665a672fa9307b6980ee92041d6f1f1f5310
commit: ba0d282812206d4fd27dcb7aca1c3ba6f820e85a [66/107] x86/tdx: Disable kvmclock in TDX
config: x86_64-randconfig-a011-20210730 (attached as .config)
compiler: gcc-10 (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/ba0d282812206d4fd27dcb7aca1c3ba6f820e85a
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx guest
        git checkout ba0d282812206d4fd27dcb7aca1c3ba6f820e85a
        # save the attached .config 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@intel.com>

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/kvmclock.c:6:
   include/linux/protected_guest.h:31:15: error: unknown type name 'bool'
      31 | static inline bool prot_guest_has(unsigned long flag) { return false; }
         |               ^~~~
   include/linux/protected_guest.h: In function 'prot_guest_has':
>> include/linux/protected_guest.h:31:64: error: 'false' undeclared (first use in this function)
      31 | static inline bool prot_guest_has(unsigned long flag) { return false; }
         |                                                                ^~~~~
   include/linux/protected_guest.h:31:64: note: each undeclared identifier is reported only once for each function it appears in
   In file included from arch/x86/kernel/kvmclock.c:6:
   include/linux/protected_guest.h:31:71: error: control reaches end of non-void function [-Werror=return-type]
      31 | static inline bool prot_guest_has(unsigned long flag) { return false; }
         |                                                                       ^
   cc1: some warnings being treated as errors


vim +/false +31 include/linux/protected_guest.h

40089373e3196e Kuppuswamy Sathyanarayanan 2021-05-12  27  
40089373e3196e Kuppuswamy Sathyanarayanan 2021-05-12  28  #ifdef CONFIG_ARCH_HAS_PROTECTED_GUEST
40089373e3196e Kuppuswamy Sathyanarayanan 2021-05-12  29  #include <asm/protected_guest.h>
40089373e3196e Kuppuswamy Sathyanarayanan 2021-05-12  30  #else
40089373e3196e Kuppuswamy Sathyanarayanan 2021-05-12 @31  static inline bool prot_guest_has(unsigned long flag) { return false; }
40089373e3196e Kuppuswamy Sathyanarayanan 2021-05-12  32  #endif
40089373e3196e Kuppuswamy Sathyanarayanan 2021-05-12  33  

:::::: The code at line 31 was first introduced by commit
:::::: 40089373e3196e12a4e363f3b19bb3a55898480c x86: Introduce generic protected guest abstraction

:::::: TO: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
:::::: CC: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 39506 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-31 12:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-31 12:12 [intel-tdx:guest 66/107] include/linux/protected_guest.h:31:64: error: 'false' undeclared kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).