Skip to contentSkip to conversation

linux-next: manual merge of the ipmi tree with the modules tree

PATCH Stephen Rothwell 3 participants 5 messages Nov 2, 2017

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

Hi Corey,

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

drivers/char/ipmi/ipmi_si_intf.c

between commit:

e4dca7b7aa08 ("treewide: Fix function prototypes for module_param_call()")

from the modules tree and commit:

44814ec982d2 ("ipmi_si: Move the hotmod handling to another file.")

from the ipmi tree.

I fixed it up (I used the ipmi tree version of the file and added the following merge fix patch) 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.

From: Stephen Rothwell <[email protected]>
Date: Thu, 2 Nov 2017 14:55:01 +1100
Subject: [PATCH] ipmi_si: merge fix for "treewide: Fix function prototypes for
module_param_call()"

---
 drivers/char/ipmi/ipmi_si_hotmod.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/char/ipmi/ipmi_si_hotmod.c +2 -2
index da5716159974..fc03b9be2f3d 100644
@@ -10,7 +10,7 @@
 
 #define PFX "ipmi_hotmod: "
 
-static int hotmod_handler(const char *val, struct kernel_param *kp);
+static int hotmod_handler(const char *val, const struct kernel_param *kp);
 
 module_param_call(hotmod, hotmod_handler, NULL, NULL, 0200);
 MODULE_PARM_DESC(hotmod, "Add and remove interfaces.  See"
@@ -97,7 +97,7 @@ static int check_hotmod_int_op(const char *curr, const char *option,
 	return 0;
 }
 
-static int hotmod_handler(const char *val, struct kernel_param *kp)
+static int hotmod_handler(const char *val, const struct kernel_param *kp)
 {
 	char *str = kstrdup(val, GFP_KERNEL);
 	int  rv;
Signature · 5 lines
2.14.1

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

Hi Corey,

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

drivers/char/ipmi/ipmi_si_intf.c

between commit:

Quoted 7 lines

e4dca7b7aa08 ("treewide: Fix function prototypes for module_param_call()")

from the modules tree and commit:

44814ec982d2 ("ipmi_si: Move the hotmod handling to another file.")

from the ipmi tree.

Thanks Stephen.

Kees, do you have a tree I can merge so we can avoid this going upstream?

-corey

Quoted 40 lines

I fixed it up (I used the ipmi tree version of the file and added the following merge fix patch) 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.

From: Stephen Rothwell <[email protected]>
Date: Thu, 2 Nov 2017 14:55:01 +1100
Subject: [PATCH] ipmi_si: merge fix for "treewide: Fix function prototypes for
module_param_call()"

---
  drivers/char/ipmi/ipmi_si_hotmod.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/char/ipmi/ipmi_si_hotmod.c +2 -2
index da5716159974..fc03b9be2f3d 100644
@@ -10,7 +10,7 @@
 
  #define PFX "ipmi_hotmod: "
 
-static int hotmod_handler(const char *val, struct kernel_param *kp);
+static int hotmod_handler(const char *val, const struct kernel_param *kp);
 
  module_param_call(hotmod, hotmod_handler, NULL, NULL, 0200);
  MODULE_PARM_DESC(hotmod, "Add and remove interfaces.  See"
@@ -97,7 +97,7 @@ static int check_hotmod_int_op(const char *curr, const char *option,
  	return 0;
  }
 
-static int hotmod_handler(const char *val, struct kernel_param *kp)
+static int hotmod_handler(const char *val, const struct kernel_param *kp)
  {
  	char *str = kstrdup(val, GFP_KERNEL);
  	int  rv;
#2 lore raw

+++ Corey Minyard [02/11/17 08:31 -0500]:

Quoted 13 lines · Stephen Rothwell
Quoted 12 lines

Hi Corey,

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

drivers/char/ipmi/ipmi_si_intf.c

between commit:

e4dca7b7aa08 ("treewide: Fix function prototypes for module_param_call()")

from the modules tree and commit:

Quoted 7 lines
Quoted 3 lines

44814ec982d2 ("ipmi_si: Move the hotmod handling to another file.")

from the ipmi tree.

Thanks Stephen.

Kees, do you have a tree I can merge so we can avoid this going upstream?

Hi Corey,

the modules-next tree (with the conflicting commit) is found here:

git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git#modules-next

Thanks,

Jessica

#3 lore raw
Quoted 18 lines · Jessica Yu

+++ Corey Minyard [02/11/17 08:31 -0500]:

Quoted 17 lines · Stephen Rothwell
Quoted 15 lines

Hi Corey,

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

  drivers/char/ipmi/ipmi_si_intf.c

between commit:

  e4dca7b7aa08 ("treewide: Fix function prototypes for module_param_call()")

from the modules tree and commit:

  44814ec982d2 ("ipmi_si: Move the hotmod handling to another file.")

from the ipmi tree.

Quoted 9 lines
Quoted 3 lines

Thanks Stephen.

Kees, do you have a tree I can merge so we can avoid this going upstream?

Hi Corey,

the modules-next tree (with the conflicting commit) is found here:
git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git#modules-next

Hi Jessica,

I merged this into the ipmi for-next tree, so we should be good now, assuming I did this right.

Thanks,

-corey

Quoted 3 lines

Thanks,

Jessica

#4 lore raw

+++ Corey Minyard [02/11/17 11:40 -0500]:

Quoted 25 lines · Jessica Yu
Quoted 24 lines

+++ Corey Minyard [02/11/17 08:31 -0500]:

Quoted 13 lines · Stephen Rothwell
Quoted 12 lines

Hi Corey,

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

  drivers/char/ipmi/ipmi_si_intf.c

between commit:

  e4dca7b7aa08 ("treewide: Fix function prototypes for module_param_call()")

from the modules tree and commit:

Quoted 7 lines
Quoted 3 lines

  44814ec982d2 ("ipmi_si: Move the hotmod handling to another file.")

from the ipmi tree.

Thanks Stephen.

Kees, do you have a tree I can merge so we can avoid this going upstream?

Hi Corey,

Quoted 8 lines
Quoted 3 lines

the modules-next tree (with the conflicting commit) is found here:
git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git#modules-next

Hi Jessica,

I merged this into the ipmi for-next tree, so we should be good now, assuming I did this right.

Thanks Corey!

Jessica