Skip to contentSkip to conversation

linux-next: manual merge of the kunit-next tree with Linus' tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Dec 18, 2023 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

lib/kunit/test.c

between commit:

2e3c94aed51e ("kunit: Reset suite counter right before running tests")

from Linus' tree and commit:

6d696c4695c5 ("kunit: add ability to run tests after boot using debugfs")

from the kunit-next 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 · 21 lines
Cheers,
Stephen Rothwell

diff --cc lib/kunit/test.c
index 7aceb07a1af9,e803d998e855..000000000000
--- a/lib/kunit/test.c
+++ b/lib/kunit/test.c
@@@ -708,8 -675,11 +713,13 @@@ int __kunit_test_suites_init(struct kun
  		return 0;
  	}
  
 +	kunit_suite_counter = 1;
 +
+ 	/* Use mutex lock to guard against running tests concurrently. */
+ 	if (mutex_lock_interruptible(&kunit_run_lock)) {
+ 		pr_err("kunit: test interrupted\n");
+ 		return -EINTR;
+ 	}
  	static_branch_inc(&kunit_running);
  
  	for (i = 0; i < num_suites; i++) {
#1 lore raw
Quoted 8 lines · Stephen Rothwell

Hi all,

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

lib/kunit/test.c

between commit:

Quoted 8 lines

2e3c94aed51e ("kunit: Reset suite counter right before running tests")

from Linus' tree and commit:

6d696c4695c5 ("kunit: add ability to run tests after boot using debugfs")

from the kunit-next tree.

Thank you Stephen. It is fixed now.

thanks,
-- Shuah