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

Re: [PATCH v2 0/3] xen/cpu: Minor coding style fixes


  • To: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 5 Aug 2022 15:57:23 +0200
  • 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=Vxc05xjFoqlXm5elSu/oqEeEzAN6Oce92bcqa3mfRnU=; b=FfFQtd3j7tCMh0zU2Zd8jkRsPy8Jft5TfEjL0KSj/hdK8oh+VtCkRNAzen/82O1FKg/dp0Y1AKvbfDjRhZVHeidExPoQOhubXWDD2f+UKAuJ0h8xNMBnVjp48HmAvPNUMzw4+ZW7EG6aO5PsGrA7Hv3exQCtRVLHOADs/L6za5c6fJfKrimHeURJIxy5oeMD3f+UrAmvZCBM1Ha5xH4qchsRv2Z2PdZdECOVQ97SQSRvZ5RPl3X1kNhbuDP6xTFOEOd0H5Uhlb2HpcUHJiyUVYJEC1LPyfbhV43PskKfjftZaHkuB/BLsh+9dQBFbjN3GllgdFKUnJLB5KS4a++iHA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CU0+kPDOe7No2VdPZujzlzEZTmJ3a6Ef9CTn3NJ85Z2WAnc3LYX1trf2UNQRNc+0JbMu2YkpgmGH++ULojxJl6jSKjSn+lgh/foES+kAUohmelV/6qdoqcnopMpiutdyrYoLCDDpBnjkeTAVflL+juIfFNpie/5zk2PSsyuuGHdXYfmqN1VHeKwtDf5RrCyoOqo17HXVSZ+TUKw4dYd0DYzPcAZX/saDSt2utKQ1yUsYOocB/YVYJmVSS9t6AgCffMseTDYtDYqj8aqsAlp5sDRPFmqBXvvK5TnN4lTKrUD/KrsGbXHrKVUwAzC/aJepb1MQftub0BiVOhncyro2Sg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 05 Aug 2022 13:57:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 05.08.2022 15:05, Xenia Ragiadakou wrote:
> On 8/5/22 15:50, Jan Beulich wrote:
>> On 05.08.2022 14:44, Xenia Ragiadakou wrote:
>>> Xenia Ragiadakou (3):
>>>    xen/cpu: Fix MISRA C 2012 Rule 20.7 violation
>>>    xen/cpu: Add missing white space around arithmetic operators
>>>    xen/cpu: Undefine MASK_DECLARE_ macros after their usage
>>>
>>>   xen/common/cpu.c | 15 ++++++++++-----
>>>   1 file changed, 10 insertions(+), 5 deletions(-)
>>>
>>
>> Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
>>
>> However,
>> - I don't see why patches 1 and 2 needed splitting, when patch 1 already
>>    touches all those lines. It is the usual thing for us to make cosmetic
>>    adjustments when touching a line anyway.
> 
> In my opinion, the initial patch that added the code should not have 
> been accepted in first place without the white spaces around '+'.
> But maybe coding style rules came later.

Iirc the goal was to take it unaltered from Linux.

> Nevertheless, I continue to consider it unfair to rely on and request 
> from new unrelated patches to fix those issues.

I can certainly see where you're coming from, but please also try to take
maintainer perspective: By doing trivial and obvious adjustments at the
same time when touching code anyway, there's one less patch to look at
(and later to apply). And please also consider how "git blame" or alike
works: By touching the same line(s) twice in close succession, finding
the "real" change is made needlessly harder. (Putting the cosmetic change
first is generally disliked because it makes backporting harder, in case
such is wanted / needed.)

I'm sorry if you take such requests as unfair - they aren't meant to be.
They're merely meant to make things as easy as possible for everyone
(which may only be on average, yes).

Jan



 


Rackspace

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