[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/treewide: More typeof() -> auto conversions


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Fri, 13 Feb 2026 14:40:18 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 4.158.2.129) smtp.rcpttodomain=citrix.com smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=arm.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yh61IHmoaj3NYO0VR+OOJDPjYEykwB85LGcyau9DzXg=; b=rpX1/00S1CkCkXu238BZAUBmxLz4K96GEQ0m2dYRZZR5preLq0AFRHy3LRnMo7TqTy9KghzQ32Q2cdJPa4kYVST2h78StTWuBDZrrz2Am8IDwOq0UJlgyYUeTXU9eMcoiWW2FXbqjUcAOlMh0+Ml4vvhNrth+y8XJpQPK1Lxr3/d/59ndjI4OAn0y0SW/Tj/yqJS+GeXkFs7KhDk3D+o3IdYJk2X1KBcYK+FeVepxnMfWXv+uHp+w7WYU2u4SqVvRKiprcZP6LnvdZHUbzsWZ+x/2RGBWOyYTJx0FQovN5DABQDk2C0cUdIMiw2eVDIYiDOoehDpvLjuwQL2Xv2M9A==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yh61IHmoaj3NYO0VR+OOJDPjYEykwB85LGcyau9DzXg=; b=n7znGVpIiGWde6Bg3Z7S9pLvl2bB937VhNm+R1BmJ+neRkGuoXUPD+32wDvNnzoGmCu9G14ZYdK9+63uTgf4V5qNrxA+e5UsCtIH7TpVN2J7AdA04UkkhsKquubFRsgrSpJe8qECqVM1JeNC2NPGr7V61uNobaWfQdj1+uzZiLYWdpmUg+nUcip0BOc1Opj6TVfsiInJxw5ECxpaCyDsvBxzRmk/EqynJDyYslLN2Ld79czkTIQuwdb0PfkJSm1o7WCFrXPlVtXwKJ/GY7OfF70Y7RSekjzRwNXFPYZVoB3HlFoO+haJfsOMm9RYYkb6mUqVRnonzlMnrRInoN/HNw==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=pass; b=KAGKFJ8v5MCaiUH1cdAAUXi/qpQqMIeDtAdwdv5kqViJ4DNUa5ZdvN5CCYZMVrHbympZoC0hS3rNG/Tge5//98q/JKVXyEzb4Y5jPr7dSsQD+zShlSdJERLcbkgRR/uXG4XlnUXgv3pICGLZSXHHq3Qr/rfiDtvquSlzp7gMjSxaDqfPMfW+SKQf1vP8UrGMAB/vgM599SP6BIot//4plWCMTw28+z+2Nmb6pPAAj430If7kQKWoEJN015zrohZ93H00Yk2ofi6p9UGXqhTOoxfQbQWPz4wFpkczgW1hXBzofiMho5YrEFBJCYQpZHHBkETOfhvIrT/InArYi0gUsg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jpcYAwoKZF3gRyREN4Qyp79QPaR2E/IDmaG9yEcHp7xdnRk3XdDxuPkO8wGGYFR9nEFU7eS+DD3nxy+0sS/ju+evMRalpH9OshGrVUgsFOZrGMvEXOIE9ysDlv3NGvnONFfGAYQGSiHS8slCLkX8YjB4Q3bIB5Ijpl/ct7N7+SXl1p13aswZGKKeX4m0e2YOBXLAATcFUqF/O8ddGgcDRKKniszNPlwjhb3AM2yObzcA+YI0+O6zXTwngyzpqizog931oqtTpuvQopzjmNyuzt8FOA/hJ7vYYEnRL/V/3ms3XDXwRtUUNdlCnMIb0+LZeg5xACheWBfS2u5KhRZZzg==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 13 Feb 2026 14:41:44 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Thread-index: AQHcj3ZxSUXrVeHXGEa6KFGEAF7ktrWAzl6A
  • Thread-topic: [PATCH] xen/treewide: More typeof() -> auto conversions

Hi Andrew,

> On 27 Jan 2026, at 11:18, Andrew Cooper <andrew.cooper3@xxxxxxxxxx> wrote:
> 
> All of these are simple cases of using typeof() to avoid multiple parameter
> evaluation.  Using auto avoids multiple textural expansion also.
> 
> No functional change.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>

Compiles and boot on arm:

For arm:
Acked-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

> ---
> CC: Anthony PERARD <anthony.perard@xxxxxxxxxx>
> CC: Michal Orzel <michal.orzel@xxxxxxx>
> CC: Jan Beulich <jbeulich@xxxxxxxx>
> CC: Julien Grall <julien@xxxxxxx>
> CC: Roger Pau Monné <roger.pau@xxxxxxxxxx>
> CC: Stefano Stabellini <sstabellini@xxxxxxxxxx>
> CC: Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
> CC: Bertrand Marquis <bertrand.marquis@xxxxxxx>
> 
> There's an oddity with SMCCC.  4 or fewer args strictly use unsigned long for
> ouput types where 5 or more use a dynamic type.  I've left it as-was, but it
> looks wrong.

I will have a look at that, thanks for the notice.

Bertrand

> 
> https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2287583251
> ---
> xen/arch/arm/include/asm/smccc.h            | 26 +++----
> xen/arch/x86/include/asm/alternative-call.h | 84 ++++++++++-----------
> xen/common/bitops.c                         |  2 +-
> xen/include/xen/bitops.h                    |  4 +-
> xen/include/xen/nospec.h                    |  4 +-
> xen/include/xen/self-tests.h                |  4 +-
> 6 files changed, 62 insertions(+), 62 deletions(-)
> 
> diff --git a/xen/arch/arm/include/asm/smccc.h 
> b/xen/arch/arm/include/asm/smccc.h
> index 441b3ab65dee..29f1128bc283 100644
> --- a/xen/arch/arm/include/asm/smccc.h
> +++ b/xen/arch/arm/include/asm/smccc.h
> @@ -129,7 +129,7 @@ struct arm_smccc_res {
>     register unsigned long  r3 ASM_REG(3)
> 
> #define __declare_arg_1(a0, a1, res)                        \
> -    typeof(a1) __a1 = (a1);                                 \
> +    auto __a1 = (a1);                                       \
>     struct arm_smccc_res    *___res = (res);                \
>     register unsigned long  r0 ASM_REG(0) = (uint32_t)(a0); \
>     register unsigned long  r1 ASM_REG(1) = __a1;           \
> @@ -137,8 +137,8 @@ struct arm_smccc_res {
>     register unsigned long  r3 ASM_REG(3)
> 
> #define __declare_arg_2(a0, a1, a2, res)                    \
> -    typeof(a1) __a1 = (a1);                                 \
> -    typeof(a2) __a2 = (a2);                                 \
> +    auto __a1 = (a1);                                       \
> +    auto __a2 = (a2);                                       \
>     struct arm_smccc_res    *___res = (res);                \
>     register unsigned long  r0 ASM_REG(0) = (uint32_t)(a0); \
>     register unsigned long  r1 ASM_REG(1) = __a1;           \
> @@ -146,9 +146,9 @@ struct arm_smccc_res {
>     register unsigned long  r3 ASM_REG(3)
> 
> #define __declare_arg_3(a0, a1, a2, a3, res)                \
> -    typeof(a1) __a1 = (a1);                                 \
> -    typeof(a2) __a2 = (a2);                                 \
> -    typeof(a3) __a3 = (a3);                                 \
> +    auto __a1 = (a1);                                       \
> +    auto __a2 = (a2);                                       \
> +    auto __a3 = (a3);                                       \
>     struct arm_smccc_res    *___res = (res);                \
>     register unsigned long  r0 ASM_REG(0) = (uint32_t)(a0); \
>     register unsigned long  r1 ASM_REG(1) = __a1;           \
> @@ -156,24 +156,24 @@ struct arm_smccc_res {
>     register unsigned long  r3 ASM_REG(3) = __a3
> 
> #define __declare_arg_4(a0, a1, a2, a3, a4, res)        \
> -    typeof(a4) __a4 = (a4);                             \
> +    auto __a4 = (a4);                                   \
>     __declare_arg_3(a0, a1, a2, a3, res);               \
>     register unsigned long r4 ASM_REG(4) = __a4
> 
> #define __declare_arg_5(a0, a1, a2, a3, a4, a5, res)    \
> -    typeof(a5) __a5 = (a5);                             \
> +    auto __a5 = (a5);                                   \
>     __declare_arg_4(a0, a1, a2, a3, a4, res);           \
> -    register typeof(a5) r5 ASM_REG(5) = __a5
> +    register auto r5 ASM_REG(5) = __a5
> 
> #define __declare_arg_6(a0, a1, a2, a3, a4, a5, a6, res)    \
> -    typeof(a6) __a6 = (a6);                                 \
> +    auto __a6 = (a6);                                       \
>     __declare_arg_5(a0, a1, a2, a3, a4, a5, res);           \
> -    register typeof(a6) r6 ASM_REG(6) = __a6
> +    register auto r6 ASM_REG(6) = __a6
> 
> #define __declare_arg_7(a0, a1, a2, a3, a4, a5, a6, a7, res)    \
> -    typeof(a7) __a7 = (a7);                                     \
> +    auto __a7 = (a7);                                           \
>     __declare_arg_6(a0, a1, a2, a3, a4, a5, a6, res);           \
> -    register typeof(a7) r7 ASM_REG(7) = __a7
> +    register auto r7 ASM_REG(7) = __a7
> 
> #define ___declare_args(count, ...) __declare_arg_ ## count(__VA_ARGS__)
> #define __declare_args(count, ...)  ___declare_args(count, __VA_ARGS__)
> diff --git a/xen/arch/x86/include/asm/alternative-call.h 
> b/xen/arch/x86/include/asm/alternative-call.h
> index b22c10c32283..27024797f584 100644
> --- a/xen/arch/x86/include/asm/alternative-call.h
> +++ b/xen/arch/x86/include/asm/alternative-call.h
> @@ -111,7 +111,7 @@ struct alt_call {
> })
> 
> #define alternative_vcall1(func, arg) ({           \
> -    typeof(arg) v1_ = (arg);                       \
> +    auto v1_ = (arg);                              \
>     ALT_CALL_ARG(v1_, 1);                          \
>     ALT_CALL_NO_ARG2;                              \
>     (void)sizeof(func(arg));                       \
> @@ -119,15 +119,15 @@ struct alt_call {
> })
> 
> #define alternative_call1(func, arg) ({            \
> -    typeof(arg) v1_ = (arg);                       \
> +    auto v1_ = (arg);                              \
>     ALT_CALL_ARG(v1_, 1);                          \
>     ALT_CALL_NO_ARG2;                              \
>     alternative_callN(1, typeof(func(arg)), func); \
> })
> 
> #define alternative_vcall2(func, arg1, arg2) ({           \
> -    typeof(arg1) v1_ = (arg1);                            \
> -    typeof(arg2) v2_ = (arg2);                            \
> +    auto v1_ = (arg1);                                    \
> +    auto v2_ = (arg2);                                    \
>     ALT_CALL_ARG(v1_, 1);                                 \
>     ALT_CALL_ARG(v2_, 2);                                 \
>     ALT_CALL_NO_ARG3;                                     \
> @@ -136,8 +136,8 @@ struct alt_call {
> })
> 
> #define alternative_call2(func, arg1, arg2) ({            \
> -    typeof(arg1) v1_ = (arg1);                            \
> -    typeof(arg2) v2_ = (arg2);                            \
> +    auto v1_ = (arg1);                                    \
> +    auto v2_ = (arg2);                                    \
>     ALT_CALL_ARG(v1_, 1);                                 \
>     ALT_CALL_ARG(v2_, 2);                                 \
>     ALT_CALL_NO_ARG3;                                     \
> @@ -145,9 +145,9 @@ struct alt_call {
> })
> 
> #define alternative_vcall3(func, arg1, arg2, arg3) ({    \
> -    typeof(arg1) v1_ = (arg1);                           \
> -    typeof(arg2) v2_ = (arg2);                           \
> -    typeof(arg3) v3_ = (arg3);                           \
> +    auto v1_ = (arg1);                                   \
> +    auto v2_ = (arg2);                                   \
> +    auto v3_ = (arg3);                                   \
>     ALT_CALL_ARG(v1_, 1);                                \
>     ALT_CALL_ARG(v2_, 2);                                \
>     ALT_CALL_ARG(v3_, 3);                                \
> @@ -157,9 +157,9 @@ struct alt_call {
> })
> 
> #define alternative_call3(func, arg1, arg2, arg3) ({     \
> -    typeof(arg1) v1_ = (arg1);                           \
> -    typeof(arg2) v2_ = (arg2);                           \
> -    typeof(arg3) v3_ = (arg3);                           \
> +    auto v1_ = (arg1);                                   \
> +    auto v2_ = (arg2);                                   \
> +    auto v3_ = (arg3);                                   \
>     ALT_CALL_ARG(v1_, 1);                                \
>     ALT_CALL_ARG(v2_, 2);                                \
>     ALT_CALL_ARG(v3_, 3);                                \
> @@ -169,10 +169,10 @@ struct alt_call {
> })
> 
> #define alternative_vcall4(func, arg1, arg2, arg3, arg4) ({ \
> -    typeof(arg1) v1_ = (arg1);                              \
> -    typeof(arg2) v2_ = (arg2);                              \
> -    typeof(arg3) v3_ = (arg3);                              \
> -    typeof(arg4) v4_ = (arg4);                              \
> +    auto v1_ = (arg1);                                      \
> +    auto v2_ = (arg2);                                      \
> +    auto v3_ = (arg3);                                      \
> +    auto v4_ = (arg4);                                      \
>     ALT_CALL_ARG(v1_, 1);                                   \
>     ALT_CALL_ARG(v2_, 2);                                   \
>     ALT_CALL_ARG(v3_, 3);                                   \
> @@ -183,10 +183,10 @@ struct alt_call {
> })
> 
> #define alternative_call4(func, arg1, arg2, arg3, arg4) ({  \
> -    typeof(arg1) v1_ = (arg1);                              \
> -    typeof(arg2) v2_ = (arg2);                              \
> -    typeof(arg3) v3_ = (arg3);                              \
> -    typeof(arg4) v4_ = (arg4);                              \
> +    auto v1_ = (arg1);                                      \
> +    auto v2_ = (arg2);                                      \
> +    auto v3_ = (arg3);                                      \
> +    auto v4_ = (arg4);                                      \
>     ALT_CALL_ARG(v1_, 1);                                   \
>     ALT_CALL_ARG(v2_, 2);                                   \
>     ALT_CALL_ARG(v3_, 3);                                   \
> @@ -198,11 +198,11 @@ struct alt_call {
> })
> 
> #define alternative_vcall5(func, arg1, arg2, arg3, arg4, arg5) ({ \
> -    typeof(arg1) v1_ = (arg1);                                    \
> -    typeof(arg2) v2_ = (arg2);                                    \
> -    typeof(arg3) v3_ = (arg3);                                    \
> -    typeof(arg4) v4_ = (arg4);                                    \
> -    typeof(arg5) v5_ = (arg5);                                    \
> +    auto v1_ = (arg1);                                            \
> +    auto v2_ = (arg2);                                            \
> +    auto v3_ = (arg3);                                            \
> +    auto v4_ = (arg4);                                            \
> +    auto v5_ = (arg5);                                            \
>     ALT_CALL_ARG(v1_, 1);                                         \
>     ALT_CALL_ARG(v2_, 2);                                         \
>     ALT_CALL_ARG(v3_, 3);                                         \
> @@ -214,11 +214,11 @@ struct alt_call {
> })
> 
> #define alternative_call5(func, arg1, arg2, arg3, arg4, arg5) ({  \
> -    typeof(arg1) v1_ = (arg1);                                    \
> -    typeof(arg2) v2_ = (arg2);                                    \
> -    typeof(arg3) v3_ = (arg3);                                    \
> -    typeof(arg4) v4_ = (arg4);                                    \
> -    typeof(arg5) v5_ = (arg5);                                    \
> +    auto v1_ = (arg1);                                            \
> +    auto v2_ = (arg2);                                            \
> +    auto v3_ = (arg3);                                            \
> +    auto v4_ = (arg4);                                            \
> +    auto v5_ = (arg5);                                            \
>     ALT_CALL_ARG(v1_, 1);                                         \
>     ALT_CALL_ARG(v2_, 2);                                         \
>     ALT_CALL_ARG(v3_, 3);                                         \
> @@ -231,12 +231,12 @@ struct alt_call {
> })
> 
> #define alternative_vcall6(func, arg1, arg2, arg3, arg4, arg5, arg6) ({ \
> -    typeof(arg1) v1_ = (arg1);                                          \
> -    typeof(arg2) v2_ = (arg2);                                          \
> -    typeof(arg3) v3_ = (arg3);                                          \
> -    typeof(arg4) v4_ = (arg4);                                          \
> -    typeof(arg5) v5_ = (arg5);                                          \
> -    typeof(arg6) v6_ = (arg6);                                          \
> +    auto v1_ = (arg1);                                                  \
> +    auto v2_ = (arg2);                                                  \
> +    auto v3_ = (arg3);                                                  \
> +    auto v4_ = (arg4);                                                  \
> +    auto v5_ = (arg5);                                                  \
> +    auto v6_ = (arg6);                                                  \
>     ALT_CALL_ARG(v1_, 1);                                               \
>     ALT_CALL_ARG(v2_, 2);                                               \
>     ALT_CALL_ARG(v3_, 3);                                               \
> @@ -248,12 +248,12 @@ struct alt_call {
> })
> 
> #define alternative_call6(func, arg1, arg2, arg3, arg4, arg5, arg6) ({  \
> -    typeof(arg1) v1_ = (arg1);                                          \
> -    typeof(arg2) v2_ = (arg2);                                          \
> -    typeof(arg3) v3_ = (arg3);                                          \
> -    typeof(arg4) v4_ = (arg4);                                          \
> -    typeof(arg5) v5_ = (arg5);                                          \
> -    typeof(arg6) v6_ = (arg6);                                          \
> +    auto v1_ = (arg1);                                                  \
> +    auto v2_ = (arg2);                                                  \
> +    auto v3_ = (arg3);                                                  \
> +    auto v4_ = (arg4);                                                  \
> +    auto v5_ = (arg5);                                                  \
> +    auto v6_ = (arg6);                                                  \
>     ALT_CALL_ARG(v1_, 1);                                               \
>     ALT_CALL_ARG(v2_, 2);                                               \
>     ALT_CALL_ARG(v3_, 3);                                               \
> diff --git a/xen/common/bitops.c b/xen/common/bitops.c
> index e46ea1d3ecf8..859a4ca5c131 100644
> --- a/xen/common/bitops.c
> +++ b/xen/common/bitops.c
> @@ -147,7 +147,7 @@ static void __init test_for_each_set_bit(void)
>  * A copy of @val is taken internally.
>  */
> #define for_each_set_bit_reverse(iter, val)             \
> -    for ( typeof(val) __v = (val); __v; __v = 0 )       \
> +    for ( auto __v = (val); __v; __v = 0 )              \
>         for ( unsigned int (iter);                      \
>               __v && ((iter) = fls_g(__v) - 1, true);   \
>               __clear_bit(iter, &__v) )
> diff --git a/xen/include/xen/bitops.h b/xen/include/xen/bitops.h
> index a4d31ec02a7c..24882fb4822d 100644
> --- a/xen/include/xen/bitops.h
> +++ b/xen/include/xen/bitops.h
> @@ -299,7 +299,7 @@ static always_inline attr_const unsigned int 
> fls64(uint64_t x)
>  * A copy of @val is taken internally.
>  */
> #define for_each_set_bit(iter, val)                     \
> -    for ( typeof(val) __v = (val); __v; __v = 0 )       \
> +    for ( auto __v = (val); __v; __v = 0 )              \
>         for ( unsigned int (iter);                      \
>               __v && ((iter) = ffs_g(__v) - 1, true);   \
>               __v &= __v - 1 )
> @@ -310,7 +310,7 @@ static always_inline attr_const unsigned int 
> fls64(uint64_t x)
>  */
> #define multiple_bits_set(x)                    \
>     ({                                          \
> -        typeof(x) _v = (x);                     \
> +        auto _v = (x);                          \
>         (_v & (_v - 1)) != 0;                   \
>     })
> 
> diff --git a/xen/include/xen/nospec.h b/xen/include/xen/nospec.h
> index c8167a8a245c..0e474145b476 100644
> --- a/xen/include/xen/nospec.h
> +++ b/xen/include/xen/nospec.h
> @@ -51,8 +51,8 @@ static inline unsigned long 
> array_index_mask_nospec(unsigned long index,
>  */
> #define array_index_nospec(index, size)                                 \
> ({                                                                      \
> -    typeof(index) _i = (index);                                         \
> -    typeof(size) _s = (size);                                           \
> +    auto _i = (index);                                                  \
> +    auto _s = (size);                                                   \
>     unsigned long _mask = array_index_mask_nospec(_i, _s);              \
>                                                                         \
>     BUILD_BUG_ON(sizeof(_i) > sizeof(long));                            \
> diff --git a/xen/include/xen/self-tests.h b/xen/include/xen/self-tests.h
> index c57cceb3b962..c4937e781f66 100644
> --- a/xen/include/xen/self-tests.h
> +++ b/xen/include/xen/self-tests.h
> @@ -18,7 +18,7 @@
>  */
> #define COMPILE_CHECK(fn, val, res)                                     \
>     do {                                                                \
> -        typeof(fn(val)) real = fn(val);                                 \
> +        auto real = fn(val);                                            \
>                                                                         \
>         if ( !__builtin_constant_p(real) )                              \
>             BUILD_ERROR("'" STR(fn(val)) "' not compile-time constant"); \
> @@ -36,7 +36,7 @@
>  */
> #define RUNTIME_CHECK(fn, val, res)                     \
>     do {                                                \
> -        typeof(fn(val)) real = fn(HIDE(val));           \
> +        auto real = fn(HIDE(val));                      \
>                                                         \
>         if ( real != (res) )                            \
>             panic("%s: %s(%s) expected %u, got %u\n",   \
> -- 
> 2.39.5
> 


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.