Hi all, Today's linux-next merge of the leds-lj tree got a conflict in: drivers/leds/rgb/leds-pwm-multicolor.c between commit: 4dd10fbbeb9c3 ("treewide: Convert devm_kmalloc() family to the devm_kmalloc_obj() family") from the origin tree and commit: 68c7c6f993cb3 ("leds: pwm-multicolor: Manage the multi-led node reference") from the leds-lj 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. diff --cc drivers/leds/rgb/leds-pwm-multicolor.c index c8395fdbcbdbc,10527a64d1982..0000000000000 --- a/drivers/leds/rgb/leds-pwm-multicolor.c +++ b/drivers/leds/rgb/leds-pwm-multicolor.c @@@ -124,18 -133,15 +133,14 @@@ static int led_pwm_mc_probe(struct plat /* count the nodes inside the multi-led node */ count = fwnode_get_child_node_count(mcnode); - priv = devm_kzalloc(&pdev->dev, struct_size(priv, leds, count), - GFP_KERNEL); + priv = devm_kzalloc_flex(&pdev->dev, *priv, leds, count); - if (!priv) { - ret = -ENOMEM; - goto release_mcnode; - } + if (!priv) + return -ENOMEM; mutex_init(&priv->lock); - subled = devm_kcalloc(&pdev->dev, count, sizeof(*subled), GFP_KERNEL); + subled = devm_kzalloc_objs(&pdev->dev, *subled, count); - if (!subled) { - ret = -ENOMEM; - goto release_mcnode; - } + if (!subled) + return -ENOMEM; priv->mc_cdev.subled_info = subled; /* init the multicolor's LED class device */