mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Lee Jones <lee@kernel.org>
Cc: Joseph Telaak <joseph@telaak.dev>, 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>
Subject: linux-next: manual merge of the leds-lj tree with the origin tree
Date: Fri, 27 Nov 2026 15:01:10 +0000	[thread overview]
Message-ID: <awmbNiVvKNtylm5Y@sirena.org.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 1511 bytes --]

Hi all,

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

  drivers/leds/rgb/leds-ktd202x.c

between commit:

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

from the origin tree and commit:

  84c670760a749 ("leds: rgb: ktd202x: Add Etek ET6326 support")

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-ktd202x.c
index f1822281c3e61,2e84fed016f9f..0000000000000
--- a/drivers/leds/rgb/leds-ktd202x.c
+++ b/drivers/leds/rgb/leds-ktd202x.c
@@@ -540,7 -903,12 +903,12 @@@ static int ktd202x_probe(struct i2c_cli
  	if (!count || count > KTD202X_MAX_LEDS)
  		return dev_err_probe(dev, -EINVAL, "Incorrect number of leds (%d)", count);
  
- 	chip = devm_kzalloc_flex(dev, *chip, leds, count);
+ 	caps = i2c_get_match_data(client);
+ 	if (!caps)
+ 		return -ENODEV;
+ 
+ 	/* Loops over the LEDs go up to the number of channels, not of child nodes */
 -	chip = devm_kzalloc(dev, struct_size(chip, leds, caps->num_leds), GFP_KERNEL);
++	chip = devm_kzalloc_flex(dev, *chip, leds, caps->num_leds);
  	if (!chip)
  		return -ENOMEM;
  

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

             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 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=awmbNiVvKNtylm5Y@sirena.org.uk \
    --to=broonie@kernel.org \
    --cc=joseph@telaak.dev \
    --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 \
    /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

all inboxes | Powered by JetHome®