Skip to contentSkip to conversation

linux-next: manual merge of the akpm-current tree with the risc-v tree

DISCUSSION Stephen Rothwell 4 participants 7 messages Dec 14, 2020 – Dec 17, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the akpm-current tree got a conflict in:

lib/Makefile

between commit:

527701eda5f1 ("lib: Add a generic version of devmem_is_allowed()")

from the risc-v tree and commits:

8250e121c672 ("lib/list_kunit: follow new file name convention for KUnit tests") 17bf776cf09a ("lib/linear_ranges_kunit: follow new file name convention for KUnit tests") 23fa4e39ee62 ("lib/bits_kunit: follow new file name convention for KUnit tests") 1987f84faec6 ("lib/cmdline_kunit: add a new test suite for cmdline API")

from the akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Signature · 20 lines
Cheers,
Stephen Rothwell

diff --cc lib/Makefile
index bcedd691ef63,dc623561ef9d..000000000000
--- a/lib/Makefile
+++ b/lib/Makefile
@@@ -350,8 -350,7 +350,9 @@@ obj-$(CONFIG_PLDMFW) += pldmfw
  
  # KUnit tests
  obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o
- obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o
- obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o
- obj-$(CONFIG_BITS_TEST) += test_bits.o
+ obj-$(CONFIG_BITS_TEST) += bits_kunit.o
+ obj-$(CONFIG_CMDLINE_KUNIT_TEST) += cmdline_kunit.o
+ obj-$(CONFIG_LINEAR_RANGES_TEST) += linear_ranges_kunit.o
+ obj-$(CONFIG_LIST_KUNIT_TEST) += list_kunit.o
 +
 +obj-$(CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED) += devmem_is_allowed.o
#1 lore raw
Quoted 17 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the akpm-current tree got a conflict in:

lib/Makefile

between commit:

527701eda5f1 ("lib: Add a generic version of devmem_is_allowed()")

from the risc-v tree and commits:

8250e121c672 ("lib/list_kunit: follow new file name convention for KUnit tests") 17bf776cf09a ("lib/linear_ranges_kunit: follow new file name convention for KUnit tests") 23fa4e39ee62 ("lib/bits_kunit: follow new file name convention for KUnit tests") 1987f84faec6 ("lib/cmdline_kunit: add a new test suite for cmdline API")

Quoted 8 lines

from the akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Looks good enough (*) to me, thanks!

*) I think we might group that new line with an existing one(s) of the same level (GENERIC_LIB) but it doesn't really matter.

Quoted 21 lines
Signature · 2 lines
Cheers,
Stephen Rothwell
lib/Makefile +4 -3
diff --cc lib/Makefile
index bcedd691ef63,dc623561ef9d..000000000000
@@@ -350,8 -350,7 +350,9 @@@ obj-$(CONFIG_PLDMFW) += pldmfw
 
  # KUnit tests
  obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o
- obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o
- obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o
- obj-$(CONFIG_BITS_TEST) += test_bits.o
+ obj-$(CONFIG_BITS_TEST) += bits_kunit.o
+ obj-$(CONFIG_CMDLINE_KUNIT_TEST) += cmdline_kunit.o
+ obj-$(CONFIG_LINEAR_RANGES_TEST) += linear_ranges_kunit.o
+ obj-$(CONFIG_LIST_KUNIT_TEST) += list_kunit.o
 +
 +obj-$(CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED) += devmem_is_allowed.o
Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
Quoted 27 lines · On Mon, 14 Dec 2020 09:37:47 PST (-0800), [email protected]…
Quoted 17 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the akpm-current tree got a conflict in:

lib/Makefile

between commit:

527701eda5f1 ("lib: Add a generic version of devmem_is_allowed()")

from the risc-v tree and commits:

8250e121c672 ("lib/list_kunit: follow new file name convention for KUnit tests") 17bf776cf09a ("lib/linear_ranges_kunit: follow new file name convention for KUnit tests") 23fa4e39ee62 ("lib/bits_kunit: follow new file name convention for KUnit tests") 1987f84faec6 ("lib/cmdline_kunit: add a new test suite for cmdline API")

Quoted 8 lines

from the akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Quoted 4 lines

Looks good enough (*) to me, thanks!

*) I think we might group that new line with an existing one(s) of the same level (GENERIC_LIB) but it doesn't really matter.

I went back and forth on that one: it's got the same Kconfig name, but it's not a libgcc function. Maybe we shouldn't have had the "_LIB" in there? I don't remember if that was meant to stand for libgcc or lib/...

I'm happy to just re-spin my patch to avoid the conflict. It's near/at the top of my tree, so it's not a big deal, but I'm also just OK merging second and pointing out the conflict. Unless you care one way or the other I'll just do whatever ends up being easier for me :)

Quoted 21 lines
Quoted 21 lines

--
Cheers,
Stephen Rothwell

lib/Makefile +4 -3
diff --cc lib/Makefile
index bcedd691ef63,dc623561ef9d..000000000000
@@@ -350,8 -350,7 +350,9 @@@ obj-$(CONFIG_PLDMFW) += pldmfw
 
  # KUnit tests
  obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o
- obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o
- obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o
- obj-$(CONFIG_BITS_TEST) += test_bits.o
+ obj-$(CONFIG_BITS_TEST) += bits_kunit.o
+ obj-$(CONFIG_CMDLINE_KUNIT_TEST) += cmdline_kunit.o
+ obj-$(CONFIG_LINEAR_RANGES_TEST) += linear_ranges_kunit.o
+ obj-$(CONFIG_LIST_KUNIT_TEST) += list_kunit.o
 +
 +obj-$(CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED) += devmem_is_allowed.o
#3 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 33 lines · On Mon, 14 Dec 2020 20:21:07 +1100 Stephen Rothwell <[email protected]>…

Today's linux-next merge of the akpm-current tree got a conflict in:

lib/Makefile

between commit:

527701eda5f1 ("lib: Add a generic version of devmem_is_allowed()")

from the risc-v tree and commits:

8250e121c672 ("lib/list_kunit: follow new file name convention for KUnit tests") 17bf776cf09a ("lib/linear_ranges_kunit: follow new file name convention for KUnit tests") 23fa4e39ee62 ("lib/bits_kunit: follow new file name convention for KUnit tests") 1987f84faec6 ("lib/cmdline_kunit: add a new test suite for cmdline API")

from the akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

lib/Makefile +0 -0
diff --cc lib/Makefile
index bcedd691ef63,dc623561ef9d..000000000000
@@@ -350,8 -350,7 +350,9 @@@ obj-$(CONFIG_PLDMFW) += pldmfw
 
  # KUnit tests

lib/Makefile

Quoted 10 lines
lib/Makefile +4 -3
  obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o
- obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o
- obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o
- obj-$(CONFIG_BITS_TEST) += test_bits.o
+ obj-$(CONFIG_BITS_TEST) += bits_kunit.o
+ obj-$(CONFIG_CMDLINE_KUNIT_TEST) += cmdline_kunit.o
+ obj-$(CONFIG_LINEAR_RANGES_TEST) += linear_ranges_kunit.o
+ obj-$(CONFIG_LIST_KUNIT_TEST) += list_kunit.o
 +
 +obj-$(CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED) += devmem_is_allowed.o

This is now a conflict between the risc-v tree and Linus' tree.

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

Hi all,

Quoted 15 lines · On Mon, 14 Dec 2020 20:21:07 +1100 Stephen Rothwell <[email protected]>…

Today's linux-next merge of the akpm-current tree got a conflict in:

lib/Makefile

between commit:

527701eda5f1 ("lib: Add a generic version of devmem_is_allowed()")

from the risc-v tree and commits:

8250e121c672 ("lib/list_kunit: follow new file name convention for KUnit tests") 17bf776cf09a ("lib/linear_ranges_kunit: follow new file name convention for KUnit tests") 23fa4e39ee62 ("lib/bits_kunit: follow new file name convention for KUnit tests") 1987f84faec6 ("lib/cmdline_kunit: add a new test suite for cmdline API")

AFAIU Linus rejected the above patches. I hope kselftest/kunit tree can pick them up.

Quoted 6 lines
Quoted 6 lines
lib/Makefile +0 -0
diff --cc lib/Makefile
index bcedd691ef63,dc623561ef9d..000000000000
@@@ -350,8 -350,7 +350,9 @@@ obj-$(CONFIG_PLDMFW) += pldmfw
Quoted 13 lines
Quoted 11 lines

# KUnit tests
obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o
- obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o
- obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o
- obj-$(CONFIG_BITS_TEST) += test_bits.o
+ obj-$(CONFIG_BITS_TEST) += bits_kunit.o
+ obj-$(CONFIG_CMDLINE_KUNIT_TEST) += cmdline_kunit.o
+ obj-$(CONFIG_LINEAR_RANGES_TEST) += linear_ranges_kunit.o
+ obj-$(CONFIG_LIST_KUNIT_TEST) += list_kunit.o
+
+obj-$(CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED) += devmem_is_allowed.o

This is now a conflict between the risc-v tree and Linus' tree.

Yeah, and it's slightly different. Perhaps RISC-V tree can handle this by moving Makefile entry somewhere else in the file.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#5 lore raw

Hi Andy,

Quoted 3 lines · On Thu, 17 Dec 2020 11:40:51 +0200 Andy Shevchenko <[email protected]>…

Yeah, and it's slightly different. Perhaps RISC-V tree can handle this by moving Makefile entry somewhere else in the file.

Or just let Linus take care of it ...

Signature · 2 lines
Cheers,
Stephen Rothwell
#6 lore raw
In reply to Andy Shevchenko
Quoted 44 lines · On Thu, 17 Dec 2020 01:40:51 PST (-0800), [email protected] wrote:
Quoted 19 lines · Stephen Rothwell

Hi all,

Quoted 15 lines · On Mon, 14 Dec 2020 20:21:07 +1100 Stephen Rothwell <[email protected]>…

Today's linux-next merge of the akpm-current tree got a conflict in:

lib/Makefile

between commit:

527701eda5f1 ("lib: Add a generic version of devmem_is_allowed()")

from the risc-v tree and commits:

8250e121c672 ("lib/list_kunit: follow new file name convention for KUnit tests") 17bf776cf09a ("lib/linear_ranges_kunit: follow new file name convention for KUnit tests") 23fa4e39ee62 ("lib/bits_kunit: follow new file name convention for KUnit tests") 1987f84faec6 ("lib/cmdline_kunit: add a new test suite for cmdline API")

AFAIU Linus rejected the above patches. I hope kselftest/kunit tree can pick them up.

Quoted 6 lines
Quoted 6 lines
lib/Makefile +0 -0
diff --cc lib/Makefile
index bcedd691ef63,dc623561ef9d..000000000000
@@@ -350,8 -350,7 +350,9 @@@ obj-$(CONFIG_PLDMFW) += pldmfw
Quoted 13 lines
Quoted 11 lines

# KUnit tests
obj-$(CONFIG_BITFIELD_KUNIT) += bitfield_kunit.o
- obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o
- obj-$(CONFIG_LINEAR_RANGES_TEST) += test_linear_ranges.o
- obj-$(CONFIG_BITS_TEST) += test_bits.o
+ obj-$(CONFIG_BITS_TEST) += bits_kunit.o
+ obj-$(CONFIG_CMDLINE_KUNIT_TEST) += cmdline_kunit.o
+ obj-$(CONFIG_LINEAR_RANGES_TEST) += linear_ranges_kunit.o
+ obj-$(CONFIG_LIST_KUNIT_TEST) += list_kunit.o
+
+obj-$(CONFIG_GENERIC_LIB_DEVMEM_IS_ALLOWED) += devmem_is_allowed.o

This is now a conflict between the risc-v tree and Linus' tree.

Quoted 2 lines

Yeah, and it's slightly different. Perhaps RISC-V tree can handle this by moving Makefile entry somewhere else in the file.

I was planning on just posting the merge conflict along with the PR, which I was going to do this morning (though in practice that means this afternoon... ;)). I'd been considering fixing this stuff as I was likely going to have to rewrite history to sort out our boot bug, but as it's only manifesting on old-ish QEMU versions I've decided that it's not really worth making it a blocker.

If you think that's an issue then I'm happy to rewrite my history, but I do generally try to stay away from that and for this sort of thing I've yet to have any complaints. I probably will put it up near the other GENERIC_LIB stuff in my conflict resolution, though.