[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/3] xen/types: Rework stdint vs __{u,s}$N types
- To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Wed, 28 Jun 2023 12:28:15 +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=jWf9FE5JByjue4Vxq37Qy8ZDTnEca4oZWiP9ciZ1/ps=; b=QV9XDMgBwzDGy9k3uafCYOLWC6eUzWh9JWXcBPHmMUmFCgxkzfre5LqLXg81eHFlgj/OL8S06UHY2Taxz+4ncDyiHuzJdFD3XMXJYSK9LYIWR0Lk+p9fqLH8COJLROLReqY7Vg3aiMeqpaf2MM7Dp6Bzmz/RDfr78+KndQ+3iZH18LJLISXRlgqMH5g7Jxr0MRVhGeIQyClstJlx8LhNtb59co73OmdhTMR2hxhltCpa7l9d0ewJDkk1zjCO2/EvG/UjntIOp3irnY0qI6tYD977Xgznhpa8aN++tMh1TLWhTLPUbWibWWve7HYYpqUCjLX3ptwXErJ6iAGGHo1nYA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vs+JKBRpaP/EyEvoGf+O9/BnUIXt1RVy6typMLNaVcIARXoKr06PRV5i0nNkaiRoXBH1FpLS50ltQo7T4vwyKBkPeQXRZ4TKtIZd5nnOfYo+FIK8NAOZg9TWSwcusD0gwDFs3nlrjC8NJZu+ltB/QPsYsD6ZFIg3/2xBo0BwofYUKFUcdlLZtjjDNXlD7yL6k7aHEsFvjeq4RSFapTpio2ItA0ld1YN+6vUk63btXGfSnNg1Oxc2ddJs8AYP2qd4vbTTQ9Z0ENz0O0XyXnzQXRRwI3i6XO9ZNwME7ms2zHv10KYrGQX6LXFoWqXfAivdLJM10eX3clKZWm5DWotRHw==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxx>, Wei Liu <wl@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Bob Eshleman <bobbyeshleman@xxxxxxxxx>, Alistair Francis <alistair.francis@xxxxxxx>, Connor Davis <connojdavis@xxxxxxxxx>, Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>, Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Roberto Bagnara <roberto.bagnara@xxxxxxxxxxx>
- Delivery-date: Wed, 28 Jun 2023 11:28:31 +0000
- Ironport-data: A9a23:OjwOTamibo9mACfT4Fk5DwHo5gxPJkRdPkR7XQ2eYbSJt1+Wr1Gzt xIbCGjXaP7ZYzDyKYsnPIu+8U8CvJ+Eyd9mQAc5qSk3FCMWpZLJC+rCIxarNUt+DCFhoGFPt JxCN4aafKjYaleG+39B55C49SEUOZmgH+a6U6icfHgqH2eIcQ954Tp7gek1n4V0ttawBgKJq LvartbWfVSowFaYCEpNg064gE0p5K2aVA8w5ARkPqgV5g+GzRH5MbpETU2PByqgKmVrNrbSq 9brlNmR4m7f9hExPdKp+p6TnpoiG+O60aCm0xK6aoD66vRwjnVaPpUTbZLwXXx/mTSR9+2d/ f0W3XCGpaXFCYWX8AgVe0Ew/yiTpsSq8pefSZS0mZT7I0Er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RV0nKv6VK1MiROb5q9jChPvdEGM7705O0nj3sduwgoSKaCSl4g==
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 28/06/2023 12:08 pm, Roger Pau Monné wrote:
> On Tue, Jun 27, 2023 at 08:56:18AM +0100, Andrew Cooper wrote:
>> Xen uses the stdint types. Rearrange the types headers to define the
>> compatibility __{u,s}$N types in terms of the stdint types, not the other way
>> around.
>>
>> All all supported compilers on architectures other than x86 support the
>> stdint
> Duplicated "all".
Yeah, already noticed and adjusted.
>
>> diff --git a/xen/include/xen/stdint.h b/xen/include/xen/stdint.h
>> new file mode 100644
>> index 000000000000..4cf82790f196
>> --- /dev/null
>> +++ b/xen/include/xen/stdint.h
>> @@ -0,0 +1,33 @@
>> +/* SPDX-License-Identifier: GPL-2.0-only */
>> +#ifndef __XEN_STDINT_H__
>> +#define __XEN_STDINT_H__
>> +
>> +#ifndef __INT8_TYPE__ /* GCC <= 4.4 */
> I'm possibly confused, but don't you want to use __INT8_TYPE__ if it's
> defined, and hence this should be an ifdef instead of an ifndef?
You're right. I was too tired while putting this together.
Originally, this was going to be
#ifndef __INT8_TYPE__
#define __INT8_TYPE__ ...
#endif
typedef ...;
but decided to get rid of the intermediate and use a plain if/else.
I'll fix.
~Andrew
|