[gvt-linux:topic/gvt-xengt 5/31] include/xen/arm/interface.h:22:35: error: unknown type name '__guest_handle_ulong'

Zhang, Pei pei.zhang at intel.com
Wed Dec 6 01:06:53 UTC 2017


Hi Fengguang,

Thanks to point this. A patch cooked with the miss type defined. 

*********  ***** 
BRs, 
Pei Zhang

> -----Original Message-----
> From: Wu, Fengguang
> Sent: Tuesday, December 5, 2017 5:08 PM
> To: Zhang, Pei <pei.zhang at intel.com>
> Cc: kbuild-all at 01.org; Wang, Zhenyu Z <zhenyu.z.wang at intel.com>; Zhu,
> Libo <libo.zhu at intel.com>; Xu, Terrence <terrence.xu at intel.com>; intel-
> gvt-dev at lists.freedesktop.org; Zhenyu Wang <zhenyuw at linux.intel.com>; He,
> Min <min.he at intel.com>
> Subject: [gvt-linux:topic/gvt-xengt 5/31]
> include/xen/arm/interface.h:22:35: error: unknown type name
> '__guest_handle_ulong'
> 
> tree:   https://github.com/01org/gvt-linux.git topic/gvt-xengt
> head:   5b44ccabbd3e04c7fc2b20fa4daf2d9313dc25d9
> commit: b46df238cd2b5a3d35855f0510e50a58a3b8db1d [5/31] arch/x86/xen:
> add infrastruction in xen to support gvt
> config: arm64-defconfig (attached as .config)
> compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-
> tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         git checkout b46df238cd2b5a3d35855f0510e50a58a3b8db1d
>         # save the attached .config to linux build tree
>         make.cross ARCH=arm64
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from arch/arm64/include/asm/xen/interface.h:1:0,
>                     from include/xen/interface/xen.h:30,
>                     from include/xen/xen.h:29,
>                     from arch/arm64/xen/../../arm/xen/enlighten.c:1:
> >> include/xen/arm/interface.h:22:35: error: unknown type name
> '__guest_handle_ulong'
>     #define GUEST_HANDLE(name)        __guest_handle_ ## name
>                                       ^
>    include/xen/interface/memory.h:261:5: note: in expansion of macro
> 'GUEST_HANDLE'
>         GUEST_HANDLE(ulong) pfn_list;
>         ^~~~~~~~~~~~
> 
> vim +/__guest_handle_ulong +22 include/xen/arm/interface.h
> 
> 2fbadc30 Marc Zyngier 2016-12-02  14
> 2fbadc30 Marc Zyngier 2016-12-02  15  #define __DEFINE_GUEST_HANDLE(name,
> type) \
> 2fbadc30 Marc Zyngier 2016-12-02  16  	typedef struct { union { type
> *p; uint64_aligned_t q; }; }  \
> 2fbadc30 Marc Zyngier 2016-12-02  17          __guest_handle_ ## name
> 2fbadc30 Marc Zyngier 2016-12-02  18
> 2fbadc30 Marc Zyngier 2016-12-02  19  #define
> DEFINE_GUEST_HANDLE_STRUCT(name) \
> 2fbadc30 Marc Zyngier 2016-12-02  20  	__DEFINE_GUEST_HANDLE(name,
> struct name)
> 2fbadc30 Marc Zyngier 2016-12-02  21  #define DEFINE_GUEST_HANDLE(name)
> __DEFINE_GUEST_HANDLE(name, name)
> 2fbadc30 Marc Zyngier 2016-12-02 @22  #define GUEST_HANDLE(name)
> __guest_handle_ ## name
> 2fbadc30 Marc Zyngier 2016-12-02  23
> 
> :::::: The code at line 22 was first introduced by commit
> :::::: 2fbadc3002c5f172d20aa2e7e48920c5f14ed11f arm/arm64: xen: Move
> shared architecture headers to include/xen/arm
> 
> :::::: TO: Marc Zyngier <marc.zyngier at arm.com>
> :::::: CC: Stefano Stabellini <sstabellini at kernel.org>
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology
> Center
> https://lists.01.org/pipermail/kbuild-all                   Intel
> Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xen-add-definition-of-__guest_handle_ulong.patch
Type: application/octet-stream
Size: 858 bytes
Desc: 0001-xen-add-definition-of-__guest_handle_ulong.patch
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20171206/69ef2eef/attachment.obj>


More information about the intel-gvt-dev mailing list