Skip to contentSkip to conversation

linux-next: manual merge of the hid tree with the origin tree

PATCH Mark Brown 2 participants 2 messages Nov 23 – Nov 24

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

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

drivers/hid/hid-sensor-custom.c

between commit:

4dd10fbbeb9c3 ("treewide: Convert devm_kmalloc() family to the devm_kmalloc_obj() family")

from the origin tree and commit:

ac6c19392c799 ("HID: sensor: custom: Fix state lifetime during removal")

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

drivers/hid/hid-sensor-custom.c +0 -0
diff --cc drivers/hid/hid-sensor-custom.c
index c12272479d82d,4d7cb7994dd81..0000000000000
@@@ -977,7 -1019,7 +1019,7 @@@ static int hid_sensor_custom_probe(stru
  	int ret;
  	const struct hid_sensor_custom_match *match;
  
- 	sensor_inst = devm_kzalloc_obj(&pdev->dev, *sensor_inst);
 -	sensor_inst = kzalloc(sizeof(*sensor_inst), GFP_KERNEL);
++	sensor_inst = kzalloc_obj(*sensor_inst);
  	if (!sensor_inst)
  		return -ENOMEM;
  
maintainer
#1 lore raw
Quoted 28 lines · Mark Brown

Hi all,

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

drivers/hid/hid-sensor-custom.c

between commit:

4dd10fbbeb9c3 ("treewide: Convert devm_kmalloc() family to the devm_kmalloc_obj() family")

from the origin tree and commit:

ac6c19392c799 ("HID: sensor: custom: Fix state lifetime during removal")

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

drivers/hid/hid-sensor-custom.c +0 -0
diff --cc drivers/hid/hid-sensor-custom.c
index c12272479d82d,4d7cb7994dd81..0000000000000

drivers/hid/hid-sensor-custom.c

Quoted 6 lines
drivers/hid/hid-sensor-custom.c +1 -1
@@@ -977,7 -1019,7 +1019,7 @@@ static int hid_sensor_custom_probe(stru
  	int ret;
  	const struct hid_sensor_custom_match *match;
 
- 	sensor_inst = devm_kzalloc_obj(&pdev->dev, *sensor_inst);
 -	sensor_inst = kzalloc(sizeof(*sensor_inst), GFP_KERNEL);
++	sensor_inst = kzalloc_obj(*sensor_inst);

This is now merged in Linus' tree and resolved.

Signature · 2 lines
Jiri Kosina
SUSE Labs