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

Re: Clang-format configuration discussion - pt 2


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Mon, 27 Nov 2023 14:58:09 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org 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=armh.onmicrosoft.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=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=cAu89ANbHzEV7k01Su4fwv3RwUPabQ2F6UdywE5EixY=; b=bVbWS6+CWQrpoZRjHpj4qYlLtipJ4Poq0lwgXPWNfWieiJelYQSuVpo6w1My0VDFPdDcRWgqnYSUURFzGu0WFpGKE9gij90kRrZpM7buQyhovP9ru4HEgCIK3O+idBHnq8701hpaM54ckl11iiNNtWUF6z0nwe+4eN0aEaEQnwV+oS8aPh8ZDMXUOYgE1zacZAG0/Orf8tugX6X95sIpYfjHRh+MaG4e/aP7agt9wmNq7ETeFQdtniDmu4aNKlWb5YbyMVUizaFVydE+DMNFlI6wTvaVRF64gTUX21OpESYrcAYQ92TdY8f0SudiqrKmSQ1flQ2gktuLIbFgMWslPQ==
  • 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=cAu89ANbHzEV7k01Su4fwv3RwUPabQ2F6UdywE5EixY=; b=HtL0vGyBj/kqk0dFXISz2BKUCdDAK7XZ/e6T/Xma/RZlo59QuwiXGk2HVRVN3PbMnsSfb1ucb4wj8FGNiQsVBukrUgvv+y5lHtwMWghahrCbpMYr1i2Rq8iKinU+Wt3a7f3W568nlZlb9iZLyT/E2CMB4CFhbXcxxAG8oMx9i549yxZnxxsMbuvS4gAuSe+5W993tlL93L83Po10jIv0yqEmiTD9m8oh6Ny+KoKhSFVu3uUvH4aSeoMa51dF03aSRkGNmYQlVvZIetwMqvLOsAmC8vCzD7Rw7Mb4vduOdF7BVY5eFVT5j5LpXDDx4DPuxg/TdAVUeu0aLHNQ8cY9JQ==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=Xr20kSnK2z/kmSc72j4EZW6iBpxkZUoDe5rfxDBDqk8pKqhJ2Pvk6ECQi9gKJ0/D61lX/xhNz/3AIQ130iRTH4oQ82p8FZaHylxJRRoAUYhFVEIyHuHln0tA4JIsCZnLVnrc/iIiEppER36fuRhT+O859PpYf/+i4Tx6QmIzxD0388O1a+aNRfOYrXrczPlnDqTkpbqjLk6zyAr9j7Bxs2MasfSFNiAajUcf5qJVuL7TRiCFbbi5o3/DQpFuKBt1VIYnruheYyvzgqKRICcmihrMO/xO9N5IQ/fKe0gY8VAhGjVDsJ7etgiOwPF2/7aKBRZ8iTzsmH6KJZ4GWcdOeg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZcOvw+rozkt/h0OSJ68Vs3F1KBdo59b2G5Cm7CRm5pwl/0t/ITRgxW3ae7uoPExKp+oHCVucxLFjFYEP5hAR+2/CzREN3SDzb7eJ14v0io+5YJS8bvLk3XLfSh3xSEIk6f5A36jK9ZFwSulBxI0dB+zc84LPlV+pvcir0qW2ax6Xg56bx28kM+X2QrkamRFfUgL0jxEDDMV1/Cu5q0hApaU7IcM6xW8/gvdKWcbaXVp0rpOgHjK0vkQ45D9RMZAr01Yn1lBL8EgkKHPp7V9xxxbetZxokSgMb6zAkIGB+At5iKGJTealCjTGQvuvDg6r7fFperXQKBVzPbgsAd6tfw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Michal Orzel <Michal.Orzel@xxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 27 Nov 2023 14:59:06 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHaHhwDfni7SbjBtk6S7YLD/w4HebCJbICAgAAi9QCABIyNgIAAK/0A
  • Thread-topic: Clang-format configuration discussion - pt 2


> On 27 Nov 2023, at 12:20, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> 
> On 24.11.2023 15:52, Luca Fancellu wrote:
>>> On 24 Nov 2023, at 12:47, Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>> On 23.11.2023 15:47, Luca Fancellu wrote:
>>>> Let’s continue the discussion about clang-format configuration, this is 
>>>> part 2, previous discussions are:
>>>> 
>>>> - 
>>>> https://lists.xenproject.org/archives/html/xen-devel/2023-11/msg00498.html
>>>> 
>>>> You can find the serie introducing clang-format here:
>>>> https://patchwork.kernel.org/project/xen-devel/cover/20231031132304.2573924-1-luca.fancellu@xxxxxxx/
>>>> and there is also a patch linked to my gitlab account where you can find 
>>>> the output for the hypervisor code.
>>>> 
>>>> For a full list of configurables and to find the possible values for them, 
>>>> please refer to this page:
>>>> https://clang.llvm.org/docs/ClangFormatStyleOptions.html
>>>> 
>>>> --------------------------------------------------------------------------------------------------------------------------------------------------
>>>> 
>>>> Our coding style doesn’t mention anything about alignment, shall we add a 
>>>> new section?
>>>> I can send patches when we reach agreement on each of these rules.
>>>> 
>>>> 
>>>> QualifierAlignment: Custom
>>>> QualifierOrder: ['static', 'inline', 'const', 'volatile', 'type']
>>>> 
>>>> ---
>>>> For “QualifierAlignment” I chose Custom in order to apply in 
>>>> “QualifierOrder” an order for the
>>>> qualifiers that match the current codebase, we could specify also “Leave” 
>>>> in order to keep
>>>> them as they are.
>>> 
>>> Where do attributes go in this sequence?
>> 
>> I think function declaration/definition and variables.
> 
> How does this relate to my question? I asked about the sequence of elements
> listed for QualifierOrder:, where attributes don't appear at all right now.

Sorry, I misread your question, attributes are like invisible for the tool, 
they can be placed wherever between
each of the QualifierOrder items.

> 
>>>> --------------------------------------------------------------------------------------------------------------------------------------------------
>>>> 
>>>> AlignAfterOpenBracket: Align
>>>> 
>>>> ---
>>>> This one is to align function parameters that overflows the line length, I 
>>>> chose to align them
>>>> to the open bracket to match the current codebase (hopefully)
>>>> 
>>>> e.g.:
>>>> someLongFunction(argument1,
>>>>                               argument2);
>>> 
>>> The above matches neither of the two generally permitted styles:
>>> 
>>>   someLongFunction(argument1,
>>>                    argument2);
>>> 
>>>   someLongFunction(
>>>       argument1,
>>>       argument2);
>>> 
>>> Then again from its name I would infer this isn't just about function
>>> arguments?
>> 
>> I think it applies to parameters and arguments of functions and macro, given 
>> the description in the docs.
>> 
>> I see your two snippets above but I’ve always found at least on arm a 
>> predominance of
>> the style above for functions, so arguments aligned after the opening 
>> bracket, for macros
>> there is a mix.
> 
> The latter "above" refers to which form exactly? The one you originally
> spelled out, or the former of what my reply had?

In my reply I was referring to the one I originally spelled out.

> 
>> I might be wrong though and so another opinion from another maintainer would 
>> help.
>> 
>> In any case we can choose among many value: 
>> https://clang.llvm.org/docs/ClangFormatStyleOptions.html#alignafteropenbracket,
>> but when we do so, we need to stick to one permitted style only, the tool 
>> don’t allow to specify more than one.
> 
> On top of my earlier reply yet another reason perhaps that this tool then
> won't really fit our intended use.

ok

> 
>>>> --------------------------------------------------------------------------------------------------------------------------------------------------
>>>> 
>>>> AlignArrayOfStructures: Left
>>>> 
>>>> ---
>>>> “When using initialization for an array of structs aligns the fields into 
>>>> columns."
>>>> It’s important to say that even if we specify “None”, it is going to 
>>>> format the data structure anyway,
>>>> I choose left, but clearly I’m open to suggestions.
>>> 
>>> You don't say in which way it re-formats such constructs.
>> 
>> Sure, taking as example an array of structure, xen/drivers/video/modelines.h,
>> 
>> With AlignArrayOfStructures: None we have this below.
>> 
>> diff --git a/xen/drivers/video/modelines.h b/xen/drivers/video/modelines.h
>> index 9cb7cdde055f..3ff23ef1f8a7 100644
>> --- a/xen/drivers/video/modelines.h
>> +++ b/xen/drivers/video/modelines.h
>> @@ -42,36 +42,36 @@ struct modeline {
>> };
>> 
>> struct modeline __initdata videomodes[] = {
>> -    { "640x480@60",   25175,  640,  16,   96,   48,   480,  11,   2,    31 
>> },
>> -    { "640x480@72",   31500,  640,  24,   40,   128,  480,  9,    3,    28 
>> },
>> -    { "640x480@75",   31500,  640,  16,   96,   48,   480,  11,   2,    32 
>> },
>> -    { "640x480@85",   36000,  640,  32,   48,   112,  480,  1,    3,    25 
>> },
>> -    { "800x600@56",   38100,  800,  32,   128,  128,  600,  1,    4,    14 
>> },
>> -    { "800x600@60",   40000,  800,  40,   128,  88 ,  600,  1,    4,    23 
>> },
>> -    { "800x600@72",   50000,  800,  56,   120,  64 ,  600,  37,   6,    23 
>> },
>> -    { "800x600@75",   49500,  800,  16,   80,   160,  600,  1,    2,    21 
>> },
>> -    { "800x600@85",   56250,  800,  32,   64,   152,  600,  1,    3,    27 
>> },
>> -    { "1024x768@60",  65000,  1024, 24,   136,  160,  768,  3,    6,    29 
>> },
>> -    { "1024x768@70",  75000,  1024, 24,   136,  144,  768,  3,    6,    29 
>> },
>> -    { "1024x768@75",  78750,  1024, 16,   96,   176,  768,  1,    3,    28 
>> },
>> -    { "1024x768@85",  94500,  1024, 48,   96,   208,  768,  1,    3,    36 
>> },
>> -    { "1280x1024@60", 108000, 1280, 48,   112,  248,  1024, 1,    3,    38 
>> },
>> -    { "1280x1024@75", 135000, 1280, 16,   144,  248,  1024, 1,    3,    38 
>> },
>> -    { "1280x1024@85", 157500, 1280, 64,   160,  224,  1024, 1,    3,    44 
>> },
>> -    { "1400x1050@60", 122610, 1400, 88,   152,  240,  1050, 1,    3,    33 
>> },
>> -    { "1400x1050@75", 155850, 1400, 96,   152,  248,  1050, 1,    3,    42 
>> },
>> -    { "1600x1200@60", 162000, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@65", 175500, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@70", 189000, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@75", 202500, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@85", 229500, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1792x1344@60", 204800, 1792, 128,  200,  328,  1344, 1,    3,    46 
>> },
>> -    { "1792x1344@75", 261000, 1792, 96,   216,  352,  1344, 1,    3,    69 
>> },
>> -    { "1856x1392@60", 218300, 1856, 96,   224,  352,  1392, 1,    3,    43 
>> },
>> -    { "1856x1392@75", 288000, 1856, 128,  224,  352,  1392, 1,    3,    104 
>> },
>> -    { "1920x1200@75", 193160, 1920, 128,  208,  336,  1200, 1,    3,    38 
>> },
>> -    { "1920x1440@60", 234000, 1920, 128,  208,  344,  1440, 1,    3,    56 
>> },
>> -    { "1920x1440@75", 297000, 1920, 144,  224,  352,  1440, 1,    3,    56 
>> },
>> +    { "640x480@60", 25175, 640, 16, 96, 48, 480, 11, 2, 31 },
>> +    { "640x480@72", 31500, 640, 24, 40, 128, 480, 9, 3, 28 },
>> +    { "640x480@75", 31500, 640, 16, 96, 48, 480, 11, 2, 32 },
>> +    { "640x480@85", 36000, 640, 32, 48, 112, 480, 1, 3, 25 },
>> +    { "800x600@56", 38100, 800, 32, 128, 128, 600, 1, 4, 14 },
>> +    { "800x600@60", 40000, 800, 40, 128, 88, 600, 1, 4, 23 },
>> +    { "800x600@72", 50000, 800, 56, 120, 64, 600, 37, 6, 23 },
>> +    { "800x600@75", 49500, 800, 16, 80, 160, 600, 1, 2, 21 },
>> +    { "800x600@85", 56250, 800, 32, 64, 152, 600, 1, 3, 27 },
>> +    { "1024x768@60", 65000, 1024, 24, 136, 160, 768, 3, 6, 29 },
>> +    { "1024x768@70", 75000, 1024, 24, 136, 144, 768, 3, 6, 29 },
>> +    { "1024x768@75", 78750, 1024, 16, 96, 176, 768, 1, 3, 28 },
>> +    { "1024x768@85", 94500, 1024, 48, 96, 208, 768, 1, 3, 36 },
>> +    { "1280x1024@60", 108000, 1280, 48, 112, 248, 1024, 1, 3, 38 },
>> +    { "1280x1024@75", 135000, 1280, 16, 144, 248, 1024, 1, 3, 38 },
>> +    { "1280x1024@85", 157500, 1280, 64, 160, 224, 1024, 1, 3, 44 },
>> +    { "1400x1050@60", 122610, 1400, 88, 152, 240, 1050, 1, 3, 33 },
>> +    { "1400x1050@75", 155850, 1400, 96, 152, 248, 1050, 1, 3, 42 },
>> +    { "1600x1200@60", 162000, 1600, 64, 192, 304, 1200, 1, 3, 46 },
>> +    { "1600x1200@65", 175500, 1600, 64, 192, 304, 1200, 1, 3, 46 },
>> +    { "1600x1200@70", 189000, 1600, 64, 192, 304, 1200, 1, 3, 46 },
>> +    { "1600x1200@75", 202500, 1600, 64, 192, 304, 1200, 1, 3, 46 },
>> +    { "1600x1200@85", 229500, 1600, 64, 192, 304, 1200, 1, 3, 46 },
>> +    { "1792x1344@60", 204800, 1792, 128, 200, 328, 1344, 1, 3, 46 },
>> +    { "1792x1344@75", 261000, 1792, 96, 216, 352, 1344, 1, 3, 69 },
>> +    { "1856x1392@60", 218300, 1856, 96, 224, 352, 1392, 1, 3, 43 },
>> +    { "1856x1392@75", 288000, 1856, 128, 224, 352, 1392, 1, 3, 104 },
>> +    { "1920x1200@75", 193160, 1920, 128, 208, 336, 1200, 1, 3, 38 },
>> +    { "1920x1440@60", 234000, 1920, 128, 208, 344, 1440, 1, 3, 56 },
>> +    { "1920x1440@75", 297000, 1920, 144, 224, 352, 1440, 1, 3, 56 },
>> };
>> 
>> #endif
>> 
>> With AlignArrayOfStructures: Left we have (I noticed there might be a small
>> bug in clang-format since the first entry has no space after the opening 
>> curly bracket):
>> 
>> diff --git a/xen/drivers/video/modelines.h b/xen/drivers/video/modelines.h
>> index 9cb7cdde055f..1afe725dcb4c 100644
>> --- a/xen/drivers/video/modelines.h
>> +++ b/xen/drivers/video/modelines.h
>> @@ -42,36 +42,36 @@ struct modeline {
>> };
>> 
>> struct modeline __initdata videomodes[] = {
>> -    { "640x480@60",   25175,  640,  16,   96,   48,   480,  11,   2,    31 
>> },
>> -    { "640x480@72",   31500,  640,  24,   40,   128,  480,  9,    3,    28 
>> },
>> -    { "640x480@75",   31500,  640,  16,   96,   48,   480,  11,   2,    32 
>> },
>> -    { "640x480@85",   36000,  640,  32,   48,   112,  480,  1,    3,    25 
>> },
>> -    { "800x600@56",   38100,  800,  32,   128,  128,  600,  1,    4,    14 
>> },
>> -    { "800x600@60",   40000,  800,  40,   128,  88 ,  600,  1,    4,    23 
>> },
>> -    { "800x600@72",   50000,  800,  56,   120,  64 ,  600,  37,   6,    23 
>> },
>> -    { "800x600@75",   49500,  800,  16,   80,   160,  600,  1,    2,    21 
>> },
>> -    { "800x600@85",   56250,  800,  32,   64,   152,  600,  1,    3,    27 
>> },
>> -    { "1024x768@60",  65000,  1024, 24,   136,  160,  768,  3,    6,    29 
>> },
>> -    { "1024x768@70",  75000,  1024, 24,   136,  144,  768,  3,    6,    29 
>> },
>> -    { "1024x768@75",  78750,  1024, 16,   96,   176,  768,  1,    3,    28 
>> },
>> -    { "1024x768@85",  94500,  1024, 48,   96,   208,  768,  1,    3,    36 
>> },
>> -    { "1280x1024@60", 108000, 1280, 48,   112,  248,  1024, 1,    3,    38 
>> },
>> -    { "1280x1024@75", 135000, 1280, 16,   144,  248,  1024, 1,    3,    38 
>> },
>> -    { "1280x1024@85", 157500, 1280, 64,   160,  224,  1024, 1,    3,    44 
>> },
>> -    { "1400x1050@60", 122610, 1400, 88,   152,  240,  1050, 1,    3,    33 
>> },
>> -    { "1400x1050@75", 155850, 1400, 96,   152,  248,  1050, 1,    3,    42 
>> },
>> -    { "1600x1200@60", 162000, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@65", 175500, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@70", 189000, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@75", 202500, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@85", 229500, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1792x1344@60", 204800, 1792, 128,  200,  328,  1344, 1,    3,    46 
>> },
>> -    { "1792x1344@75", 261000, 1792, 96,   216,  352,  1344, 1,    3,    69 
>> },
>> -    { "1856x1392@60", 218300, 1856, 96,   224,  352,  1392, 1,    3,    43 
>> },
>> -    { "1856x1392@75", 288000, 1856, 128,  224,  352,  1392, 1,    3,    104 
>> },
>> -    { "1920x1200@75", 193160, 1920, 128,  208,  336,  1200, 1,    3,    38 
>> },
>> -    { "1920x1440@60", 234000, 1920, 128,  208,  344,  1440, 1,    3,    56 
>> },
>> -    { "1920x1440@75", 297000, 1920, 144,  224,  352,  1440, 1,    3,    56 
>> },
>> +    {"640x480@60",    25175,  640,  16,  96,  48,  480,  11, 2, 31 },
>> +    { "640x480@72",   31500,  640,  24,  40,  128, 480,  9,  3, 28 },
>> +    { "640x480@75",   31500,  640,  16,  96,  48,  480,  11, 2, 32 },
>> +    { "640x480@85",   36000,  640,  32,  48,  112, 480,  1,  3, 25 },
>> +    { "800x600@56",   38100,  800,  32,  128, 128, 600,  1,  4, 14 },
>> +    { "800x600@60",   40000,  800,  40,  128, 88,  600,  1,  4, 23 },
>> +    { "800x600@72",   50000,  800,  56,  120, 64,  600,  37, 6, 23 },
>> +    { "800x600@75",   49500,  800,  16,  80,  160, 600,  1,  2, 21 },
>> +    { "800x600@85",   56250,  800,  32,  64,  152, 600,  1,  3, 27 },
>> +    { "1024x768@60",  65000,  1024, 24,  136, 160, 768,  3,  6, 29 },
>> +    { "1024x768@70",  75000,  1024, 24,  136, 144, 768,  3,  6, 29 },
>> +    { "1024x768@75",  78750,  1024, 16,  96,  176, 768,  1,  3, 28 },
>> +    { "1024x768@85",  94500,  1024, 48,  96,  208, 768,  1,  3, 36 },
>> +    { "1280x1024@60", 108000, 1280, 48,  112, 248, 1024, 1,  3, 38 },
>> +    { "1280x1024@75", 135000, 1280, 16,  144, 248, 1024, 1,  3, 38 },
>> +    { "1280x1024@85", 157500, 1280, 64,  160, 224, 1024, 1,  3, 44 },
>> +    { "1400x1050@60", 122610, 1400, 88,  152, 240, 1050, 1,  3, 33 },
>> +    { "1400x1050@75", 155850, 1400, 96,  152, 248, 1050, 1,  3, 42 },
>> +    { "1600x1200@60", 162000, 1600, 64,  192, 304, 1200, 1,  3, 46 },
>> +    { "1600x1200@65", 175500, 1600, 64,  192, 304, 1200, 1,  3, 46 },
>> +    { "1600x1200@70", 189000, 1600, 64,  192, 304, 1200, 1,  3, 46 },
>> +    { "1600x1200@75", 202500, 1600, 64,  192, 304, 1200, 1,  3, 46 },
>> +    { "1600x1200@85", 229500, 1600, 64,  192, 304, 1200, 1,  3, 46 },
>> +    { "1792x1344@60", 204800, 1792, 128, 200, 328, 1344, 1,  3, 46 },
>> +    { "1792x1344@75", 261000, 1792, 96,  216, 352, 1344, 1,  3, 69 },
>> +    { "1856x1392@60", 218300, 1856, 96,  224, 352, 1392, 1,  3, 43 },
>> +    { "1856x1392@75", 288000, 1856, 128, 224, 352, 1392, 1,  3, 104},
>> +    { "1920x1200@75", 193160, 1920, 128, 208, 336, 1200, 1,  3, 38 },
>> +    { "1920x1440@60", 234000, 1920, 128, 208, 344, 1440, 1,  3, 56 },
>> +    { "1920x1440@75", 297000, 1920, 144, 224, 352, 1440, 1,  3, 56 },
>> };
>> 
>> #endif
>> 
>> With AlignArrayOfStructures: Right we have:
>> 
>> diff --git a/xen/drivers/video/modelines.h b/xen/drivers/video/modelines.h
>> index 9cb7cdde055f..539ab7c12d00 100644
>> --- a/xen/drivers/video/modelines.h
>> +++ b/xen/drivers/video/modelines.h
>> @@ -42,36 +42,36 @@ struct modeline {
>> };
>> 
>> struct modeline __initdata videomodes[] = {
>> -    { "640x480@60",   25175,  640,  16,   96,   48,   480,  11,   2,    31 
>> },
>> -    { "640x480@72",   31500,  640,  24,   40,   128,  480,  9,    3,    28 
>> },
>> -    { "640x480@75",   31500,  640,  16,   96,   48,   480,  11,   2,    32 
>> },
>> -    { "640x480@85",   36000,  640,  32,   48,   112,  480,  1,    3,    25 
>> },
>> -    { "800x600@56",   38100,  800,  32,   128,  128,  600,  1,    4,    14 
>> },
>> -    { "800x600@60",   40000,  800,  40,   128,  88 ,  600,  1,    4,    23 
>> },
>> -    { "800x600@72",   50000,  800,  56,   120,  64 ,  600,  37,   6,    23 
>> },
>> -    { "800x600@75",   49500,  800,  16,   80,   160,  600,  1,    2,    21 
>> },
>> -    { "800x600@85",   56250,  800,  32,   64,   152,  600,  1,    3,    27 
>> },
>> -    { "1024x768@60",  65000,  1024, 24,   136,  160,  768,  3,    6,    29 
>> },
>> -    { "1024x768@70",  75000,  1024, 24,   136,  144,  768,  3,    6,    29 
>> },
>> -    { "1024x768@75",  78750,  1024, 16,   96,   176,  768,  1,    3,    28 
>> },
>> -    { "1024x768@85",  94500,  1024, 48,   96,   208,  768,  1,    3,    36 
>> },
>> -    { "1280x1024@60", 108000, 1280, 48,   112,  248,  1024, 1,    3,    38 
>> },
>> -    { "1280x1024@75", 135000, 1280, 16,   144,  248,  1024, 1,    3,    38 
>> },
>> -    { "1280x1024@85", 157500, 1280, 64,   160,  224,  1024, 1,    3,    44 
>> },
>> -    { "1400x1050@60", 122610, 1400, 88,   152,  240,  1050, 1,    3,    33 
>> },
>> -    { "1400x1050@75", 155850, 1400, 96,   152,  248,  1050, 1,    3,    42 
>> },
>> -    { "1600x1200@60", 162000, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@65", 175500, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@70", 189000, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@75", 202500, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1600x1200@85", 229500, 1600, 64,   192,  304,  1200, 1,    3,    46 
>> },
>> -    { "1792x1344@60", 204800, 1792, 128,  200,  328,  1344, 1,    3,    46 
>> },
>> -    { "1792x1344@75", 261000, 1792, 96,   216,  352,  1344, 1,    3,    69 
>> },
>> -    { "1856x1392@60", 218300, 1856, 96,   224,  352,  1392, 1,    3,    43 
>> },
>> -    { "1856x1392@75", 288000, 1856, 128,  224,  352,  1392, 1,    3,    104 
>> },
>> -    { "1920x1200@75", 193160, 1920, 128,  208,  336,  1200, 1,    3,    38 
>> },
>> -    { "1920x1440@60", 234000, 1920, 128,  208,  344,  1440, 1,    3,    56 
>> },
>> -    { "1920x1440@75", 297000, 1920, 144,  224,  352,  1440, 1,    3,    56 
>> },
>> +    {  "640x480@60",  25175,  640,  16,  96,  48,  480, 11, 2,  31},
>> +    {  "640x480@72",  31500,  640,  24,  40, 128,  480,  9, 3,  28},
>> +    {  "640x480@75",  31500,  640,  16,  96,  48,  480, 11, 2,  32},
>> +    {  "640x480@85",  36000,  640,  32,  48, 112,  480,  1, 3,  25},
>> +    {  "800x600@56",  38100,  800,  32, 128, 128,  600,  1, 4,  14},
>> +    {  "800x600@60",  40000,  800,  40, 128,  88,  600,  1, 4,  23},
>> +    {  "800x600@72",  50000,  800,  56, 120,  64,  600, 37, 6,  23},
>> +    {  "800x600@75",  49500,  800,  16,  80, 160,  600,  1, 2,  21},
>> +    {  "800x600@85",  56250,  800,  32,  64, 152,  600,  1, 3,  27},
>> +    { "1024x768@60",  65000, 1024,  24, 136, 160,  768,  3, 6,  29},
>> +    { "1024x768@70",  75000, 1024,  24, 136, 144,  768,  3, 6,  29},
>> +    { "1024x768@75",  78750, 1024,  16,  96, 176,  768,  1, 3,  28},
>> +    { "1024x768@85",  94500, 1024,  48,  96, 208,  768,  1, 3,  36},
>> +    {"1280x1024@60", 108000, 1280,  48, 112, 248, 1024,  1, 3,  38},
>> +    {"1280x1024@75", 135000, 1280,  16, 144, 248, 1024,  1, 3,  38},
>> +    {"1280x1024@85", 157500, 1280,  64, 160, 224, 1024,  1, 3,  44},
>> +    {"1400x1050@60", 122610, 1400,  88, 152, 240, 1050,  1, 3,  33},
>> +    {"1400x1050@75", 155850, 1400,  96, 152, 248, 1050,  1, 3,  42},
>> +    {"1600x1200@60", 162000, 1600,  64, 192, 304, 1200,  1, 3,  46},
>> +    {"1600x1200@65", 175500, 1600,  64, 192, 304, 1200,  1, 3,  46},
>> +    {"1600x1200@70", 189000, 1600,  64, 192, 304, 1200,  1, 3,  46},
>> +    {"1600x1200@75", 202500, 1600,  64, 192, 304, 1200,  1, 3,  46},
>> +    {"1600x1200@85", 229500, 1600,  64, 192, 304, 1200,  1, 3,  46},
>> +    {"1792x1344@60", 204800, 1792, 128, 200, 328, 1344,  1, 3,  46},
>> +    {"1792x1344@75", 261000, 1792,  96, 216, 352, 1344,  1, 3,  69},
>> +    {"1856x1392@60", 218300, 1856,  96, 224, 352, 1392,  1, 3,  43},
>> +    {"1856x1392@75", 288000, 1856, 128, 224, 352, 1392,  1, 3, 104},
>> +    {"1920x1200@75", 193160, 1920, 128, 208, 336, 1200,  1, 3,  38},
>> +    {"1920x1440@60", 234000, 1920, 128, 208, 344, 1440,  1, 3,  56},
>> +    {"1920x1440@75", 297000, 1920, 144, 224, 352, 1440,  1, 3,  56},
>> };
>> 
>> #endif
> 
> None of which improve what we have at present, imo. Yet another reason not
> to use this tool then, I would say.

Ok 

> 
> Jan


 


Rackspace

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