|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH for-4.6] xen/public: arm: Use __typeof__ rather than typeof
Hi Jan, On 27/10/2015 08:07, Jan Beulich wrote: On 26.10.15 at 19:08, <julien.grall@xxxxxxxxxx> wrote:On 23/10/15 15:55, Ian Campbell wrote:On Fri, 2015-10-23 at 15:44 +0100, Julien Grall wrote: Agree .q would suffice only and only if we replace all the usage of .p by .q with a cast. Otherwise, accessing .p just after .q may be implementation-defined (see [1]). Anyway, as you sent a patch to drop get_xen_guest_handle, I will see to implement Ian Jackson suggestion. I.e:
typedef union {
uint64_t actual;
type *for_check }
#define set_xen_guest_handle_raw(hnd, val) \
do { \
hnd.actual = (uint64_t)(val); \
sizeof((val) == ((hnd).for_check)
}
Regards,
[1] http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_283.htm
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |