This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Reformat sysdeps/x86/libc-start.c
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Carlos O'Donell <carlos at redhat dot com>
- Cc: Jonathan Nieder <jrnieder at gmail dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>, Florian Weimer <fweimer at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 3 Nov 2017 22:05:53 +0000
- Subject: Re: [PATCH] Reformat sysdeps/x86/libc-start.c
- Authentication-results: sourceware.org; auth=none
- References: <20171030200246.GA14084@intel.com> <4bcfa16d-bce2-55ed-77f2-69502b2ecfff@redhat.com> <CAMe9rOrrDCqMgT+AaLCtWgTADBc6d5ZvkCo9+5HWgGCP-qT6MQ@mail.gmail.com> <6c3b36c8-fb8d-69e4-2dd3-6ba41c1eef9f@redhat.com> <20171030221214.uup2uy7p3a7neyqv@aiede.mtv.corp.google.com> <406145f0-cd62-20dc-4dee-c5da9068ad4b@redhat.com>
On Fri, 3 Nov 2017, Carlos O'Donell wrote:
> The point I made is not about any general changes, but about a specific
> subset of changes, namely coding standard cleanups and trivial changes.
The difficulty is that there are many subtleties regarding the coding
standards and it would be easy for someone to produce a very large patch
making changes that superficially follow the standards but are not in fact
desirable.
* E.g. if someone globally added spaces before '(' before we'd explicitly
documented the rule about macros that logically expand to a single symbol
name.
* E.g. if someone applied the rule for preprocessor indentation without
following the rule that the outer multiple-include guard does not count
for the purposes of indentation for nested directives.
* E.g. if someone reformatted a file shared with another project without
considering if the variations from normal glibc practice are to facilitate
sharing with that project.
The effect of that is that even if we think some such changes are obvious
and appropriate for commit without review, they should cease to become
obvious if the patch, or the total set of such patches from one
contributor in some period, gets too big, to ensure there is time for
issues to be raised before the same mistake has been made too many times.
> How long is too long? 1h, 2h, 4h, 1day? What if you're working on the
> weekend cleaning stuff up and nobody else is around to ack your cleanup?
What I suggest above would imply we do *not* want someone committing a
large set of cleanups over the weekend while no-one is looking at that,
precisely because there could be a global issue with one person's
understanding of the standards that should be pointed out before many such
changes have gone in.
--
Joseph S. Myers
joseph@codesourcery.com