* [Qemu-devel] Question: Perfecting checkpatch.pl
@ 2018-10-30 12:35 Aleksandar Markovic
2018-10-30 13:17 ` Paolo Bonzini
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Aleksandar Markovic @ 2018-10-30 12:35 UTC (permalink / raw)
To: qemu-devel@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com
Perhaps checkpatch.pl should make sure the commit messages do not contain "address@hidden" and "Reviewed-off-by"?
$ git log | grep address@hidden
Signed-off-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Ronald Hecht <address@hidden>
Signed-off-by: Justin Chevrier <address@hidden>
Signed-off-by: Justin Chevrier <address@hidden>
Signed-off-by: Justin Chevrier <address@hidden>
$ git log | grep Reviewed-off-by
Reviewed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Reviewed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Aleksandar
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Question: Perfecting checkpatch.pl
2018-10-30 12:35 [Qemu-devel] Question: Perfecting checkpatch.pl Aleksandar Markovic
@ 2018-10-30 13:17 ` Paolo Bonzini
2018-10-30 14:48 ` Aleksandar Markovic
2018-10-30 13:21 ` Philippe Mathieu-Daudé
2018-10-31 12:00 ` Daniel P. Berrangé
2 siblings, 1 reply; 8+ messages in thread
From: Paolo Bonzini @ 2018-10-30 13:17 UTC (permalink / raw)
To: Aleksandar Markovic, qemu-devel@nongnu.org, stefanha@redhat.com
On 30/10/2018 13:35, Aleksandar Markovic wrote:
> Perhaps checkpatch.pl should make sure the commit messages do not contain "address@hidden" and "Reviewed-off-by"?
>
> $ git log | grep address@hidden
> Signed-off-by: Michael S. Tsirkin <address@hidden>
> Signed-off-by: Ronald Hecht <address@hidden>
> Signed-off-by: Justin Chevrier <address@hidden>
> Signed-off-by: Justin Chevrier <address@hidden>
> Signed-off-by: Justin Chevrier <address@hidden>
>
> $ git log | grep Reviewed-off-by
> Reviewed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
> Reviewed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Sure, both are good ideas. Can you write a patch for it?
Paolo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Question: Perfecting checkpatch.pl
2018-10-30 13:17 ` Paolo Bonzini
@ 2018-10-30 14:48 ` Aleksandar Markovic
2018-10-30 15:02 ` Peter Maydell
0 siblings, 1 reply; 8+ messages in thread
From: Aleksandar Markovic @ 2018-10-30 14:48 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel@nongnu.org, stefanha@redhat.com
> From: Paolo Bonzini <pbonzini@redhat.com>
>
> Sure, both are good ideas. Can you write a patch for it?
I would rather not, I prefer to see it as a black box.
Aleksandar
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Question: Perfecting checkpatch.pl
2018-10-30 14:48 ` Aleksandar Markovic
@ 2018-10-30 15:02 ` Peter Maydell
0 siblings, 0 replies; 8+ messages in thread
From: Peter Maydell @ 2018-10-30 15:02 UTC (permalink / raw)
To: Aleksandar Markovic
Cc: Paolo Bonzini, qemu-devel@nongnu.org, stefanha@redhat.com
On 30 October 2018 at 14:48, Aleksandar Markovic <amarkovic@wavecomp.com> wrote:
>
>> From: Paolo Bonzini <pbonzini@redhat.com>
>>
>> Sure, both are good ideas. Can you write a patch for it?
>
> I would rather not, I prefer to see it as a black box.
So do most of the rest of us :-) This is why sometimes
it does not have all the features that might seem nice for
it to have...
thanks
-- PMM
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Question: Perfecting checkpatch.pl
2018-10-30 12:35 [Qemu-devel] Question: Perfecting checkpatch.pl Aleksandar Markovic
2018-10-30 13:17 ` Paolo Bonzini
@ 2018-10-30 13:21 ` Philippe Mathieu-Daudé
2018-10-31 12:00 ` Daniel P. Berrangé
2 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-10-30 13:21 UTC (permalink / raw)
To: Aleksandar Markovic, qemu-devel@nongnu.org, stefanha@redhat.com,
pbonzini@redhat.com, Peter Maydell
On 30/10/18 13:35, Aleksandar Markovic wrote:
> Perhaps checkpatch.pl should make sure the commit messages do not contain "address@hidden" and "Reviewed-off-by"?
>
> $ git log | grep address@hidden
> Signed-off-by: Michael S. Tsirkin <address@hidden>
> Signed-off-by: Ronald Hecht <address@hidden>
> Signed-off-by: Justin Chevrier <address@hidden>
> Signed-off-by: Justin Chevrier <address@hidden>
> Signed-off-by: Justin Chevrier <address@hidden>
Having a check for that is a good idea, but I don't think checkpatch
would help, these incorrect emails only appear once maintainer applied
patches, maybe the good place to check would be Peter's magic scripts, see:
https://git.linaro.org/people/peter.maydell/misc-scripts.git/tree/apply-pullreq?id=eeb001fcc1aabd8f077cd2846724120a3aa8f962#n118
Those emails also entered the tree:
hw/usb/hcd-ehci.c:4: * Copyright(c) 2008 Emutex Ltd. (address@hidden)
include/qemu/pmem.h:6: * Author: Haozhong Zhang <address@hidden>
>
> $ git log | grep Reviewed-off-by
> Reviewed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
> Reviewed-off-by: Anthony Liguori <aliguori@us.ibm.com>
>
> Aleksandar
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Question: Perfecting checkpatch.pl
2018-10-30 12:35 [Qemu-devel] Question: Perfecting checkpatch.pl Aleksandar Markovic
2018-10-30 13:17 ` Paolo Bonzini
2018-10-30 13:21 ` Philippe Mathieu-Daudé
@ 2018-10-31 12:00 ` Daniel P. Berrangé
2018-10-31 13:27 ` Peter Maydell
2 siblings, 1 reply; 8+ messages in thread
From: Daniel P. Berrangé @ 2018-10-31 12:00 UTC (permalink / raw)
To: Aleksandar Markovic
Cc: qemu-devel@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com
On Tue, Oct 30, 2018 at 12:35:15PM +0000, Aleksandar Markovic wrote:
> Perhaps checkpatch.pl should make sure the commit messages do not contain "address@hidden" and "Reviewed-off-by"?
>
> $ git log | grep address@hidden
> Signed-off-by: Michael S. Tsirkin <address@hidden>
> Signed-off-by: Ronald Hecht <address@hidden>
> Signed-off-by: Justin Chevrier <address@hidden>
> Signed-off-by: Justin Chevrier <address@hidden>
> Signed-off-by: Justin Chevrier <address@hidden>
This makes sense...
>
> $ git log | grep Reviewed-off-by
> Reviewed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
> Reviewed-off-by: Anthony Liguori <aliguori@us.ibm.com>
but I'm not convinced it is worth doing this, because the set of
mistakes people have made is enourmous, so it turns into a game
of whack-a-mole.
git log | grep -- '-by:' | sed -e 's/-by:.*/-by/' | sed -e 's/ //g' | sort | uniq -c
3127 Acked-by
1 ACKed-by
1 Acked-off-by
5 Analyzed-by
3 Approximately-suggested-by
3 Co-authored-by
1 Edited-by
2 eviewed-by
1 Fine-with-me'd-by
1 Fix-suggested-by
3 Found-by
1 Inspired-by
1 Introduced-by
1 Original-patch-by
1 Problem-spotted-by
2 Proposed-by
2 Rebased-by
1 Release-acked-by
1 Reported-and-analyzed-by
2 Reported-and-tested-by
1 Reported-and-Tested-by
1834 Reported-by
1 Reportyed-by
7 Requested-by
2 Reveiwed-by
1 Revieed-by
2 Revieved-by
4 Reviewd-by
30991 Reviewed-by
2 Reviewed-off-by
3 Reviwed-by
1 Rported-by
1 Sgined-off-by
1 Sigend-off-by
1 Signed-by
1 Signed-of-by
97837 Signed-off-by
1 Signer-off-by
4 Singed-off-by
1 Spotted-by
660 Suggested-by
1951 Tested-by
1 Tested-off-by
1 xSigned-off-by
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Question: Perfecting checkpatch.pl
2018-10-31 12:00 ` Daniel P. Berrangé
@ 2018-10-31 13:27 ` Peter Maydell
2018-10-31 13:33 ` Daniel P. Berrangé
0 siblings, 1 reply; 8+ messages in thread
From: Peter Maydell @ 2018-10-31 13:27 UTC (permalink / raw)
To: Daniel P. Berrangé
Cc: Aleksandar Markovic, pbonzini@redhat.com, qemu-devel@nongnu.org,
stefanha@redhat.com
On 31 October 2018 at 12:00, Daniel P. Berrangé <berrange@redhat.com> wrote:
> On Tue, Oct 30, 2018 at 12:35:15PM +0000, Aleksandar Markovic wrote:
>> Perhaps checkpatch.pl should make sure the commit messages do not contain "address@hidden" and "Reviewed-off-by"?
>>
>> $ git log | grep address@hidden
>> Signed-off-by: Michael S. Tsirkin <address@hidden>
>> Signed-off-by: Ronald Hecht <address@hidden>
>> Signed-off-by: Justin Chevrier <address@hidden>
>> Signed-off-by: Justin Chevrier <address@hidden>
>> Signed-off-by: Justin Chevrier <address@hidden>
>
> This makes sense...
>
>>
>> $ git log | grep Reviewed-off-by
>> Reviewed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
>> Reviewed-off-by: Anthony Liguori <aliguori@us.ibm.com>
>
> but I'm not convinced it is worth doing this, because the set of
> mistakes people have made is enourmous, so it turns into a game
> of whack-a-mole.
You could have checkpatch whitelist the sensible ones:
> 3127 Acked-by
> 1834 Reported-by
> 30991 Reviewed-by
> 97837 Signed-off-by
> 660 Suggested-by
> 1951 Tested-by
and warn about the rest...
thanks
-- PMM
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Qemu-devel] Question: Perfecting checkpatch.pl
2018-10-31 13:27 ` Peter Maydell
@ 2018-10-31 13:33 ` Daniel P. Berrangé
0 siblings, 0 replies; 8+ messages in thread
From: Daniel P. Berrangé @ 2018-10-31 13:33 UTC (permalink / raw)
To: Peter Maydell
Cc: Aleksandar Markovic, pbonzini@redhat.com, qemu-devel@nongnu.org,
stefanha@redhat.com
On Wed, Oct 31, 2018 at 01:27:15PM +0000, Peter Maydell wrote:
> On 31 October 2018 at 12:00, Daniel P. Berrangé <berrange@redhat.com> wrote:
> > On Tue, Oct 30, 2018 at 12:35:15PM +0000, Aleksandar Markovic wrote:
> >> Perhaps checkpatch.pl should make sure the commit messages do not contain "address@hidden" and "Reviewed-off-by"?
> >>
> >> $ git log | grep address@hidden
> >> Signed-off-by: Michael S. Tsirkin <address@hidden>
> >> Signed-off-by: Ronald Hecht <address@hidden>
> >> Signed-off-by: Justin Chevrier <address@hidden>
> >> Signed-off-by: Justin Chevrier <address@hidden>
> >> Signed-off-by: Justin Chevrier <address@hidden>
> >
> > This makes sense...
> >
> >>
> >> $ git log | grep Reviewed-off-by
> >> Reviewed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
> >> Reviewed-off-by: Anthony Liguori <aliguori@us.ibm.com>
> >
> > but I'm not convinced it is worth doing this, because the set of
> > mistakes people have made is enourmous, so it turns into a game
> > of whack-a-mole.
>
> You could have checkpatch whitelist the sensible ones:
>
> > 3127 Acked-by
> > 1834 Reported-by
> > 30991 Reviewed-by
> > 97837 Signed-off-by
> > 660 Suggested-by
> > 1951 Tested-by
>
> and warn about the rest...
I guess warning would be ok - I don't want to discourage people from
being creative and "singing off" their patches :-)
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-10-31 13:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-30 12:35 [Qemu-devel] Question: Perfecting checkpatch.pl Aleksandar Markovic
2018-10-30 13:17 ` Paolo Bonzini
2018-10-30 14:48 ` Aleksandar Markovic
2018-10-30 15:02 ` Peter Maydell
2018-10-30 13:21 ` Philippe Mathieu-Daudé
2018-10-31 12:00 ` Daniel P. Berrangé
2018-10-31 13:27 ` Peter Maydell
2018-10-31 13:33 ` Daniel P. Berrangé
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).