Skip to contentSkip to conversation

linux-next: manual merge of the rust tree with the coresight tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Nov 30, 2021 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the rust tree got conflicts in:

samples/Kconfig
samples/Makefile

between commit:

ede5bab874f5 ("coresight: syscfg: Example CoreSight configuration loadable module")

from the coresight tree and commit:

2218f3460793 ("samples: add Rust examples")

from the rust 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 · 39 lines
Cheers,
Stephen Rothwell

diff --cc samples/Kconfig
index 22cc921ae291,8cbd6490823f..000000000000
--- a/samples/Kconfig
+++ b/samples/Kconfig
@@@ -241,19 -223,6 +241,21 @@@ config SAMPLE_WATCH_QUEU
  	  Build example userspace program to use the new mount_notify(),
  	  sb_notify() syscalls and the KEYCTL_WATCH_KEY keyctl() function.
  
 +config SAMPLE_CORESIGHT_SYSCFG
 +	tristate "Build example loadable module for CoreSight config"
 +	depends on CORESIGHT && m
 +	help
 +	  Build an example loadable module that adds new CoreSight features
 +	  and configuration using the CoreSight system configuration API.
 +	  This demonstrates how a user may create their own CoreSight
 +	  configurations and easily load them into the system at runtime.
 +
+ source "samples/rust/Kconfig"
+ 
  endif # SAMPLES
 +
 +config HAVE_SAMPLE_FTRACE_DIRECT
 +	bool
 +
 +config HAVE_SAMPLE_FTRACE_DIRECT_MULTI
 +	bool
diff --cc samples/Makefile
index 1ae4de99c983,291663e56a3c..000000000000
--- a/samples/Makefile
+++ b/samples/Makefile
@@@ -32,4 -30,4 +32,5 @@@ obj-$(CONFIG_SAMPLE_INTEL_MEI)		+= mei
  subdir-$(CONFIG_SAMPLE_WATCHDOG)	+= watchdog
  subdir-$(CONFIG_SAMPLE_WATCH_QUEUE)	+= watch_queue
  obj-$(CONFIG_DEBUG_KMEMLEAK_TEST)	+= kmemleak/
 +obj-$(CONFIG_SAMPLE_CORESIGHT_SYSCFG)	+= coresight/
+ obj-$(CONFIG_SAMPLES_RUST)		+= rust/
#1 lore raw
Quoted 7 lines · Stephen Rothwell

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.

ACK -- looks good to me. Thanks!

Cheers,
Miguel

#2 lore raw
In reply to Stephen Rothwell
Quoted 16 lines · Stephen Rothwell

Hi all,

Today's linux-next merge of the rust tree got conflicts in:

samples/Kconfig
samples/Makefile

between commit:

ede5bab874f5 ("coresight: syscfg: Example CoreSight configuration loadable module")

from the coresight tree and commit:

2218f3460793 ("samples: add Rust examples")

Quoted 8 lines

from the rust 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.

Stephen: Thanks for addressing this.

Miguel: I have created an immutable branch that you can pull from [1].

Regards,
Mathieu

[1]. https://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git/log/?h=next-immutable

Quoted 41 lines

--
Cheers,
Stephen Rothwell

samples/Kconfig +2 -0
diff --cc samples/Kconfig
index 22cc921ae291,8cbd6490823f..000000000000
@@@ -241,19 -223,6 +241,21 @@@ config SAMPLE_WATCH_QUEU
          Build example userspace program to use the new mount_notify(),
          sb_notify() syscalls and the KEYCTL_WATCH_KEY keyctl() function.
 
 +config SAMPLE_CORESIGHT_SYSCFG
 +      tristate "Build example loadable module for CoreSight config"
 +      depends on CORESIGHT && m
 +      help
 +        Build an example loadable module that adds new CoreSight features
 +        and configuration using the CoreSight system configuration API.
 +        This demonstrates how a user may create their own CoreSight
 +        configurations and easily load them into the system at runtime.
 +
+ source "samples/rust/Kconfig"
+
  endif # SAMPLES
 +
 +config HAVE_SAMPLE_FTRACE_DIRECT
 +      bool
 +
 +config HAVE_SAMPLE_FTRACE_DIRECT_MULTI
 +      bool
samples/Makefile +1 -0
diff --cc samples/Makefile
index 1ae4de99c983,291663e56a3c..000000000000
@@@ -32,4 -30,4 +32,5 @@@ obj-$(CONFIG_SAMPLE_INTEL_MEI)                += mei
  subdir-$(CONFIG_SAMPLE_WATCHDOG)      += watchdog
  subdir-$(CONFIG_SAMPLE_WATCH_QUEUE)   += watch_queue
  obj-$(CONFIG_DEBUG_KMEMLEAK_TEST)     += kmemleak/
 +obj-$(CONFIG_SAMPLE_CORESIGHT_SYSCFG) += coresight/
+ obj-$(CONFIG_SAMPLES_RUST)            += rust/