Skip to contentSkip to conversation

linux-next: Signed-off-by missing for commits in the staging tree

DISCUSSION Stephen Rothwell 4 participants 13 messages Nov 27, 2017 – Feb 23, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Greg,

Commits

2525ef557c73 ("staging: most: update driver usage file") e7e3ce04588c ("staging: most: core: fix list traversing")

are missing a Signed-off-by from their author.

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

Hi Greg,

Commits

2525ef557c73 ("staging: most: update driver usage file") e7e3ce04588c ("staging: most: core: fix list traversing")

are missing a Signed-off-by from their author.

Ugh, I missed that. Christian, please be more careful.

I need to set up a git hook for this :(

greg k-h

#2 lore raw

Hi Greg,

Quoted 2 lines · On Tue, 28 Nov 2017 20:41:39 +0100 Greg KH <[email protected]> wrote:

I need to set up a git hook for this :(

I couldn't find an appropriate hook for fetching or merging other trees :-( Instead I run the attached script below after each fetch.

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

Hi Greg,

Quoted 2 lines · On Tue, 28 Nov 2017 20:41:39 +0100 Greg KH <[email protected]> wrote:

I need to set up a git hook for this :(

I couldn't find an appropriate hook for fetching or merging other trees :-( Instead I run the attached script below after each fetch.

Isn't the update hook what you want?

Called by git-receive-pack:

Before each ref is updated, if $GIT_DIR/hooks/update file exists and is executable, it is invoked once per ref, with three parameters:

$GIT_DIR/hooks/update refname sha1-old sha1-new

cheers

#4 lore raw

Hi Michael,

Quoted 9 lines · On Wed, 29 Nov 2017 11:09:04 +1100 Michael Ellerman <[email protected]> wrote:

Isn't the update hook what you want?

Called by git-receive-pack:

Before each ref is updated, if $GIT_DIR/hooks/update file exists and is executable, it is invoked once per ref, with three parameters:

$GIT_DIR/hooks/update refname sha1-old sha1-new

"This hook is invoked by git-receive-pack on the remote repository,
which happens when a git push is done on a local repository."

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#6 lore raw
In reply to Greg KH
Quoted 12 lines · Greg KH
Quoted 8 lines · Stephen Rothwell

Hi Greg,

Commits

2525ef557c73 ("staging: most: update driver usage file") e7e3ce04588c ("staging: most: core: fix list traversing")

are missing a Signed-off-by from their author.

Ugh, I missed that. Christian, please be more careful.

Hmm, am I missing something here? I have it in. Here are copies of the patches in question and both have a "Signed-off-by" line in.

---snip---
Received: from muaddib.microchip.com (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.352.0; Tue, 21 Nov 2017 07:05:31 -0700
From: Christian Gromm <[email protected]>
To: [email protected]
CC: [email protected], Andrey Shvetsov <[email protected]>, Christian Gromm <[email protected]>
Subject: [PATCH 48/50] staging: most: core: fix list traversing
Date: Tue, 21 Nov 2017 15:05:22 +0100
Message-ID: <[email protected]>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <[email protected]>
References: <[email protected]>
Content-Type: text/plain
Return-Path: [email protected]
X-MS-Exchange-Organization-AuthSource: CHN-SV-EXCH05.mchp-main.com
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 10
X-MS-Exchange-Organization-AVStamp-Mailbox: SYMANTEC;628359232;0;info
MIME-Version: 1.0

From: Andrey Shvetsov <[email protected]>
This patch fixes the offset and data handling when traversing the list of devices that are attached to the bus.

---
 drivers/staging/most/core.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
drivers/staging/most/core.c +13 -4
index d03ff97..9729206 100644
@@ -535,10 +535,16 @@ static struct core_component *match_component(char *name)
 	return NULL;
 }
 
+struct show_links_data {
+	int offs;
+	char *buf;
+};
+
 int print_links(struct device *dev, void *data)
 {
-	int offs = 0;
-	char *buf = data;
+	struct show_links_data *d = data;
+	int offs = d->offs;
+	char *buf = d->buf;
 	struct most_channel *c;
 	struct most_interface *iface = to_most_interface(dev);
 
@@ -560,13 +566,16 @@ int print_links(struct device *dev, void *data)
 					 dev_name(&c->dev));
 		}
 	}
+	d->offs = offs;
 	return 0;
 }
 
 static ssize_t links_show(struct device_driver *drv, char *buf)
 {
-	bus_for_each_dev(&mc.bus, NULL, buf, print_links);
-	return strlen(buf);
+	struct show_links_data d = { .buf = buf };
+
+	bus_for_each_dev(&mc.bus, NULL, &d, print_links);
+	return d.offs;
 }
 
 static ssize_t components_show(struct device_driver *drv, char *buf)
Signature · 33 lines
2.7.4


and


Received: from muaddib.microchip.com (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.352.0; Tue, 21 Nov 2017 07:05:26 -0700
From: Christian Gromm <[email protected]>
To: [email protected]
CC: [email protected], Andrey Shvetsov <[email protected]>, Christian Gromm <[email protected]>
Subject: [PATCH 44/50] staging: most: update driver usage file
Date: Tue, 21 Nov 2017 15:05:18 +0100
Message-ID: <[email protected]>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <[email protected]>
References: <[email protected]>
Content-Type: text/plain
Return-Path: [email protected]
X-MS-Exchange-Organization-AuthSource: CHN-SV-EXCH05.mchp-main.com
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 10
X-MS-Exchange-Organization-AVStamp-Mailbox: SYMANTEC;628359232;0;info
MIME-Version: 1.0

From: Andrey Shvetsov <[email protected]>

This patch keeps the usage file up to date.

Signed-off-by: Christian Gromm <[email protected]>
---
 .../staging/most/Documentation/driver_usage.txt    | 192 
+++++++++++----------
 1 file changed, 105 insertions(+), 87 deletions(-)
drivers/staging/most/Documentation/driver_usage.txt +0 -13
index a4dc0c3..bb9b4e8 100644
@@ -23,20 +23,29 @@ audio/video streaming. Therefore, the driver perfectly fits to the mission
 of Automotive Grade Linux to create open source software solutions for
 automotive applications.
 
-The driver consists basically of three layers. The hardware layer, the
-core layer and the application layer. The core layer consists of the core
-module only. This module handles the communication flow through all three
-layers, the configuration of the driver, the configuration interface
-representation in sysfs, and the buffer management.
-For each of the other two layers a selection of modules is provided. These
-modules can arbitrarily be combined to meet the needs of the desired
-system architecture. A module of the hardware layer is referred to as an
-HDM (hardware dependent module). Each module of this layer handles exactly
-one of the peripheral interfaces of a network interface controller (e.g.
-USB, MediaLB, I2C). A module of the application layer is referred to as an
-AIM (application interfacing module). The modules of this layer give access
-to MOST via one the following ways: character devices, ALSA, Networking or

..........

regards,
Chris

Quoted 4 lines

I need to set up a git hook for this :(

greg k-h

#7 lore raw
Quoted 130 lines · Christian Gromm
Quoted 12 lines · Greg KH
Quoted 8 lines · Stephen Rothwell

Hi Greg,

Commits

2525ef557c73 ("staging: most: update driver usage file") e7e3ce04588c ("staging: most: core: fix list traversing")

are missing a Signed-off-by from their author.

Ugh, I missed that. Christian, please be more careful.

Hmm, am I missing something here? I have it in. Here are copies of the patches in question and both have a "Signed-off-by" line in.

---snip---
Received: from muaddib.microchip.com (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.352.0; Tue, 21 Nov 2017 07:05:31 -0700
From: Christian Gromm <[email protected]>
To: [email protected]
CC: [email protected], Andrey Shvetsov <[email protected]>, Christian Gromm <[email protected]>
Subject: [PATCH 48/50] staging: most: core: fix list traversing
Date: Tue, 21 Nov 2017 15:05:22 +0100
Message-ID:
<[email protected]>
X-Mailer: git-send-email 2.7.4
In-Reply-To:
<[email protected]>
References: <[email protected]>
Content-Type: text/plain
Return-Path: [email protected] X-MS-Exchange-Organization-AuthSource: CHN-SV-EXCH05.mchp-main.com X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 10 X-MS-Exchange-Organization-AVStamp-Mailbox: SYMANTEC;628359232;0;info
MIME-Version: 1.0

From: Andrey Shvetsov <[email protected]>
This patch fixes the offset and data handling when traversing the list of devices that are attached to the bus.

---
 drivers/staging/most/core.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)
drivers/staging/most/core.c +13 -4
index d03ff97..9729206 100644
@@ -535,10 +535,16 @@ static struct core_component *match_component(char
 *name)
 	return NULL;
 }
 
+struct show_links_data {
+	int offs;
+	char *buf;
+};
+
 int print_links(struct device *dev, void *data)
 {
-	int offs = 0;
-	char *buf = data;
+	struct show_links_data *d = data;
+	int offs = d->offs;
+	char *buf = d->buf;
 	struct most_channel *c;
 	struct most_interface *iface = to_most_interface(dev);
@@ -560,13 +566,16 @@ int print_links(struct device *dev, void *data)
 					 dev_name(&c->dev));
 		}
 	}
+	d->offs = offs;
 	return 0;
 }
 
 static ssize_t links_show(struct device_driver *drv, char *buf)
 {
-	bus_for_each_dev(&mc.bus, NULL, buf, print_links);
-	return strlen(buf);
+	struct show_links_data d = { .buf = buf };
+
+	bus_for_each_dev(&mc.bus, NULL, &d, print_links);
+	return d.offs;
 }
 
 static ssize_t components_show(struct device_driver *drv, char *buf)
Signature · 35 lines
2.7.4


and


Received: from muaddib.microchip.com (10.10.76.4) by
chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id
14.3.352.0; Tue, 21 Nov 2017 07:05:26 -0700
From: Christian Gromm <[email protected]>
To: [email protected]
CC: [email protected], Andrey Shvetsov
<[email protected]>, Christian Gromm <[email protected]>
Subject: [PATCH 44/50] staging: most: update driver usage file
Date: Tue, 21 Nov 2017 15:05:18 +0100
Message-ID:
<[email protected]>
X-Mailer: git-send-email 2.7.4
In-Reply-To:
<[email protected]>
References: <[email protected]>
Content-Type: text/plain
Return-Path: [email protected]
X-MS-Exchange-Organization-AuthSource: CHN-SV-EXCH05.mchp-main.com
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 10
X-MS-Exchange-Organization-AVStamp-Mailbox: SYMANTEC;628359232;0;info
MIME-Version: 1.0

From: Andrey Shvetsov <[email protected]>

This patch keeps the usage file up to date.

Signed-off-by: Christian Gromm <[email protected]>
---

Why is there no signed-off-by from Andrey?

maintainer
#8 lore raw
Quoted 125 lines · Greg KH
Quoted 124 lines · Christian Gromm
Quoted 12 lines · Greg KH
Quoted 8 lines · Stephen Rothwell

Hi Greg,

Commits

2525ef557c73 ("staging: most: update driver usage file") e7e3ce04588c ("staging: most: core: fix list traversing")

are missing a Signed-off-by from their author.

Ugh, I missed that. Christian, please be more careful.

Hmm, am I missing something here? I have it in. Here are copies of the patches in question and both have a "Signed-off-by" line in.

---snip---
Received: from muaddib.microchip.com (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.352.0; Tue, 21 Nov 2017 07:05:31 -0700
From: Christian Gromm <[email protected]>
To: [email protected]
CC: [email protected], Andrey Shvetsov <[email protected]>, Christian Gromm <[email protected]>
Subject: [PATCH 48/50] staging: most: core: fix list traversing
Date: Tue, 21 Nov 2017 15:05:22 +0100
Message-ID:
<[email protected]>
X-Mailer: git-send-email 2.7.4
In-Reply-To:
<[email protected]>
References: <[email protected]>
Content-Type: text/plain
Return-Path: [email protected] X-MS-Exchange-Organization-AuthSource: CHN-SV-EXCH05.mchp-main.com X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 10 X-MS-Exchange-Organization-AVStamp-Mailbox: SYMANTEC;628359232;0;info
MIME-Version: 1.0

From: Andrey Shvetsov <[email protected]>
This patch fixes the offset and data handling when traversing the list of devices that are attached to the bus.

---
  drivers/staging/most/core.c | 17 +++++++++++++----
  1 file changed, 13 insertions(+), 4 deletions(-)
drivers/staging/most/core.c +13 -4
index d03ff97..9729206 100644
@@ -535,10 +535,16 @@ static struct core_component *match_component(char
 *name)
  	return NULL;
  }
 
+struct show_links_data {
+	int offs;
+	char *buf;
+};
+
  int print_links(struct device *dev, void *data)
  {
-	int offs = 0;
-	char *buf = data;
+	struct show_links_data *d = data;
+	int offs = d->offs;
+	char *buf = d->buf;
  	struct most_channel *c;
  	struct most_interface *iface = to_most_interface(dev);
@@ -560,13 +566,16 @@ int print_links(struct device *dev, void *data)
  					 dev_name(&c->dev));
  		}
  	}
+	d->offs = offs;
  	return 0;
  }
 
  static ssize_t links_show(struct device_driver *drv, char *buf)
  {
-	bus_for_each_dev(&mc.bus, NULL, buf, print_links);
-	return strlen(buf);
+	struct show_links_data d = { .buf = buf };
+
+	bus_for_each_dev(&mc.bus, NULL, &d, print_links);
+	return d.offs;
  }
 
  static ssize_t components_show(struct device_driver *drv, char *buf)
Signature · 28 lines
2.7.4


and


Received: from muaddib.microchip.com (10.10.76.4) by
chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id
14.3.352.0; Tue, 21 Nov 2017 07:05:26 -0700
From: Christian Gromm <[email protected]>
To: [email protected]
CC: [email protected], Andrey Shvetsov
<[email protected]>, Christian Gromm <[email protected]>
Subject: [PATCH 44/50] staging: most: update driver usage file
Date: Tue, 21 Nov 2017 15:05:18 +0100
Message-ID:
<[email protected]>
X-Mailer: git-send-email 2.7.4
In-Reply-To:
<[email protected]>
References: <[email protected]>
Content-Type: text/plain
Return-Path: [email protected]
X-MS-Exchange-Organization-AuthSource: CHN-SV-EXCH05.mchp-main.com
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 10
X-MS-Exchange-Organization-AVStamp-Mailbox: SYMANTEC;628359232;0;info
MIME-Version: 1.0
Quoted 9 lines
Quoted 6 lines

From: Andrey Shvetsov <[email protected]>

This patch keeps the usage file up to date.

---

Why is there no signed-off-by from Andrey?

Ah, his "Signed-off-by" is missing. Understood. Wasn't aware that this is a prerequisite. Thought the patches need at least one person that signs them off.

This is because we both develop on the driver. And I take the patches from our internal gitlab server, prepare them and send them upstream. And those two patches missed his Signed-off obvioulsy.

Should I resend?

regards,
Chris

#9 lore raw
Quoted 136 lines · Christian Gromm
Quoted 125 lines · Greg KH
Quoted 124 lines · Christian Gromm
Quoted 12 lines · Greg KH
Quoted 8 lines · Stephen Rothwell

Hi Greg,

Commits

2525ef557c73 ("staging: most: update driver usage file") e7e3ce04588c ("staging: most: core: fix list traversing")

are missing a Signed-off-by from their author.

Ugh, I missed that. Christian, please be more careful.

Hmm, am I missing something here? I have it in. Here are copies of the patches in question and both have a "Signed-off-by" line in.

---snip---
Received: from muaddib.microchip.com (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.352.0; Tue, 21 Nov 2017 07:05:31 -0700
From: Christian Gromm <[email protected]>
To: [email protected]
CC: [email protected], Andrey Shvetsov <[email protected]>, Christian Gromm <[email protected]>
Subject: [PATCH 48/50] staging: most: core: fix list traversing
Date: Tue, 21 Nov 2017 15:05:22 +0100
Message-ID:
<[email protected]>
X-Mailer: git-send-email 2.7.4
In-Reply-To:
<[email protected]>
References: <[email protected]>
Content-Type: text/plain
Return-Path: [email protected] X-MS-Exchange-Organization-AuthSource: CHN-SV-EXCH05.mchp-main.com X-MS-Exchange-Organization-AuthAs: Internal X-MS-Exchange-Organization-AuthMechanism: 10 X-MS-Exchange-Organization-AVStamp-Mailbox: SYMANTEC;628359232;0;info
MIME-Version: 1.0

From: Andrey Shvetsov <[email protected]>
This patch fixes the offset and data handling when traversing the list of devices that are attached to the bus.

---
  drivers/staging/most/core.c | 17 +++++++++++++----
  1 file changed, 13 insertions(+), 4 deletions(-)
drivers/staging/most/core.c +13 -4
index d03ff97..9729206 100644
@@ -535,10 +535,16 @@ static struct core_component *match_component(char
 *name)
  	return NULL;
  }
 
+struct show_links_data {
+	int offs;
+	char *buf;
+};
+
  int print_links(struct device *dev, void *data)
  {
-	int offs = 0;
-	char *buf = data;
+	struct show_links_data *d = data;
+	int offs = d->offs;
+	char *buf = d->buf;
  	struct most_channel *c;
  	struct most_interface *iface = to_most_interface(dev);
@@ -560,13 +566,16 @@ int print_links(struct device *dev, void *data)
  					 dev_name(&c->dev));
  		}
  	}
+	d->offs = offs;
  	return 0;
  }
 
  static ssize_t links_show(struct device_driver *drv, char *buf)
  {
-	bus_for_each_dev(&mc.bus, NULL, buf, print_links);
-	return strlen(buf);
+	struct show_links_data d = { .buf = buf };
+
+	bus_for_each_dev(&mc.bus, NULL, &d, print_links);
+	return d.offs;
  }
 
  static ssize_t components_show(struct device_driver *drv, char *buf)
Signature · 28 lines
2.7.4


and


Received: from muaddib.microchip.com (10.10.76.4) by
chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id
14.3.352.0; Tue, 21 Nov 2017 07:05:26 -0700
From: Christian Gromm <[email protected]>
To: [email protected]
CC: [email protected], Andrey Shvetsov
<[email protected]>, Christian Gromm <[email protected]>
Subject: [PATCH 44/50] staging: most: update driver usage file
Date: Tue, 21 Nov 2017 15:05:18 +0100
Message-ID:
<[email protected]>
X-Mailer: git-send-email 2.7.4
In-Reply-To:
<[email protected]>
References: <[email protected]>
Content-Type: text/plain
Return-Path: [email protected]
X-MS-Exchange-Organization-AuthSource: CHN-SV-EXCH05.mchp-main.com
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 10
X-MS-Exchange-Organization-AVStamp-Mailbox: SYMANTEC;628359232;0;info
MIME-Version: 1.0
Quoted 9 lines
Quoted 6 lines

From: Andrey Shvetsov <[email protected]>

This patch keeps the usage file up to date.

---

Why is there no signed-off-by from Andrey?

Quoted 3 lines

Ah, his "Signed-off-by" is missing. Understood. Wasn't aware that this is a prerequisite. Thought the patches need at least one person that signs them off.

They do, but that should always be the patch author at the least :)

Quoted 4 lines

This is because we both develop on the driver. And I take the patches from our internal gitlab server, prepare them and send them upstream. And those two patches missed his Signed-off obvioulsy.

You should sign off on your internal patches, to make this more obvious and easier.

Quoted 1 line

Should I resend?

It's already in my tree, no need.

thanks,

greg k-h

#10 lore raw
In reply to Christian Gromm

Hi Christian,

Quoted 4 lines · On Wed, 29 Nov 2017 09:44:44 +0100 Christian Gromm…

Hmm, am I missing something here? I have it in. Here are copies of the patches in question and both have a "Signed-off-by" line in.

According to the From: line in the body of these emails, the author of this patch is Andrey Shvetsov <[email protected]>, and there is no Signed-off-by line from Andrey.

Signature · 2 lines
Cheers,
Stephen Rothwell
#11 lore raw

Hi all,

Quoted 10 lines · On Wed, 29 Nov 2017 23:24:46 +1100 Stephen Rothwell <[email protected]>…
Quoted 4 lines · On Wed, 29 Nov 2017 09:44:44 +0100 Christian Gromm…

Hmm, am I missing something here? I have it in. Here are copies of the patches in question and both have a "Signed-off-by" line in.

According to the From: line in the body of these emails, the author of this patch is Andrey Shvetsov <[email protected]>, and there is no Signed-off-by line from Andrey.

I should read further ahead in my email ... sorry for the noise.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#12 lore raw
In reply to Stephen Rothwell
Quoted 4 lines · Stephen Rothwell

Hi Christian,

Quoted 1 line · On Wed, 29 Nov 2017 09:44:44 +0100 Christian Gromm…
Quoted 8 lines
Quoted 3 lines

Hmm, am I missing something here? I have it in. Here are copies of the patches in question and both have a "Signed-off-by" line in.

According to the From: line in the body of these emails, the author of this patch is Andrey Shvetsov <[email protected]>, and there is no Signed-off-by line from Andrey.

Got it. Thanks! We will fix our process so it won't happen again :)

regards,
Chris

#5 lore raw
In reply to Stephen Rothwell
Quoted 8 lines · Stephen Rothwell

Hi Greg,

Quoted 2 lines · On Tue, 28 Nov 2017 20:41:39 +0100 Greg KH <[email protected]> wrote:

I need to set up a git hook for this :(

I couldn't find an appropriate hook for fetching or merging other trees :-( Instead I run the attached script below after each fetch.

Ok, instead of just running this every so often (obviously I was forgetting to), I've now added it to my main "commit this set of patches" script so that I will be notified of any problems _before_ you ever see them.

Sorry for taking so long with this, ugh.

greg k-h