* Whitespace cleanups in drm/i915
@ 2011-09-16 1:37 Keith Packard
2011-09-16 14:31 ` Daniel Vetter
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Keith Packard @ 2011-09-16 1:37 UTC (permalink / raw)
To: airlied, Akshay Joshi; +Cc: linux-kernel, dri-devel
[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]
I've got this nice patch from Akshay Joshi that removes almost all of
the checkpatch.pl warnings from drm/i915. If I don't merge it now, it's
going to go stale and be useless; if I merge it only to drm-intel-next,
it will be the source of endless conflicts.
However, it's a huge patch (yes, the code was rather sloppy), and
doesn't exactly fit into the "critical patches only please" mode of the
current stage of 3.1 development.
I've checked the patch very carefully, using the obvious git diff -b to
make sure it really doesn't touch anything but whitespace, but also
using objdump -s to compare the output of the compiler. There were no
differences found with git-diff -b. The only differences found by
objdump are two whitespace changes in some debug output messages in
intel_bios.c.
I think I have three choices:
1) merge the patch and expect complaints from upstream
2) thank Akshay for his good intentions, discard the patch and hope
that he feels motivated enough to do it all over again in time for
the 3.2 merge window.
3) thank Akshay for his good intentions and leave the code as-is,
forever to ease back-porting of fixes to older kernel versions.
Frankly, if we're ever going to merge whitespace fixups, this would be a
pretty darn good time; drm-intel-fixes and drm-intel-next are in-sync as
I haven't started pulling 3.2 code into -next.
--
keith.packard@intel.com
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Whitespace cleanups in drm/i915
2011-09-16 1:37 Whitespace cleanups in drm/i915 Keith Packard
@ 2011-09-16 14:31 ` Daniel Vetter
2011-09-17 1:01 ` Ben Widawsky
[not found] ` <CAC7LmnuOieBzq=833UOjbdPfdjQaHWou_keu0_coZ-KCFJ2kaw@mail.gmail.com>
2 siblings, 0 replies; 5+ messages in thread
From: Daniel Vetter @ 2011-09-16 14:31 UTC (permalink / raw)
To: Keith Packard; +Cc: airlied, Akshay Joshi, linux-kernel, dri-devel
On Thu, Sep 15, 2011 at 06:37:33PM -0700, Keith Packard wrote:
> I've got this nice patch from Akshay Joshi that removes almost all of
> the checkpatch.pl warnings from drm/i915. If I don't merge it now, it's
> going to go stale and be useless; if I merge it only to drm-intel-next,
> it will be the source of endless conflicts.
>
> However, it's a huge patch (yes, the code was rather sloppy), and
> doesn't exactly fit into the "critical patches only please" mode of the
> current stage of 3.1 development.
>
> I've checked the patch very carefully, using the obvious git diff -b to
> make sure it really doesn't touch anything but whitespace, but also
> using objdump -s to compare the output of the compiler. There were no
> differences found with git-diff -b. The only differences found by
> objdump are two whitespace changes in some debug output messages in
> intel_bios.c.
>
> I think I have three choices:
>
> 1) merge the patch and expect complaints from upstream
>
> 2) thank Akshay for his good intentions, discard the patch and hope
> that he feels motivated enough to do it all over again in time for
> the 3.2 merge window.
>
> 3) thank Akshay for his good intentions and leave the code as-is,
> forever to ease back-porting of fixes to older kernel versions.
>
> Frankly, if we're ever going to merge whitespace fixups, this would be a
> pretty darn good time; drm-intel-fixes and drm-intel-next are in-sync as
> I haven't started pulling 3.2 code into -next.
Well, I've just started to build up patches, so my current queue is tiny
;-)
Otoh massive whitespace changes always annoy when backporting fixes and
also when moving forward work-in-progress and old proof-of-concept
patches. If you think it's really worth it, go for it. Otherwise I think
strictly enforcing checkpatch compliance (and sparse-cleanliness, while
we're at it) going forward should get us there pretty quickly (we have
some code-churn after all). And then we could fix up the remaining code in
1-2 releases or so - by then that patch should only touch code that's in
maintaince mode for older hw, hopefully.
-Daniel
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Whitespace cleanups in drm/i915
2011-09-16 1:37 Whitespace cleanups in drm/i915 Keith Packard
2011-09-16 14:31 ` Daniel Vetter
@ 2011-09-17 1:01 ` Ben Widawsky
[not found] ` <CAC7LmnuOieBzq=833UOjbdPfdjQaHWou_keu0_coZ-KCFJ2kaw@mail.gmail.com>
2 siblings, 0 replies; 5+ messages in thread
From: Ben Widawsky @ 2011-09-17 1:01 UTC (permalink / raw)
To: Keith Packard; +Cc: airlied, Akshay Joshi, linux-kernel, dri-devel
On Thu, 15 Sep 2011 18:37:33 -0700
"Keith Packard" <keithp@keithp.com> wrote:
>
> I've got this nice patch from Akshay Joshi that removes almost all of
> the checkpatch.pl warnings from drm/i915. If I don't merge it now,
> it's going to go stale and be useless; if I merge it only to
> drm-intel-next, it will be the source of endless conflicts.
>
> However, it's a huge patch (yes, the code was rather sloppy), and
> doesn't exactly fit into the "critical patches only please" mode of
> the current stage of 3.1 development.
>
> I've checked the patch very carefully, using the obvious git diff -b
> to make sure it really doesn't touch anything but whitespace, but also
> using objdump -s to compare the output of the compiler. There were no
> differences found with git-diff -b. The only differences found by
> objdump are two whitespace changes in some debug output messages in
> intel_bios.c.
>
> I think I have three choices:
>
> 1) merge the patch and expect complaints from upstream
>
> 2) thank Akshay for his good intentions, discard the patch and hope
> that he feels motivated enough to do it all over again in time for
> the 3.2 merge window.
>
> 3) thank Akshay for his good intentions and leave the code as-is,
> forever to ease back-porting of fixes to older kernel versions.
>
> Frankly, if we're ever going to merge whitespace fixups, this would
> be a pretty darn good time; drm-intel-fixes and drm-intel-next are
> in-sync as I haven't started pulling 3.2 code into -next.
>
Not that you asked for a vote, but I vote either 1, or 3. In that order.
Let's either do it now, or never, and have the code slowly migrate over time
(kind of like Daniel said).
My only concern is the 80 characters per line rule. I'd hate to see some of
those nice readable lines go just because it's > 80.
Ben
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <CAC7LmnuOieBzq=833UOjbdPfdjQaHWou_keu0_coZ-KCFJ2kaw@mail.gmail.com>]
* Re: Whitespace cleanups in drm/i915
[not found] ` <CAC7LmnuOieBzq=833UOjbdPfdjQaHWou_keu0_coZ-KCFJ2kaw@mail.gmail.com>
@ 2011-09-21 20:56 ` Akshay Joshi
2011-09-21 22:20 ` Keith Packard
0 siblings, 1 reply; 5+ messages in thread
From: Akshay Joshi @ 2011-09-21 20:56 UTC (permalink / raw)
To: Eugeni Dodonov; +Cc: Keith Packard, airlied, linux-kernel, dri-devel
On Sat, Sep 17, 2011 at 4:17 PM, Eugeni Dodonov <eugeni@dodonov.net> wrote:
> On Thu, Sep 15, 2011 at 22:37, Keith Packard <keithp@keithp.com> wrote:
>>
>> I've got this nice patch from Akshay Joshi that removes almost all of
>> the checkpatch.pl warnings from drm/i915. If I don't merge it now, it's
>> going to go stale and be useless; if I merge it only to drm-intel-next,
>> it will be the source of endless conflicts.
>>
>> However, it's a huge patch (yes, the code was rather sloppy), and
>> doesn't exactly fit into the "critical patches only please" mode of the
>> current stage of 3.1 development.
>>
>> I've checked the patch very carefully, using the obvious git diff -b to
>> make sure it really doesn't touch anything but whitespace, but also
>> using objdump -s to compare the output of the compiler. There were no
>> differences found with git-diff -b. The only differences found by
>> objdump are two whitespace changes in some debug output messages in
>> intel_bios.c.
>>
>> I think I have three choices:
>>
>> 1) merge the patch and expect complaints from upstream
>>
>> 2) thank Akshay for his good intentions, discard the patch and hope
>> that he feels motivated enough to do it all over again in time for
>> the 3.2 merge window.
>>
>> 3) thank Akshay for his good intentions and leave the code as-is,
>> forever to ease back-porting of fixes to older kernel versions.
>>
>> Frankly, if we're ever going to merge whitespace fixups, this would be a
>> pretty darn good time; drm-intel-fixes and drm-intel-next are in-sync as
>> I haven't started pulling 3.2 code into -next.
>
> I think that if we don´t get to push this patch now, we are unlikely to do
> it in nearby future. And such kind of cleanup is a nice thing to have.
> So I´d vote for option 1, and then 3, in this order.
> --
> Eugeni Dodonov
>
>
Have we reached a consensus on this? Just curious.
Akshay
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-09-21 22:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-16 1:37 Whitespace cleanups in drm/i915 Keith Packard
2011-09-16 14:31 ` Daniel Vetter
2011-09-17 1:01 ` Ben Widawsky
[not found] ` <CAC7LmnuOieBzq=833UOjbdPfdjQaHWou_keu0_coZ-KCFJ2kaw@mail.gmail.com>
2011-09-21 20:56 ` Akshay Joshi
2011-09-21 22:20 ` Keith Packard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox