Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1324106
| From | Joe Perches <joe@perches.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] treewide: Use 'sizeof(x)' instead of 'sizeof x' |
| Date | 2016-02-02 15:00 +0100 |
| Message-ID | <qXJES-3JG-11@gated-at.bofh.it> (permalink) |
| References | <qXE2v-7EE-15@gated-at.bofh.it> <qXFhU-mN-13@gated-at.bofh.it> <qXHjI-215-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2016-02-02 at 12:28 +0100, Ingo Molnar wrote: > * Ingo Molnar <mingo@kernel.org> wrote: > > > If anyone feels strongly about accepting such patches, then the right solution > > is to create a Coccinelle semantic patch to run over the whole kernel and get > > over with the churn once and for all. > > So applying a semantic patch like this to all .c files: > > @@ expression E; @@ > -sizeof E > +sizeof(E) > @@ expression E2; @@ > -sizeof((E2)) > +sizeof(E2) > > Produces the single patch below for the whole kernel - instead of generating a > churn of 1,000+ patches ... If this isn't a joke, a nicer way to submit this is by subsystem and not as a single huge patch. This allows subsystem maintainers to reduce patch contention as this patch already doesn't apply to -next.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] kernel/fork.c: use sizeof() instead of sizeof Wei Tang <tangwei@cmss.chinamobile.com> - 2016-02-02 09:00 +0100
Re: [PATCH] kernel/fork.c: use sizeof() instead of sizeof Ingo Molnar <mingo@kernel.org> - 2016-02-02 10:20 +0100
Re: [PATCH] treewide: Use 'sizeof(x)' instead of 'sizeof x' Joe Perches <joe@perches.com> - 2016-02-02 15:00 +0100
Re: [PATCH] kernel/fork.c: use sizeof() instead of sizeof Al Viro <viro@ZenIV.linux.org.uk> - 2016-02-02 16:50 +0100
Re: [PATCH] kernel/fork.c: use sizeof() instead of sizeof Joe Perches <joe@perches.com> - 2016-02-02 18:10 +0100
Re: [PATCH] kernel/fork.c: use sizeof() instead of sizeof Al Viro <viro@ZenIV.linux.org.uk> - 2016-02-02 18:20 +0100
Re: [PATCH] kernel/fork.c: use sizeof() instead of sizeof Joe Perches <joe@perches.com> - 2016-02-02 19:00 +0100
Re: [PATCH] kernel/fork.c: use sizeof() instead of sizeof Al Viro <viro@ZenIV.linux.org.uk> - 2016-02-02 18:10 +0100
Re: [PATCH] kernel/fork.c: use sizeof() instead of sizeof Kevin Easton <kevin@guarana.org> - 2016-02-03 05:00 +0100
Re: [PATCH] kernel/fork.c: use sizeof() instead of sizeof Al Viro <viro@ZenIV.linux.org.uk> - 2016-02-03 05:10 +0100
csiph-web