Skip to contentSkip to conversation

linux-next: Signed-off-by missing for commit in the arm-soc tree

DISCUSSION Stephen Rothwell 3 participants 5 messages Aug 30, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Commit

1a9f9af07e80 ("ARM: dts: at91: at91sam9g45: add AC97")

is missing a Signed-off-by from its author.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 8 lines · Stephen Rothwell

Hi all,

Commit

1a9f9af07e80 ("ARM: dts: at91: at91sam9g45: add AC97")

is missing a Signed-off-by from its author.

Oh crap, it was the only one not in linux-next... iThe original submission had the SoB:
https://patchwork.kernel.org/patch/9794803/

Olof, how do you want to proceed?

Quoted 3 lines
Signature · 2 lines
Cheers,
Stephen Rothwell
Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw
Quoted 7 lines · Alexandre Belloni
Quoted 6 lines · Stephen Rothwell

Hi all,

Commit

1a9f9af07e80 ("ARM: dts: at91: at91sam9g45: add AC97")

Quoted 8 lines
Quoted 2 lines

is missing a Signed-off-by from its author.

Oh crap, it was the only one not in linux-next... iThe original submission had the SoB:
https://patchwork.kernel.org/patch/9794803/

Olof, how do you want to proceed?

Please prepare a new branch. I'll rebuild next/dt (and our for-next) to drop your previous version, and merge it when it's ready.

Thanks for the heads up, Stephen. I presume you have a script that checks this? It's something we should run too, do you keep it in a shared location?

-Olof

#3 lore raw
Quoted 16 lines · Olof Johansson
Quoted 14 lines · Alexandre Belloni
Quoted 8 lines · Stephen Rothwell

Hi all,

Commit

1a9f9af07e80 ("ARM: dts: at91: at91sam9g45: add AC97")

is missing a Signed-off-by from its author.

Oh crap, it was the only one not in linux-next... iThe original submission had the SoB:
https://patchwork.kernel.org/patch/9794803/

Quoted 9 lines
Quoted 1 line

Olof, how do you want to proceed?

Please prepare a new branch. I'll rebuild next/dt (and our for-next) to drop your previous version, and merge it when it's ready.

Thanks for the heads up, Stephen. I presume you have a script that checks this? It's something we should run too, do you keep it in a shared location?

Yeah, I'm interested as well as I'm already using a pre_push hook to check that my SoB is there.

Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw
In reply to Olof Johansson

Hi Olof,

Quoted 4 lines · On Wed, 30 Aug 2017 09:21:47 -0700 Olof Johansson <[email protected]> wrote:

Thanks for the heads up, Stephen. I presume you have a script that checks this? It's something we should run too, do you keep it in a shared location?

Script below.

Signature · 43 lines
Cheers,
Stephen Rothwell

#!/bin/bash

if [ "$#" -lt 1 ]; then
	printf "Usage: %s <commit range>\n", "$0" 1>&2
	exit 1
fi

for c in $(git rev-list --no-merges "$@"); do
	ae=$(git log -1 --format='%ae' "$c")
	aE=$(git log -1 --format='%aE' "$c")
	an=$(git log -1 --format='%an' "$c")
	aN=$(git log -1 --format='%aN' "$c")
	ce=$(git log -1 --format='%ce' "$c")
	cE=$(git log -1 --format='%cE' "$c")
	cn=$(git log -1 --format='%cn' "$c")
	cN=$(git log -1 --format='%cN' "$c")
	sob=$(git log -1 --format='%b' "$c" | grep -i '^[[:space:]]*Signed-off-by:')

	am=false
	cm=false
	grep -i -q "<$ae>" <<<"$sob" ||
		grep -i -q "<$aE>" <<<"$sob" ||
		grep -i -q ":[[:space:]]*$an[[:space:]]*<" <<<"$sob" ||
		grep -i -q ":[[:space:]]*$aN[[:space:]]*<" <<<"$sob" ||
		am=true
	grep -i -q "<$ce>" <<<"$sob" ||
		grep -i -q "<$cE>" <<<"$sob" ||
		grep -i -q ":[[:space:]]*$cn[[:space:]]*<" <<<"$sob" ||
		grep -i -q ":[[:space:]]*$cN[[:space:]]*<" <<<"$sob" ||
		cm=true

	if "$am" || "$cm"; then
		printf "Commit %s\n" "$c"
		"$am" && printf "\tauthor SOB missing\n"
		"$cm" && printf "\tcommitter SOB missing\n"
		printf "%s %s\n%s\n" "$ae" "$ce" "$sob"
	fi
done

exec gitk "$@"