[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/7] xen: implement byteswap.h
- To: Lin Liu <lin.liu@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Fri, 22 Oct 2021 15:00:57 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=OKlQwR57eOPgWtz7lCdOmogpzFIwemmD6XTnjE4GD3g=; b=SAc5vFISciuMR/+csgge620rU6vf6SILx/hfFvCSGKIDKaPJtrqfE7aLzg7meA33a9XfSIilInVRL9lv2J0Nd083dvGO4fxICP0TZN5/lx1P935zJioRwVYII3Wkhph/UsTpKmieLLSnmvwKi2K/t0JZ8qg3zvPQ8Ud4GgMBYwvmGrKdl2CkikFnkL0YN2JTCcya4dcuuuQKaIc/JYIgLS6a7vAF3+rHsN6dMIILOtPK9Nt40hCBU1+r4BuMP6t6yNQT9fL6Stpmk/yTIq4FnCwltfVv8RIyJBeqYH1s91SODQjNjSC9+9yA9XFz9YXJ1qwB8LTtRsXAwunDAIwnTA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WgVY6bS4XcRA4yQj/eYM81/4l5lN5blG0PKJl0u9qvxovi9WHu4Hg7ibwOkN6hmG0zCRW0tmU4ii69hKOzMt/TX/qTjMiz+tlWTFpeO/nJJ2V2SGmN4V4/lrg1jM8GwJwv9rfGYiYieyiQY2G6VgdnlJ/6PtGsVx9txy7LfcREYTiCkXzf2qclQjHXnvBVmtdwYhfA/KDxicxRD5sIeYtmMoMPzDwhc9P7VHNUWoBdyktuYGlEvLrCMNMaPmtpEc/Abx47+/AomqRbGQFr1CY9nHG+RwTyFc+WZUGcv/UKDlieC88A0I4sK8dCUm1A1++FYD84oGAQLnPUPPgxmqTA==
- Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
- Cc: George Dunlap <george.dunlap@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Fri, 22 Oct 2021 14:01:24 +0000
- Ironport-data: A9a23:Q0xndK4RfOaYBizi4QooLgxRtKLAchMFZxGqfqrLsTDasY5as4F+v mQfDzuEa/zZZWHzKop2OY+1pE5TuJKDx99lHAU9rixmHi5G8cbLO4+Ufxz6V8+wwmwvb67FA +E2MISowBUcFyeEzvuV3zyIQUBUjclkfJKlYAL/En03FVAMpBsJ00o5wrdh2NQw2rBVPivW0 T/Mi5yHULOa82Yc3lI8s8pvfzs24ZweEBtB1rAPTagjUG32zhH5P7pGTU2FFFPqQ5E8IwKPb 72rIIdVXI/u10xF5tuNyt4Xe6CRK1LYFVDmZnF+A8BOjvXez8CbP2lS2Pc0MC9qZzu1c99Z4 d5EucezdBYVIor0wd5MWARXHxFEMvgTkFPHCSDXXc27ykTHdz3nwul0DVFwNoodkgp1KTgQr 7pCcmlLN03dwbLtqF64YrAEasALBc/nJo4A/FpnyinUF60OSpHfWaTao9Rf2V/cg+gTQK2PP 5NCNlKDajzGTTBOKmU6CKk3p+mR3kihXGZhl1as8P9fD2/7k1UqjemF3MDuUt6ASNhRn02Yj nnb5Gm/CRYfXPSe1jit4n+qnvXIny7wRMQVDrLQ3u5nhhify3IeDDUSVECnur+ph0imQdVdJ kcIvC00osAa60iDXtT7GRqirx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g8sceALOsnbusQ8zAXPh9KJiC9I/b1qy nxppkmPH/P6Qr4WBkb6LW90dq7MAzhHPlOkPUs1NaZLXTbUQ6TQr2KgrGSuwEIdxeOkdK1kJ 0QCZSWa+eAfWSS7/yKmTVQeuxIqLLskNHK9JTjJjVWPGVXgslbnnZE422gYytLrWd9dPgE/d anl7F6T23KQwVoUi33PAhJY8Hz4/nw0L72ax8PABAqrCGIkDOT8bb/VzyVxA0XXT9jyaortT GtqX232oyT99WAjjPM3W7a6Jpb3PPn19t4HcSJzuwYMC/lhAqEbJloH5eCoDc2iuey70tCqq iBnz4Qe+BIr1/BdGC8phXgnyHmzTYV8nfnjWSVhHPyyPaJDA4SOo5kv8Z0YxHZ400vsJVXy6 RQxV+UsJJREFfpgDn9z8KgbWArqmOE5V4Z1cIDhX1WVoUTLJVLq5YEwU9TGJAcWArn9YEcFv V0Bs203ocWTbqjVQGagoBT+q3oYpxqdS32BnTq+/blnQS+pUoJjHfxn6ck7zA9HJFUcegM2w 2LCNUvqFh0dL5iUUtKPpZ2fSKGMB2+ffvyChPnHb3GLtBNB5ufke+83F0KjNvaD6DgiqFCwa j8bA==
- Ironport-sdr: BoGEFxgYLxA7TKholMG4TKWeZp6yIy92zlH9nv2at2lmyv8lNZho8v7OJEf3vyXsIASnIIA5py Dytgn3Fv4Hh//Be/wVRLqcQX+ep8JWZ+P7AGsW5T8owM4xKk6wlViWtQ5JBtGB4UV66ZbfcsGA DimbUFaQ4r/E5qEFDT3eAygi+GD3cWF6ZBZNLxy7OYbEVBx4TqkMwhxPKu5yfTymGkF/kB58kE 04fbd+xJj/d+jJlf0xzM58k4OE/1lFgtT7ultxxS0bjE66DFELiJtEmhvjxgaIadfSNYJzCAKk uI+uQQxZ6ywmwTI1JxEpV4GY
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 22/10/2021 11:47, Lin Liu wrote:
> diff --git a/xen/include/xen/compiler.h b/xen/include/xen/compiler.h
> index 696c7eb89e..68f28082a5 100644
> --- a/xen/include/xen/compiler.h
> +++ b/xen/include/xen/compiler.h
> @@ -179,4 +179,16 @@
> # define CLANG_DISABLE_WARN_GCC_COMPAT_END
> #endif
>
> +#if (!defined(__clang__) && (__GNUC__ < 10))
This too lost my feedback.
It needs to be #ifndef __has_builtin because otherwise a random GCC 10
build I have fails with:
/local/security/xen.git/xen/include/xen/byteswap.h:6:19: error: missing
binary operator before token "("
6 | #if !__has_builtin(__builtin_bswap16)
I suspect it was a build of GCC 10 before __has_builtin() support was
added, but either way, we should be predicating on __has_builtin itself,
not version guesswork.
~Andrew
|