lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107312045.KjFpUTeR-lkp@intel.com>
Date:   Sat, 31 Jul 2021 20:12:52 +0800
From:   kernel test robot <lkp@...el.com>
To:     Andi Kleen <ak@...ux.intel.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Kuppuswamy Sathyanarayanan 
        <sathyanarayanan.kuppuswamy@...ux.intel.com>
Subject: [intel-tdx:guest 66/107] include/linux/protected_guest.h:31:64:
 error: 'false' undeclared

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@...el.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@...ux.intel.com>
:::::: CC: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@...ux.intel.com>

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

Download attachment ".config.gz" of type "application/gzip" (39506 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ