[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 0/3] xen/cpu: Minor coding style fixes
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |