Skip to contentSkip to conversation

linux-next: duplicate patches in the kspp and kbuild trees

DISCUSSION Stephen Rothwell 3 participants 10 messages Jun 13, 2016 – Jul 27, 2016 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Kees,

As of today, there are four duplicate patches (different commits) in the kspp and kbuild trees.

Shared library support
GCC plugin infrastructure
Add Cyclomatic complexity GCC plugin
Add sancov plugin

are in both trees as different commits :-( They have been in the kbuild tree for a couple of days already. One of you should be merging the other's branch, or you both should be mergeing a common branch.

Also, Kees, the versions in your tree do not have your Signed-off-by (but do have Michal's).

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

Hi Kees,

As of today, there are four duplicate patches (different commits) in the kspp and kbuild trees.

Shared library support
GCC plugin infrastructure
Add Cyclomatic complexity GCC plugin
Add sancov plugin

Quoted 6 lines

are in both trees as different commits :-( They have been in the kbuild tree for a couple of days already. One of you should be merging the other's branch, or you both should be mergeing a common branch.

Also, Kees, the versions in your tree do not have your Signed-off-by (but do have Michal's).

Strange, I pulled these directly from linux-next. Michal had an auto-responder saying he was going to be out-of-office, so I wanted to make sure the !COMPILE_TEST fix got in.

Sounds like I should merge the kbuild tree, rather than cherry-picking from linux-next? I will adjust.

Sorry for the confusion!

-Kees

Signature · 2 lines
Kees Cook
Chrome OS & Brillo Security
#2 lore raw
Quoted 18 lines · Kees Cook
Quoted 10 lines · Stephen Rothwell

Hi Kees,

As of today, there are four duplicate patches (different commits) in the kspp and kbuild trees.

Shared library support
GCC plugin infrastructure
Add Cyclomatic complexity GCC plugin
Add sancov plugin

Quoted 6 lines

are in both trees as different commits :-( They have been in the kbuild tree for a couple of days already. One of you should be merging the other's branch, or you both should be mergeing a common branch.

Also, Kees, the versions in your tree do not have your Signed-off-by (but do have Michal's).

Quoted 6 lines

Strange, I pulled these directly from linux-next. Michal had an auto-responder saying he was going to be out-of-office, so I wanted to make sure the !COMPILE_TEST fix got in.

Sounds like I should merge the kbuild tree, rather than cherry-picking from linux-next? I will adjust.

I've done this merge correctly now and pushed a forced update on the kspp tree.

-Kees

Quoted 8 lines

Sorry for the confusion!

-Kees

--
Kees Cook
Chrome OS & Brillo Security

Signature · 2 lines
Kees Cook
Chrome OS & Brillo Security
#3 lore raw

Hi Kees,

Quoted 9 lines · On Mon, 13 Jun 2016 16:57:15 -0700 Kees Cook <[email protected]> wrote:
Quoted 7 lines · Kees Cook

Strange, I pulled these directly from linux-next. Michal had an auto-responder saying he was going to be out-of-office, so I wanted to make sure the !COMPILE_TEST fix got in.

Sounds like I should merge the kbuild tree, rather than cherry-picking from linux-next? I will adjust.

Cherry-picking produces new commits (with new SHA1s etc), while merging (or rebasing on top of the other versions) will have the same commits (not just patches).

Having the same commits means that they never produce conflicts after further changes to the same files (unless both sides of the merge make further changes to the same files).

Quoted 1 line

I've done this merge correctly now and pushed a forced update on the kspp tree.

Thanks for that. Now you just have to hope that Michal never rebases that part of his tree from under you. (Michal: hint! :-))

Signature · 2 lines
Cheers,
Stephen Rothwell
#4 lore raw
Quoted 17 lines · Stephen Rothwell

Hi Kees,

Quoted 9 lines · On Mon, 13 Jun 2016 16:57:15 -0700 Kees Cook <[email protected]> wrote:
Quoted 7 lines · Kees Cook

Strange, I pulled these directly from linux-next. Michal had an auto-responder saying he was going to be out-of-office, so I wanted to make sure the !COMPILE_TEST fix got in.

Sounds like I should merge the kbuild tree, rather than cherry-picking from linux-next? I will adjust.

Cherry-picking produces new commits (with new SHA1s etc), while merging (or rebasing on top of the other versions) will have the same commits (not just patches).

Quoted 8 lines

Having the same commits means that they never produce conflicts after further changes to the same files (unless both sides of the merge make further changes to the same files).

Quoted 1 line

I've done this merge correctly now and pushed a forced update on the kspp tree.

Thanks for that. Now you just have to hope that Michal never rebases that part of his tree from under you. (Michal: hint! :-))

I won't :). Kees, are you going to keep the patch in your tree and send it to Linus once kbuild is in? Or shall I take it (which would temporarily result in another duplication...).

Thanks,
Michal

#5 lore raw

Hi Michal,

Quoted 4 lines · On Tue, 14 Jun 2016 15:01:42 +0200 Michal Marek <[email protected]> wrote:

I won't :). Kees, are you going to keep the patch in your tree and send it to Linus once kbuild is in? Or shall I take it (which would temporarily result in another duplication...).

Or Kees could send you a pull request ...

Signature · 2 lines
Cheers,
Stephen Rothwell
#6 lore raw
Quoted 9 lines · Stephen Rothwell

Hi Michal,

Quoted 4 lines · On Tue, 14 Jun 2016 15:01:42 +0200 Michal Marek <[email protected]> wrote:

I won't :). Kees, are you going to keep the patch in your tree and send it to Linus once kbuild is in? Or shall I take it (which would temporarily result in another duplication...).

Or Kees could send you a pull request ...

My head hurts. :) How about this: since a pull request would (I think) end up pulling the other unrelated kspp patches, how about you take the patch into kbuild, and once it's there, I'll just remove it from my tree (since it's on top).

-Kees

Signature · 2 lines
Kees Cook
Chrome OS & Brillo Security
#7 lore raw

Dne 14.6.2016 v 18:39 Kees Cook napsal(a):

Quoted 9 lines · Stephen Rothwell
Quoted 8 lines

Hi Michal,

Quoted 4 lines · On Tue, 14 Jun 2016 15:01:42 +0200 Michal Marek <[email protected]> wrote:

I won't :). Kees, are you going to keep the patch in your tree and send it to Linus once kbuild is in? Or shall I take it (which would temporarily result in another duplication...).

Quoted 6 lines
Quoted 1 line

Or Kees could send you a pull request ...

My head hurts. :) How about this: since a pull request would (I think) end up pulling the other unrelated kspp patches, how about you take the patch into kbuild, and once it's there, I'll just remove it from my tree (since it's on top).

Sorry, I forgot about this one. It's cherry-picked onto my kbuild branch now.

Michal

#8 lore raw
Quoted 12 lines · Michal Marek

Dne 14.6.2016 v 18:39 Kees Cook napsal(a):

Quoted 11 lines · Stephen Rothwell
Quoted 9 lines

Hi Michal,

Quoted 4 lines · On Tue, 14 Jun 2016 15:01:42 +0200 Michal Marek <[email protected]> wrote:

I won't :). Kees, are you going to keep the patch in your tree and send it to Linus once kbuild is in? Or shall I take it (which would temporarily result in another duplication...).

Or Kees could send you a pull request ...

Quoted 7 lines
Quoted 4 lines

My head hurts. :) How about this: since a pull request would (I think) end up pulling the other unrelated kspp patches, how about you take the patch into kbuild, and once it's there, I'll just remove it from my tree (since it's on top).

Sorry, I forgot about this one. It's cherry-picked onto my kbuild branch now.

Okay, no worries. I've removed it from my tree and merged your kbuild/for-next branch into my for-next/kspp branch.

Let me know once you've sent the kbuild/for-next pull request, and I can follow it up with the the entropy plugin pull request.

Thanks!

-Kees

Signature · 2 lines
Kees Cook
Brillo & Chrome OS Security
#9 lore raw
Quoted 18 lines · Kees Cook
Quoted 17 lines · Michal Marek

Dne 14.6.2016 v 18:39 Kees Cook napsal(a):

Quoted 15 lines · Stephen Rothwell
Quoted 9 lines

Hi Michal,

Quoted 4 lines · On Tue, 14 Jun 2016 15:01:42 +0200 Michal Marek <[email protected]> wrote:

I won't :). Kees, are you going to keep the patch in your tree and send it to Linus once kbuild is in? Or shall I take it (which would temporarily result in another duplication...).

Or Kees could send you a pull request ...

My head hurts. :) How about this: since a pull request would (I think) end up pulling the other unrelated kspp patches, how about you take the patch into kbuild, and once it's there, I'll just remove it from my tree (since it's on top).

Quoted 8 lines
Quoted 2 lines

Sorry, I forgot about this one. It's cherry-picked onto my kbuild branch now.

Okay, no worries. I've removed it from my tree and merged your kbuild/for-next branch into my for-next/kspp branch.

Let me know once you've sent the kbuild/for-next pull request, and I can follow it up with the the entropy plugin pull request.

I actually send the individual branches of kbuild.git: "kbuild", "kconfig" and "misc". for-next is just a convenience for linux-next integration.

Michal