Re: [PATCH v2] checkpatch: extend author Signed-off-by check for split From: header

From: Joe Perches
Date: Mon Sep 21 2020 - 05:48:02 EST


On Mon, 2020-09-21 at 09:39 +0200, Lukas Bulwahn wrote:
> On Sun, 20 Sep 2020, Joe Perches wrote:
> > On Sun, 2020-09-20 at 21:52 +0530, Dwaipayan Ray wrote:
[]
> > > For example, Lukas checked commits between v5.4 and
> > > v5.8 and he found:
> > > 175 Missing Signed-off-by: line by nominal patch authorrep
> > > 'Daniel Vetter <daniel.vetter@xxxxxxxx>'
> > >
> > > Infact in all of those commits he signed off using a different
> > > mail, Daniel Vetter <daniel.vetter@xxxxxxxxx>.
> > >
> > > So is it possible to resolve these using perhaps .mailmap
> > > entries? Or should only the name mismatch part be better
> > > handled? Or perhaps both?
> >
> > Dunno. It certainly can be improved...
> > Try adding some more logic and see what you come up with.
> >
> > btw:
> >
> > The most frequent NO_AUTHOR_SIGN_OFF messages for v5.7..v5.8 are
> >
> > 98 WARNING: From:/SoB: email address mismatch: 'From: Daniel Vetter <daniel.vetter@xxxxxxxx>' != 'Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx>'
> > 24 WARNING: From:/SoB: email address mismatch: 'From: Thinh Nguyen <Thinh.Nguyen@xxxxxxxxxxxx>' != 'Signed-off-by: Thinh Nguyen <thinhn@xxxxxxxxxxxx>'
> > 19 WARNING: From:/SoB: email address mismatch: 'From: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>' != 'Signed-off-by: Wolfram Sang <wsa@xxxxxxxxxx>'
> > 11 WARNING: From:/SoB: email address mismatch: 'From: Luke Nelson <lukenels@xxxxxxxxxxxxxxxxx>' != 'Signed-off-by: Luke Nelson <luke.r.nels@xxxxxxxxx>'
> > 8 WARNING: From:/SoB: email address mismatch: 'From: Christophe Leroy <christophe.leroy@xxxxxx>' != 'Signed-off-by: Christophe Leroy <christophe.leroy@xxxxxxxxxx>'
> > 6 WARNING: From:/SoB: email address mismatch: 'From: Davidlohr Bueso <dave@xxxxxxxxxxxx>' != 'Signed-off-by: Davidlohr Bueso <dbueso@xxxxxxx>'
> > 5 WARNING: Missing Signed-off-by: line by nominal patch author '"Paul A. Clarke" <pc@xxxxxxxxxx>'
> > 4 WARNING: Missing Signed-off-by: line by nominal patch author 'Huang Ying <ying.huang@xxxxxxxxx>'
> > 3 WARNING: Missing Signed-off-by: line by nominal patch author '"Stephan Müller" <smueller@xxxxxxxxxx>'
[]
> I hope Dwaipayan can come up with a '.AUTHOR_SIGN_OFF.mailmap' file that
> we can use to distinguish the known developers that knowingly and
> intentionally use different identities vs. the 'newbies' that should
> validly be warned.

I hope not. One .mailmap should be enough.