[tip:x86/entry 2/19] include/xen/interface/hvm/hvm_op.h:29:5: error: unknown type name 'domid_t'

From: kbuild test robot
Date: Mon Jun 01 2020 - 06:30:28 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/entry
head: 5980d208e5ef28455e9e8b08f6250b443a2f0893
commit: 28447ea4154239025044381144f849ff749ee9ef [2/19] xen: Move xen_setup_callback_vector() definition to include/xen/hvm.h
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
git checkout 28447ea4154239025044381144f849ff749ee9ef
# save the attached .config to linux build tree
make W=1 ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/xen/interface/hvm/params.h:24,
from include/xen/hvm.h:6,
from arch/x86/xen/suspend_hvm.c:5:
>> include/xen/interface/hvm/hvm_op.h:29:5: error: unknown type name 'domid_t'
29 | domid_t domid; /* IN */
| ^~~~~~~
include/xen/interface/hvm/hvm_op.h:33:1: warning: data definition has no type or storage class
33 | DEFINE_GUEST_HANDLE_STRUCT(xen_hvm_param);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
>> include/xen/interface/hvm/hvm_op.h:33:1: error: type defaults to 'int' in declaration of 'DEFINE_GUEST_HANDLE_STRUCT' [-Werror=implicit-int]
include/xen/interface/hvm/hvm_op.h:33:1: warning: parameter names (without types) in function declaration
include/xen/interface/hvm/hvm_op.h:39:5: error: unknown type name 'domid_t'
39 | domid_t domid;
| ^~~~~~~
include/xen/interface/hvm/hvm_op.h:44:1: warning: data definition has no type or storage class
44 | DEFINE_GUEST_HANDLE_STRUCT(xen_hvm_pagetable_dying_t);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/xen/interface/hvm/hvm_op.h:44:1: error: type defaults to 'int' in declaration of 'DEFINE_GUEST_HANDLE_STRUCT' [-Werror=implicit-int]
include/xen/interface/hvm/hvm_op.h:56:5: error: unknown type name 'domid_t'
56 | domid_t domid;
| ^~~~~~~
include/xen/interface/hvm/hvm_op.h:63:1: warning: data definition has no type or storage class
63 | DEFINE_GUEST_HANDLE_STRUCT(xen_hvm_get_mem_type);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/xen/interface/hvm/hvm_op.h:63:1: error: type defaults to 'int' in declaration of 'DEFINE_GUEST_HANDLE_STRUCT' [-Werror=implicit-int]
include/xen/interface/hvm/hvm_op.h:63:1: warning: parameter names (without types) in function declaration
cc1: some warnings being treated as errors

vim +/domid_t +29 include/xen/interface/hvm/hvm_op.h

18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 23
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 24 /* Get/set subcommands: the second argument of the hypercall is a
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 25 * pointer to a xen_hvm_param struct. */
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 26 #define HVMOP_set_param 0
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 27 #define HVMOP_get_param 1
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 28 struct xen_hvm_param {
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 @29 domid_t domid; /* IN */
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 30 uint32_t index; /* IN */
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 31 uint64_t value; /* IN/OUT */
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 32 };
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 @33 DEFINE_GUEST_HANDLE_STRUCT(xen_hvm_param);
18f19aa62a267f Jeremy Fitzhardinge 2010-05-14 34

:::::: The code at line 29 was first introduced by commit
:::::: 18f19aa62a267f2f759e278018f1032adf4c3774 xen: Add support for HVM hypercalls.

:::::: TO: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
:::::: CC: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip