Thread (19 messages) 19 messages, 4 authors, 2015-10-08

Re: [PATCH v5 1/9] Input: goodix - sort includes alphabetically

From: Pavel Machek <hidden>
Date: 2015-10-05 20:58:00
Also in: linux-input, lkml

Hi!
quoted
Subject: Re: [PATCH v5 1/9] Input: goodix - sort includes alphabetically

On Mon 2015-09-07 17:36:15, Irina Tirdea wrote:
quoted
Signed-off-by: Irina Tirdea <redacted>
---
 drivers/input/touchscreen/goodix.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Don't.

Yes, we sometimes sort includes... to avoid patch rejects.

This is guaranteed to cause rejects.

If we do sort them, we use "longest-first" usually.
When using random order, I've been told by reviewers that my ordering
is wrong [1], but I could not figure out what the "right" ordering is in order to apply.
I did not find any mention of how to sort includes in  Documentation/CodingStyle,
but I've seen patches in the kernel that fix random ordering by sorting them
alphabetically [2].
Ok, I have seen this more often:

https://lkml.org/lkml/2009/3/28/99
 
However, I do not feel strongly about this so I can drop this patch.
Well, its really nit picking.

										Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help