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

Re: [PATCH] flask: label-pci: Allow specifying optional irq label


  • To: Jason Andryuk <jandryuk@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 14 Mar 2023 15:11:46 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=3ig+HAkQNJAiSa5J5MIktdbIUQyno3wocwI6dM2xEXs=; b=XENrPe48Nsv6Sb5bHT9Uz1ix8MMI3x0igFmurbSGGFNQOuOz4pO1WIVvQTpucA2BMw8kbjqYn5COmDp2K/8AO/q3piNUQU5zG6foAqDKIpQcCdVpXno0qafIyAh3jq7/u8SYLsEiF0xDivrxQCxUzos6XIC232HUg0xXPk2rlcvZYEhJQK2lA0IJoQyBYF2d6erTCWX5Iq7YslJxDTip043RVBt0XCeusVxHTuiwCeHoPcpzhs071UOvElcb5ttkQfbkCBK4xyN2zsZNxLxEwkVpKVO71sSm7V6HfgBEzeHKwb5B4/Zh97v/giZQCMJRW7PmFlFqZ+fn7iMBwvsiCA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cDchzvj3U4EVq94Od+U/1ijdcI7p6T42lX5Wf0OQeuVkzCp23+Cui/MOjQmLCbsQYN4wjJlGV7rWJl2D+wRtF4la12mxo2hX3tCHgnnvAUcD4zlTVjMN1QHsBlHLY72Rw53Qc43xQlBcAc1/QWcTTwCAiQjE36yYRgfoa9RuhfmVyawDAP8FqPWTxN3DX2YnpzAhV1bSXGTMxfdBUL2xHPMPrIVlnJdmW71SRKFMWst6km5w484BVzsZruksyeGJTghFL+C79NiZ7UGBWaSXckfZ3go5UfNZ0VeNo+o9DWzZymf8FR4dDQ0mytrlum078O8qe+VjpuduAFZ1wIIdJQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "dpsmith.dev" <dpsmith.dev@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 14 Mar 2023 14:11:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 14.03.2023 14:20, Jason Andryuk wrote:
> On Tue, Mar 14, 2023 at 2:42 AM Jan Beulich <jbeulich@xxxxxxxx> wrote:
>>
>> On 13.03.2023 22:11, dpsmith.dev wrote:
>>> On 3/13/23 15:14, Jason Andryuk wrote:
>>>> On Mon, Mar 13, 2023 at 2:49 PM Daniel P. Smith
>>>> <dpsmith@xxxxxxxxxxxxxxxxxxxx> wrote:
>>>>> On 3/13/23 13:50, Jason Andryuk wrote:
>>>>>>                usage(argCnt, argv);
>>>>>>
>>>>>> +     if (argCnt == 4) {
>>>>>> +         pirq_label = argv[3];
>>>>>> +     } else {
>>>>>> +         pirq_label = argv[2];
>>>>>> +     }
>>>>>> +
>>>>>
>>>>> style nit: space inside parens and curly brackets could be dropped or
>>>>> should be moved to their own lines.
>>>>
>>>> This file doesn't follow Xen style.  I think dropping the curly braces
>>>> is fine, but the lack of spaces 'if (argCnt == 4)' should stay for
>>>> consistency.  Does that sound okay?
>>>>
>>>
>>> Hmm, I thought there was interest in getting everything in tree consistent, 
>>> maybe I am mistaken. I am not hard pressed to enforce the style. Unless 
>>> someone else objects, I am good with your proposal.
>>
>> The rule of thumb is that if a file is (largely) consistent in itself,
>> then that style is preferred over introducing a mix. (I haven't checked
>> this specific file, though.) The same may or may not apply to individual
>> functions within a file; there it's more likely to be considered one way
>> or the other on a case by case basis.
> 
> Thanks, Jan.  The file has 2 functions.  There are two instances of
> spaces within parens, and all the other cases, the majority, omit
> spaces.  The next version will drop curly braces and continue omitting
> spaces.
> 
> This patch should have had v2 in the subject (it has a v2 change log).
> The next one will have v3.

Will it? I've committed it earlier today ...

Jan



 


Rackspace

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