"whitespace coding style cleanup" broke coding style
Subsystems (2)
commit 475be4d85a274d0961593db41cf85689db1d583c
Author: Joe Perches <[email protected]> Date: Sun Feb 19 19:52:38 2012 -0800
isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style.
...
Done with emacs and some scripts and some typing.
...
--- a/drivers/isdn/gigaset/interface.c
+++ b/drivers/isdn/gigaset/interface.c
...
@@ -680,9 +680,9 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const
char *procname,
goto enomem;
tty->magic = TTY_DRIVER_MAGIC,
- tty->type = TTY_DRIVER_TYPE_SERIAL,
- tty->subtype = SERIAL_TYPE_NORMAL,
- tty->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;
+ tty->type = TTY_DRIVER_TYPE_SERIAL,
+ tty->subtype = SERIAL_TYPE_NORMAL,
+ tty->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;Hmm, please, fix your scripts or emacs!
Through which tree did this get in?
thanks,
Signature · 2 lines
js suse labs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 27.02.2012 09:59, schrieb Jiri Slaby:
Quoted 16 lines
commit
475be4d85a274d0961593db41cf85689db1d583cAuthor: Joe Perches
<[email protected]> Date: Sun Feb 19 19:52:38 2012 -0800isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style. ... Done with emacs and some scripts and some typing. ... ---
a/drivers/isdn/gigaset/interface.c+++b/drivers/isdn/gigaset/interface.c... @@ -680,9 +680,9 @@ void gigaset_if_initdriver(structgigaset_driver*drv, const char *procname, goto enomem;
tty->magic=TTY_DRIVER_MAGIC, -tty->type=TTY_DRIVER_TYPE_SERIAL, -tty->subtype=SERIAL_TYPE_NORMAL, -tty->flags=TTY_DRIVER_REAL_RAW|TTY_DRIVER_DYNAMIC_DEV; +
Quoted 8 lines
tty->type = TTY_DRIVER_TYPE_SERIAL, + tty->subtype = SERIAL_TYPE_NORMAL, + tty->flags = TTY_DRIVER_REAL_RAW |
TTY_DRIVER_DYNAMIC_DEV;Hmm, please, fix your scripts or emacs!
Through which tree did this get in?
That's the first I see of this patch.
It neither came through LKML nor did I get a CC.
For all I know, this didn't get in.
It isn't in http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git
anyway.
Regards,
Tilman
- --
Tilman Schmidt E-Mail: [email protected]
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite) -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9LZroACgkQMdB4Whm86/ndbQCeLQM0kHgzLSbexyF5qiH+bkq/ b+YAn0cM5VEzsoPVW3iQYYzbeByHyEFN
=AcbN
-----END PGP SIGNATURE-----
Quoted 24 lines · Tilman Schmidt
Am 27.02.2012 09:59, schrieb Jiri Slaby:
Quoted 23 lines
commit
475be4d85a274d0961593db41cf85689db1d583cAuthor: Joe Perches
<[email protected]> Date: Sun Feb 19 19:52:38 2012 -0800isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style. ... Done with emacs and some scripts and some typing. ... ---
a/drivers/isdn/gigaset/interface.c+++b/drivers/isdn/gigaset/interface.c... @@ -680,9 +680,9 @@ void gigaset_if_initdriver(structgigaset_driver*drv, const char *procname, goto enomem;
tty->magic=TTY_DRIVER_MAGIC, -tty->type=TTY_DRIVER_TYPE_SERIAL, -tty->subtype=SERIAL_TYPE_NORMAL, -tty->flags=TTY_DRIVER_REAL_RAW|TTY_DRIVER_DYNAMIC_DEV; +tty->type = TTY_DRIVER_TYPE_SERIAL, + tty->subtype = SERIAL_TYPE_NORMAL, + tty->flags = TTY_DRIVER_REAL_RAW |
TTY_DRIVER_DYNAMIC_DEV;Hmm, please, fix your scripts or emacs!
Quoted 7 lines
Quoted 1 line
Through which tree did this get in?
That's the first I see of this patch.
It neither came through LKML nor did I get a CC.
For all I know, this didn't get in.
It isn't in http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git
anyway.
By "in" I meant "in -next". gitk suggests through davem's tree.
It collided with my local patches, this is how I spotted it...
thanks,
Signature · 2 lines
js suse labs
Quoted 28 lines · Jiri Slaby
commit
475be4d85a274d0961593db41cf85689db1d583cAuthor: Joe Perches <[email protected]> Date: Sun Feb 19 19:52:38 2012 -0800isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style.
...
Done with emacs and some scripts and some typing.
...drivers/isdn/gigaset/interface.c +3
-3@@ -680,9 +680,9 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, goto enomem; tty->magic =TTY_DRIVER_MAGIC , - tty->type =TTY_DRIVER_TYPE_SERIAL , - tty->subtype =SERIAL_TYPE_NORMAL , - tty->flags =TTY_DRIVER_REAL_RAW |TTY_DRIVER_DYNAMIC_DEV ; + tty->type =TTY_DRIVER_TYPE_SERIAL , + tty->subtype =SERIAL_TYPE_NORMAL , + tty->flags = TTY_DRIVER_REAL_RAW |
TTY_DRIVER_DYNAMIC_DEV;
Quoted 1 line
Hmm, please, fix your scripts or emacs!
Hi Jiri.
I'm not fixing emacs.
Notice that the code improperly uses commas and not semicolons for line terminations like the lines immediately above and below it.
btw: Your copy/paste lost the tab indents.
The emacs pass was not perfect, nor was it intended to be perfect. There are _way_ too many coding style defects in isdn for that.
It was a first pass and an overall improvement.
"It's quite a bit more like what passes for the current kernel coding style though."
Quoted 1 line
Through which tree did this get in?
net-next
Quoted 1 line
thanks,
I'm working on improving the logging style in isdn and will submit more patches soonish.
cheers, Joe
Quoted 33 lines · Joe Perches
Quoted 28 lines · Jiri Slaby
commit
475be4d85a274d0961593db41cf85689db1d583cAuthor: Joe Perches<[email protected]> Date: Sun Feb 19 19:52:38 2012 -0800isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style.
...
Done with emacs and some scripts and some typing.
...drivers/isdn/gigaset/interface.c +3
-3@@ -680,9 +680,9 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, goto enomem; tty->magic =TTY_DRIVER_MAGIC , - tty->type =TTY_DRIVER_TYPE_SERIAL , - tty->subtype =SERIAL_TYPE_NORMAL , - tty->flags =TTY_DRIVER_REAL_RAW |TTY_DRIVER_DYNAMIC_DEV ; + tty->type =TTY_DRIVER_TYPE_SERIAL , + tty->subtype =SERIAL_TYPE_NORMAL , + tty->flags = TTY_DRIVER_REAL_RAW |
TTY_DRIVER_DYNAMIC_DEV;Quoted 1 line
Hmm, please, fix your scripts or emacs!
Hi Jiri.
Quoted 5 lines
I'm not fixing emacs.
Notice that the code improperly uses commas and not semicolons for line terminations like the lines immediately above and below it.
Oh, and you see that you made it actually _worse_? The patch should not touch the code at all. It is obviously totally broken. In a separate patch you might do s@,@;@ instead.
Quoted 1 line
btw: Your copy/paste lost the tab indents.
Yes, but as I did not expect anybody to apply it, I see no problem in that.
Quoted 4 lines
The emacs pass was not perfect, nor was it intended to be perfect. There are _way_ too many coding style defects in isdn for that.
Hmm, but did not we conclude some time ago that we will not touch code just to perform a whitespace cleanup?
Quoted 1 line
It was a first pass and an overall improvement.
I hope no other passes are going to happen there or anywhere in TTY drivers. I really do not want to solve zillion collisions in my ~100 local patches due to whitespace changes, sorry.
That was exactly the reason why not to cleanup the files just to be checkpatch-proof.
Quoted 2 lines
"It's quite a bit more like what passes for the current kernel coding style though."
Yes, but it does not pass our brain, does it? One should throw "checkpatch --file" or alike away, finally.
thanks,
Signature · 2 lines
js suse labs
Quoted 6 lines · Jiri Slaby
Quoted 3 lines · Joe Perches
Notice that the code improperly uses commas and
not semicolons for line terminations like the
lines immediately above and below it.Oh, and you see that you made it actually _worse_?
Actually, no. This changes does highlight a nominal code style defect though.
Quoted 3 lines
The patch should not
touch the code at all. It is obviously totally broken. In a separate patch you might do s@,@;@ instead.
The code in either form is neither broken nor incorrect. It's just "out of style". Emacs did made it consistent.
Quoted 2 lines
Hmm, but did not we conclude some time ago that we will not touch code just to perform a whitespace cleanup?
It's a prelude to other patches so actually
that's done quite a lot. git blame -w
doesn't even show my name on any of the code in this patch.
Quoted 5 lines
Quoted 1 line
It was a first pass and an overall improvement.
I hope no other passes are going to happen there or anywhere in TTY drivers. I really do not want to solve zillion collisions in my ~100 local patches due to whitespace changes, sorry.
Perhaps you should submit your ~100 patches sooner rather than later. That's a lot of changes that could have any number of collisions.
Quoted 2 lines
Yes, but it does not pass our brain, does it? One should throw "checkpatch --file" or alike away, finally.
Perhaps you might notice I did not use checkpatch as a guide nor as a criteria for submission.
It was ~5MB patch btw. Compilation was done to verify lack of object delta only.
Thanks for noticing the oddly formatted code. I'll send a patch to fix it.
cheers, Joe
PATCH 1/1 gigaset: Use semicolons to terminate statements
Commas are not generally used at locations where
statement termination semicolons are used.
Realign each field set at appropriate indentation.
---
drivers/isdn/gigaset/interface.c +4 -4
@@ -679,10 +679,10 @@ void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname,if (tty ==NULL ) goto enomem; - tty->magic =TTY_DRIVER_MAGIC , - tty->type =TTY_DRIVER_TYPE_SERIAL , - tty->subtype =SERIAL_TYPE_NORMAL , - tty->flags =TTY_DRIVER_REAL_RAW |TTY_DRIVER_DYNAMIC_DEV ; + tty->magic =TTY_DRIVER_MAGIC ; + tty->type =TTY_DRIVER_TYPE_SERIAL ; + tty->subtype =SERIAL_TYPE_NORMAL ; + tty->flags =TTY_DRIVER_REAL_RAW |TTY_DRIVER_DYNAMIC_DEV ; tty->driver_name = procname; tty->name = devname;
Quoted 8 lines · Joe Perches
Quoted 3 lines · Jiri Slaby
The patch should not
touch the code at all. It is obviously totally broken. In a separate patch you might do s@,@;@ instead.The code in either form is neither broken nor incorrect. It's just "out of style". Emacs did made it consistent.
I understand that it is correct according to the style. It is not correct in that how humans read it.
Quoted 7 lines
Quoted 2 lines
Hmm, but did not we conclude some time ago that we will not touch code just to perform a whitespace cleanup?
It's a prelude to other patches so actually
that's done quite a lot. git blame -w
doesn't even show my name on any of the code in this patch.
Yeah, but git merge or rebase do not cope with this. That is the problem I am writing about.
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
It was a first pass and an overall improvement.
I hope no other passes are going to happen there or anywhere in TTY drivers. I really do not want to solve zillion collisions in my ~100 local patches due to whitespace changes, sorry.
Perhaps you should submit your ~100 patches sooner rather than later. That's a lot of changes that could have any number of collisions.
No, sorry, I do not send patch series which are not reviewed by me with at least 2 weeks distance. Anyway the point is elsewhere.
To emphasize: I do not mind random changes on random files. That is easy to fix. I mind whitespace cleanups over _whole_ subtrees.
Quoted 5 lines
Quoted 2 lines
Yes, but it does not pass our brain, does it? One should throw "checkpatch --file" or alike away, finally.
Perhaps you might notice I did not use checkpatch as a guide nor as a criteria for submission.
Ok, but you still fit in "or alike" above.
Quoted 2 lines
It was ~5MB patch btw. Compilation was done to verify lack of object delta only.
I see. Sorry to say that, but 5MB of whitespace cleanup is purely insane. Do not tell me that you are going to fix/change something in all the files. And even if that is the case, fixes go first so that people are able to backport to stable if they fit there.
Please, search archives for similar discussions. I do not want to repeat that.
Quoted 2 lines
Thanks for noticing the oddly formatted code. I'll send a patch to fix it.
It looks good. ACK. [Although I am sad I will have to solve that conflict once more :(.]
thanks,
Signature · 2 lines
js suse labs
Re: [PATCH net-next] gigaset: Use semicolons to terminate statements
In reply to Joe PerchesFrom: Joe Perches <[email protected]>
Date: Mon, 27 Feb 2012 09:39:27 -0800
Quoted 6 lines
Commas are not generally used at locations where
statement termination semicolons are used.Realign each field set at appropriate indentation.
Signed-off-by Joe Perches <[email protected]>
Applied, thanks.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 8 lines · Joe Perches
Quoted 7 lines · Jiri Slaby
commit
475be4d85a274d0961593db41cf85689db1d583cAuthor: Joe Perches <[email protected]> Date: Sun Feb 19 19:52:38 2012 -0800isdn: whitespace coding style cleanup
isdn source code uses a not-current coding style.
[...]
Quoted 1 line
It was a first pass and an overall improvement.
I'm not so sure about that, but I'm probably biased.
What grieves me more is how that patch was sneaked in without any notification to the maintainers of the code in question. With the customary CC, we could have caught the problems before they reached
- -next.
Quoted 2 lines
I'm working on improving the logging style
in isdn and will submit more patches soonish.
Please remember to CC the maintainers of the affected code this time.
Thanks,
Tilman
- --
Tilman Schmidt E-Mail: [email protected]
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite) -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/
iEYEARECAAYFAk9NFeEACgkQQ3+did9BuFvG2ACdGL+9IMooAmMAlJwON2kHU+f8 2V4AnjjdZDNwaNGQuLVRKS100TfG6i+e
=FKIs
-----END PGP SIGNATURE-----
Quoted 1 line · Tilman Schmidt
Please remember to CC the maintainers of the affected code this time.
Karsten Keil is the nominal maintainer for all of drivers/isdn.
I sent the patch/pull request directly to him and cc'd netdev. I did not send the patch/pull request to isdn4linux as it's a subscriber-only list and I'm not subscribed nor do I wish to be.
ISDN SUBSYSTEM
M: Karsten Keil <[email protected]>
L: [email protected] (subscribers-only)
L: [email protected]
W: http://www.isdn4linux.de
T: git git://git.kernel.org/pub/scm/linux/kernel/git/kkeil/isdn-2.6.git
S: Maintained
F: Documentation/isdn/
F: drivers/isdn/
If isdn4linux is an active list, (the archive doesn't appear so http://listserv.isdn4linux.de/pipermail/isdn4linux/)
I suggest moving it to vger or making it moderated or open.
The git tree is no longer on git.kernel.org. Perhaps that should be restored as well.
Karsten, you don't seem to have much activity recently in drivers/isdn git history.
Are you still a MAINTAINER for isdn?
If Karsten is not really active, is there a volunteer to take his place?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 28.02.2012 23:05, schrieb Joe Perches:
Quoted 5 lines · Tilman Schmidt
Quoted 1 line
Please remember to CC the maintainers of the affected code this time.
Karsten Keil is the nominal maintainer for
all ofdrivers/isdn.
Look again.
Quoted 9 lines
ISDN SUBSYSTEM
M: Karsten Keil <[email protected]>
L: [email protected] (subscribers-only)
L: [email protected]
W: http://www.isdn4linux.de
T: gitgit://git.kernel.org/pub/scm/linux/kernel/git/kkeil/isdn-2.6.git
S: Maintained
F:Documentation/isdn/
F:drivers/isdn/
GIGASET ISDN DRIVERS
M: Hansjoerg Lipp <[email protected]>
M: Tilman Schmidt <[email protected]>
L: [email protected]
W: http://gigaset307x.sourceforge.net/
S: Maintained
F: Documentation/isdn/README.gigaset
F: drivers/isdn/gigaset/
F: include/linux/gigaset_dev.h
HTH
T.
- --
Tilman Schmidt E-Mail: [email protected]
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite) -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/
iEYEARECAAYFAk9NXoQACgkQQ3+did9BuFv95QCfd/TznBrdI/a6TsE+ch3bH0cO sJ0An2VcWci5lpra41JveYP8JdZnPA5s
=o+jZ
-----END PGP SIGNATURE-----
Quoted 6 lines · Tilman Schmidt
Am 28.02.2012 23:05, schrieb Joe Perches:
Quoted 4 lines · Tilman Schmidt
Quoted 1 line
Please remember to CC the maintainers of the affected code this time.
Karsten Keil is the nominal maintainer for
all ofdrivers/isdn.Look again.
What I wrote is correct.
I am aware there are 2 other ISDN sections and maintainers listed in MAINTAINERS.
One of those, Armin Schindler, (cc'd) hasn't signed a single commit in git history.
I do hope that you or someone else would answer my other questions about the mailing lists and general maintainership for isdn.
You all should coordinate with Karsten if he really still is the maintainer for isdn.
Finally yes, I'll try to get you on the cc list the next time I send patches against drivers/isdn/gigaset.
cheers, Joe
David Miller
maintainerThe truth is that isdn is unmaintained, so I just apply all ISDN patches directly after I review them, and I will continue to do so with impunity.
Quoted 4 lines · On Tue, 28 Feb 2012 18:42:46 -0500 (EST) David Miller <[email protected]>…
The truth is that isdn is unmaintained, so I just apply all ISDN patches directly after I review them, and I will continue to do so with impunity.
Except the Gigaset which has its own maintainer entry and active maintainer...
Quoted 8 lines · Joe Perches
Quoted 6 lines · Tilman Schmidt
Am 28.02.2012 23:05, schrieb Joe Perches:
Quoted 4 lines · Tilman Schmidt
Quoted 1 line
Please remember to CC the maintainers of the affected code this time.
Karsten Keil is the nominal maintainer for
all ofdrivers/isdn.Look again.
Quoted 7 lines
What I wrote is correct.
I am aware there are 2 other ISDN sections
and maintainers listed inMAINTAINERS.One of those, Armin Schindler, (cc'd) hasn't
signed a single commit in git history.
True, my last work here was a long time ago. I used to maintain the eicon driver, but this driver is not just old, it is simply outdated for years and I doubt someone will ever use it in newer kernels. It just creates work here.
Some time ago I asked (I don't remember who) why don't we remove that old driver from the kernel.
It wasn't done because there is no follow up for the kernel. The new drivers out there are maintained,
but will never be part of the kernel (coding style, etc.). I guess the idea was not to remove a driver from the kernel when there is no alternative (in kernel).
Maybe I should bring this up again and ask for a removal of the current eicon driver in kernel...
regards,
Armin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 2 lines · Joe Perches
I do hope that you or someone else would answer my other questions about the mailing lists and general maintainership for isdn.
Sorry, I can't help you much there. All I can say is:
- - Karsten is still participating in the development of Linux ISDN support but seems to have moved his focus away from the kernel towards out-of-tree drivers and userspace stuff.
- - The isdn4linux mailing list is alive and kicking, though also mainly concerned with userspace questions. AFAIK it forwards postings from non-subscribers to the moderator but I'm not sure. Moving it to vger is probably not an option.
Quoted 2 lines
Finally yes, I'll try to get you on the cc list the next time I send patches against
drivers/isdn/gigaset.
That will be most kind.
Thanks,
Tilman
- --
Tilman Schmidt E-Mail: [email protected]
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits. Ungeöffnet mindestens haltbar bis: (siehe Rückseite) -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk9OBnMACgkQMdB4Whm86/kThACeJ380RPyvoOSAe8xHlgkQIyrX MikAnjNmumpvO888TIWmD10vqvUc6oqV
=6nN7
-----END PGP SIGNATURE-----
Quoted 8 lines · Armin Schindler
Quoted 2 lines · Joe Perches
One of those, Armin Schindler, (cc'd) hasn't
signed a single commit in git history.True, my last work here was a long time ago. I used to maintain the eicon driver, but this driver is not just old, it is simply outdated for years and I doubt someone will ever use it in newer kernels. It just creates work here.
You could remove yourself from MAINTAINERS if you want.
MAINTAINERS | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
MAINTAINERS +1 -2
@@ -3682,10 +3682,9 @@ F: include/linux/isdn.h F: include/linux/isdn/ ISDN SUBSYSTEM (Eicon active card driver) -M: Armin Schindler <[email protected]> L: [email protected] (subscribers-only) W: http://www.melware.de -S: Maintained +S: Orphan F: drivers/isdn/hardware/eicon/ IT87 HARDWARE MONITORING DRIVER
Quoted 9 lines
Some time ago I asked (I don't remember who) why don't we remove that old driver from the kernel.
It wasn't done because there is no follow up for the kernel. The new drivers out there are maintained,
but will never be part of the kernel (coding style, etc.). I guess the idea was not to remove a driver from the kernel when there is no alternative (in kernel).
Maybe I should bring this up again and ask for a removal of the current eicon driver in kernel...
Your choice.
It could be moved to staging as a prelude to removing it after a few releases.
I did do a rather large drive-by whitespace cleanup of eicon. It still compiles. I've no idea if it still works though.
cheers, Joe