All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [intel-tdx:guest 66/107] include/linux/protected_guest.h:31:64: error: 'false' undeclared
Date: Sat, 31 Jul 2021 20:12:52 +0800	[thread overview]
Message-ID: <202107312045.KjFpUTeR-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3070 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(a)lists.01.org

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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Andi Kleen <ak@linux.intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Kuppuswamy Sathyanarayanan 
	<sathyanarayanan.kuppuswamy@linux.intel.com>
Subject: [intel-tdx:guest 66/107] include/linux/protected_guest.h:31:64: error: 'false' undeclared
Date: Sat, 31 Jul 2021 20:12:52 +0800	[thread overview]
Message-ID: <202107312045.KjFpUTeR-lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-07-31 12:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-31 12:12 kernel test robot [this message]
2021-07-31 12:12 ` [intel-tdx:guest 66/107] include/linux/protected_guest.h:31:64: error: 'false' undeclared kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202107312045.KjFpUTeR-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.