xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Volodymyr Babchuk <volodymyr_babchuk@epam.com>, xen-devel@lists.xen.org
Subject: Re: Dangling whitespaces in xen code
Date: Wed, 29 Aug 2018 18:09:52 +0100	[thread overview]
Message-ID: <5c2ed6e7-01dc-64cf-5fb8-92bb4cb2520c@citrix.com> (raw)
In-Reply-To: <5c2e9021-a7fb-2eea-b8c6-49ed11f93af5@epam.com>

On 29/08/18 18:01, Volodymyr Babchuk wrote:
> Hi Andrew,
>
> On 29.08.18 19:22, Andrew Cooper wrote:
>> On 29/08/18 17:11, Volodymyr Babchuk wrote:
>>> Hello all,
>>>
>>> During xen hacking I often encounter white spaces at EOLs. It is quite
>>> annoying to see red marker in, say, xen/arch/arm/domctl.c:25
>>>
>>> I used sed to create patch that removes all such whitespaces. Command
>>> is simple:
>>>
>>> # find xen -name "*.[ch]" | xargs sed -i "s/[[:space:]]*$//g"
>>>
>>> Problem is that patch is quite big:
>>>
>>>   285 files changed, 1463 insertions(+), 1463 deletions(-)
>>>
>>> So what is the best way to publish this fix? I can just send it to ML
>>> as one patch. There is no functional changes, so should I add
>>> maintainers?
>>>
>>
>> There are more files than that.  By my count, its:
>>
>>   307 files changed, 1586 insertions(+), 1586 deletions(-)
> I tried to fix only *.c and *.h files. With COPYINGs, READMEs,
> makefiles, and so on I got
>
>  309 files changed, 1599 insertions(+), 1599 deletions(-)
>
>
>> In the past, it has been the view that fixing this all in one go might
>> be too intrusive to people developing series.  Then again, since the
>> last time this was discussed, we've switched from hg to git as a base
>> VCS, and git rebase has no issues coping with trailing whitespace
>> changes.
>
> Also there is --ignore-space-change and --ignore-whitespace, so
> developers and maintainers will be able to rebase changes without much
> effort.
>
>> We've been fixing it as we go, but it is very slow going.  I've got half
>> a mind to suggest that we just commit a single fix and call it done...
> I can't find a better solution. At first I though to fix them manually
> in places where I see them. But then, why should I include fixes for
> some files and not include for others? How to chose which files should
> be fixed and which - not? So, I think it is better to fix all in
> single commit.
>
> Another solution that I can see is to ask maintainers to provide
> patches for own subsystems.

Getting the fix into the tree is trivial, and most easily done by one of
the committers, if the community can agree that its a sensible thing to do.

FWIW, +1 to getting it fixed and removing the problem completely.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-08-29 17:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-29 16:11 Dangling whitespaces in xen code Volodymyr Babchuk
2018-08-29 16:22 ` Andrew Cooper
2018-08-29 17:01   ` Volodymyr Babchuk
2018-08-29 17:09     ` Andrew Cooper [this message]
2018-08-30  7:54       ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5c2ed6e7-01dc-64cf-5fb8-92bb4cb2520c@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=volodymyr_babchuk@epam.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).