From: kernel test robot <lkp@intel.com>
To: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org, Andi Kleen <ak@linux.intel.com>
Subject: [intel-tdx:guest 72/113] arch/x86/include/asm/tdx.h:185:12: error: incomplete definition of type 'struct device'
Date: Sat, 28 Aug 2021 08:02:59 +0800 [thread overview]
Message-ID: <202108280853.W2cWN3IO-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4612 bytes --]
tree: https://github.com/intel/tdx.git guest
head: 44e41606b85b08fad5378c876547f8557f835cf6
commit: 3ccbeb49c9e01c731e46e8238cd8851be8365c15 [72/113] x86/tdx: Add device filter support for x86 TDX guest platform
config: i386-randconfig-r001-20210827 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1076082a0d97bd5c16a25ee7cf3dbb6ee4b5a9fe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/tdx/commit/3ccbeb49c9e01c731e46e8238cd8851be8365c15
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout 3ccbeb49c9e01c731e46e8238cd8851be8365c15
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=i386 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 drivers/misc/vmw_balloon.c:20:
In file included from include/linux/io.h:13:
In file included from arch/x86/include/asm/io.h:43:
include/linux/protected_guest.h:52:49: warning: declaration of 'struct device' will not be visible outside of this function [-Wvisibility]
static inline bool prot_guest_authorized(struct device *dev, char *dev_str)
^
include/linux/protected_guest.h:54:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/protected_guest.h:52:49: note: forward declaration of 'struct device'
static inline bool prot_guest_authorized(struct device *dev, char *dev_str)
^
In file included from drivers/misc/vmw_balloon.c:37:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
>> arch/x86/include/asm/tdx.h:185:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
1 warning and 2 errors generated.
--
In file included from arch/x86/kernel/kvm.c:14:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/x86/include/asm/io.h:43:
include/linux/protected_guest.h:54:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
In file included from arch/x86/kernel/kvm.c:16:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
>> arch/x86/include/asm/tdx.h:185:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
2 errors generated.
--
In file included from arch/x86/kernel/cpu/hypervisor.c:27:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
>> arch/x86/include/asm/tdx.h:185:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
In file included from arch/x86/kernel/cpu/hypervisor.c:27:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:9:
include/linux/protected_guest.h:54:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
2 errors generated.
vim +185 arch/x86/include/asm/tdx.h
182
183 static inline bool tdx_guest_authorized(struct device *dev, char *dev_str)
184 {
> 185 return dev->authorized;
186 }
187
---
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: 38020 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [intel-tdx:guest 72/113] arch/x86/include/asm/tdx.h:185:12: error: incomplete definition of type 'struct device'
Date: Sat, 28 Aug 2021 08:02:59 +0800 [thread overview]
Message-ID: <202108280853.W2cWN3IO-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 4713 bytes --]
tree: https://github.com/intel/tdx.git guest
head: 44e41606b85b08fad5378c876547f8557f835cf6
commit: 3ccbeb49c9e01c731e46e8238cd8851be8365c15 [72/113] x86/tdx: Add device filter support for x86 TDX guest platform
config: i386-randconfig-r001-20210827 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1076082a0d97bd5c16a25ee7cf3dbb6ee4b5a9fe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/tdx/commit/3ccbeb49c9e01c731e46e8238cd8851be8365c15
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout 3ccbeb49c9e01c731e46e8238cd8851be8365c15
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=i386 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 drivers/misc/vmw_balloon.c:20:
In file included from include/linux/io.h:13:
In file included from arch/x86/include/asm/io.h:43:
include/linux/protected_guest.h:52:49: warning: declaration of 'struct device' will not be visible outside of this function [-Wvisibility]
static inline bool prot_guest_authorized(struct device *dev, char *dev_str)
^
include/linux/protected_guest.h:54:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/protected_guest.h:52:49: note: forward declaration of 'struct device'
static inline bool prot_guest_authorized(struct device *dev, char *dev_str)
^
In file included from drivers/misc/vmw_balloon.c:37:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
>> arch/x86/include/asm/tdx.h:185:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
1 warning and 2 errors generated.
--
In file included from arch/x86/kernel/kvm.c:14:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/x86/include/asm/io.h:43:
include/linux/protected_guest.h:54:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
In file included from arch/x86/kernel/kvm.c:16:
In file included from include/linux/kvm_para.h:5:
In file included from include/uapi/linux/kvm_para.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
>> arch/x86/include/asm/tdx.h:185:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
2 errors generated.
--
In file included from arch/x86/kernel/cpu/hypervisor.c:27:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:7:
>> arch/x86/include/asm/tdx.h:185:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
In file included from arch/x86/kernel/cpu/hypervisor.c:27:
In file included from arch/x86/include/asm/hypervisor.h:37:
In file included from arch/x86/include/asm/kvm_para.h:9:
include/linux/protected_guest.h:54:12: error: incomplete definition of type 'struct device'
return dev->authorized;
~~~^
include/linux/bitmap.h:13:8: note: forward declaration of 'struct device'
struct device;
^
2 errors generated.
vim +185 arch/x86/include/asm/tdx.h
182
183 static inline bool tdx_guest_authorized(struct device *dev, char *dev_str)
184 {
> 185 return dev->authorized;
186 }
187
---
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: 38020 bytes --]
next reply other threads:[~2021-08-28 0:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-28 0:02 kernel test robot [this message]
2021-08-28 0:02 ` [intel-tdx:guest 72/113] arch/x86/include/asm/tdx.h:185:12: error: incomplete definition of type 'struct device' 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=202108280853.W2cWN3IO-lkp@intel.com \
--to=lkp@intel.com \
--cc=ak@linux.intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=sathyanarayanan.kuppuswamy@linux.intel.com \
/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.