Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 4 participants 6 messages Mar 15, 2018 – Mar 23, 2018 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Commit

9a5f4879cd8d ("ARM: dts: stih4xx: Add missing #sound-dai-cells")

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

Signature · 9 lines
Cheers,
Stephen Rothwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180316/fcdf69da/attachment.sig>
#1 lore raw
Quoted 7 lines · Stephen Rothwell

Hi all,

Commit

9a5f4879cd8d ("ARM: dts: stih4xx: Add missing #sound-dai-cells")

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

Thanks for the report.

What script do you use to find those? I guess I should check for missing signoffs as well when pulling a branch.

Patrice, I've dropped the merge now, and picked up the one patch in it directly, with my signoff. This should fix the issue this time, but please make sure you always sign off patches when you apply them from the list.

Arnd

#2 lore raw

Hi Arnd,

Quoted 3 lines · On Thu, 15 Mar 2018 22:06:29 +0100 Arnd Bergmann <[email protected]> wrote:

What script do you use to find those? I guess I should check for missing signoffs as well when pulling a branch.

See below. You can give it any commit range you would give e.g. gitk. I run this using he ranges reported by the "git fetch" for each tree each day.

Signature · 56 lines
Cheers,
Stephen Rothwell

#!/bin/bash

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

commits=$(git rev-list --no-merges "$@")
if [ -z "$commits" ]; then
	printf "No commits\n"
	exit 0
fi

for c in $commits; 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 "$@"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180316/996e9229/attachment.sig>
#3 lore raw
In reply to Arnd Bergmann

Hi Arnd, Stephen

Quoted 14 lines · Arnd Bergmann
Quoted 7 lines · Stephen Rothwell

Hi all,

Commit

   9a5f4879cd8d ("ARM: dts: stih4xx: Add missing #sound-dai-cells")

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

Thanks for the report.

What script do you use to find those? I guess I should check for missing signoffs as well when pulling a branch.

Quoted 7 lines

Patrice, I've dropped the merge now, and picked up the one patch in it directly, with my signoff. This should fix the issue this time, but please make sure you always sign off patches when you apply them from the list.

Arnd

Ok i will update my script on my side with Stephen's script to avoid this in the future.

Thanks

Patrice

#4 lore raw
Quoted 22 lines · Patrice CHOTARD

Hi Arnd, Stephen

Quoted 19 lines · Arnd Bergmann
Quoted 7 lines · Stephen Rothwell

Hi all,

Commit

   9a5f4879cd8d ("ARM: dts: stih4xx: Add missing #sound-dai-cells")

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

Thanks for the report.

What script do you use to find those? I guess I should check for missing signoffs as well when pulling a branch.

Patrice, I've dropped the merge now, and picked up the one patch in it directly, with my signoff. This should fix the issue this time, but please make sure you always sign off patches when you apply them from the list.

Quoted 6 lines
Quoted 2 lines

Arnd

Ok i will update my script on my side with Stephen's script to avoid this in the future.

FWIW, last time this happened in the at91 tree, I've switched to use Stephen's script as a pre-push hook:
https://raw.githubusercontent.com/alexandrebelloni/tools/master/pre-push_signed-off

Signature · 3 lines
Alexandre Belloni, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
#5 lore raw
Quoted 26 lines · Alexandre Belloni
Quoted 25 lines · Patrice CHOTARD

Hi Arnd, Stephen

Quoted 21 lines · Arnd Bergmann
Quoted 7 lines · Stephen Rothwell

Hi all,

Commit

    9a5f4879cd8d ("ARM: dts: stih4xx: Add missing #sound-dai-cells")

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

Thanks for the report.

What script do you use to find those? I guess I should check for missing signoffs as well when pulling a branch.

Patrice, I've dropped the merge now, and picked up the one patch in it directly, with my signoff. This should fix the issue this time, but please make sure you always sign off patches when you apply them from the list.

Arnd

Quoted 9 lines
Quoted 3 lines

Ok i will update my script on my side with Stephen's script to avoid this in the future.

FWIW, last time this happened in the at91 tree, I've switched to use Stephen's script as a pre-push hook:
https://raw.githubusercontent.com/alexandrebelloni/tools/master/pre-push_signed-off

Thanks Alexandre

Patrice