From: Mark Brown <broonie@kernel.org>
To: Lee Jones <lee@kernel.org>
Cc: Kees Cook <kees@kernel.org>, Kees Cook <kees+treewide@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Linux Next Mailing List <linux-next@vger.kernel.org>,
Yige Jiang <yigejiang86@gmail.com>
Subject: linux-next: manual merge of the leds-lj tree with the origin tree
Date: Fri, 27 Nov 2026 15:01:22 +0000 [thread overview]
Message-ID: <awmbQoTloNNaeRhb@sirena.org.uk> (raw)
[-- Attachment #1: Type: text/plain, Size: 1755 bytes --]
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 */
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2026-11-27 15:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 15:01 Mark Brown [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-27 15:01 linux-next: manual merge of the leds-lj tree with the origin tree Mark Brown
2026-11-20 15:41 Mark Brown
2026-11-27 13:29 ` Lee Jones
2026-11-27 15:10 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awmbQoTloNNaeRhb@sirena.org.uk \
--to=broonie@kernel.org \
--cc=kees+treewide@kernel.org \
--cc=kees@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=yigejiang86@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox