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

Re: [PATCH] xen/public: fix flexible array definitions


  • To: Juergen Gross <jgross@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Tue, 25 Jul 2023 17:06:01 +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=OMQNM4VLCi7n21BjBDs1ywkoV83r40LGs7LFx/Eczuo=; b=meR9CQHeTPxaXQD3BBV+2RArzDcqmIC/YAHnOb21BvUBx+2PMmt1nJC5306J+xueKhvhGsKKCd2xcOFgolk0tYc/gC5aj2GoZNECf4U6nj9/PEuMZdtvRGKWLdz4ze+vWZsNnwFuVXffRosmrR84A9Xz2PHuR9t1jnRiN+dAZ6F0D9UwGThNl79sV3k2BWIZFbd9R/PXt/3Z5cmkOHSXm8VjYR9b0UEX0BemO7rnXUqJ1Vy60UGbeninQ5spbF8HakkOF9XgBhoRRR0bUsG8DMSBp5iLT648yIFXZ0lajqjARszShVyEQnfpMknf+L/ommDbiAfVdSbUflPT5ieHhg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f+iNdBAp1KWD97WGNYl1i0bkSJm4R5FaBJiG0PPIB2DLSRkNIkVLekJSHMi9v6QH6n3VdnvlPeRCgGfrwNNPQGnln+2H5sW4Xec1BmaWt2yzT2UMroMwo8ENq0wRqtvi028pTjGBcoFo/saKzNlnyjHvIfoVpVUr/H0tPz5ZV/yL4yazL5Eqn8XQbAxsrm8KZ79mCWDcTiOz7MzRfOtlBVeqxX4VKuiKTuR32gtMjHrXZSdAgcrcDWOKZaV+fcgK6UrwgxJ+dOR6tMPfc3VzgCnEQY++aa67RGFnitNjyBHFvRkZ0S8JlYxLnm1uN09XV2AqnJEMKCs5n0iPwmD2VQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Delivery-date: Tue, 25 Jul 2023 16:06:33 +0000
  • Ironport-data: A9a23:ue5dp6oP1fPj7V7aKjr2OpqhfK5eBmIHZBIvgKrLsJaIsI4StFCzt garIBmCO6yJNmf2fIx2PY3k8hgO6pPWyoVkGwU6rCphQSIXo5uZCYyVIHmrMnLJJKUvbq7FA +Y2MYCccZ9uHhcwgj/3b9ANeFEljfngqoLUUbKCYWYpA1c/Ek/NsDo788YhmIlknNOlNA2Ev NL2sqX3NUSsnjV5KQr40YrawP9UlKq04GpwUmAWP6gR5weBzSRNVfrzGInqR5fGatgMdgKFb 76rIIGRpgvx4xorA9W5pbf3GmVirmn6ZFXmZtJ+AsBOszAazsAA+v9T2Mk0MC+7vw6hjdFpo OihgLTrIesf0g8gr8xGO/VQO3kW0aSrY9YrK1Dn2SCY5xWun3cBX5yCpaz5VGEV0r8fPI1Ay RAXADALZTWTjc+Y+beyWM512MINCs3aBZxK7xmMzRmBZRonabbqZvyToPN9gnI3jM0IGuvCb c0EbzYpdA7HfxBEJlYQDtQ5gfusgX78NTZfrTp5p4JuuzSVkFM3jeeraYWPEjCJbZw9ckKwj 2TK5WnmRDodM8SS02Gt+XOwnO7f2yj8Xer+EZXhr6A03wzDljV75Bs+dgCRrOOFqU6CQ+1FD hI5pAAqiLkj3Rn+JjX6d1jiyJKehTYeVMBXCPYS8xyWx+zf5APxLngJSHtNZcIrsOcyRCc2z RmZktXxHzttvbaJD3WH+d+pQSiaPCEUKSoOYHECRA5cut37+ths1FTIU8ppF7OzgpvtAzbsz juWrS84wbIOkcoM0Kb99lfC696xmqX0oscOzl2/dgqYAslRP+ZJu6TABYDn0Mt9
  • Ironport-hdrordr: A9a23:050f6K0hoSmBiRJXf40uFwqjBJkkLtp133Aq2lEZdPU1SL38qy nKpp536faaslossR0b9uxoQZPwOE80lqQFg7X5X43DYOCOggLBEGgF1+XfKlbbak7DH4BmtJ uIRJIObOEYXWIQsS8j2njCLz/7+qjgzEl0v5a4856wd3ATV0i/1XYCNjqm
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 25/07/2023 2:55 pm, Juergen Gross wrote:
> Flexible arrays in public headers can be problematic with some
> compilers.
>
> Replace them with arr[XEN_FLEX_ARRAY_DIM] in order to avoid compilation
> errors.
>
> This includes arrays defined as "arr[1]", as seen with a recent Linux
> kernel [1].
>
> [1]: https://bugzilla.kernel.org/show_bug.cgi?id=217693
>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>



 


Rackspace

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