From: "Uwe Kleine-König (The Capable Hub)" <u.kleine-koenig@baylibre.com>
To: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Peter Huewe <peterhuewe@gmx.de>, Jason Gunthorpe <jgg@ziepe.ca>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tpm: Use named initializers for arrays of i2c_device_data
Date: Mon, 25 May 2026 09:26:40 +0200 [thread overview]
Message-ID: <ahP3V5viwMtnH9PC@monoceros> (raw)
In-Reply-To: <ahBPlW1l2RAdxpT6@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 1912 bytes --]
Hello Jarkko,
On Fri, May 22, 2026 at 03:44:05PM +0300, Jarkko Sakkinen wrote:
> On Fri, May 22, 2026 at 10:16:39AM +0200, Uwe Kleine-König (The Capable Hub) wrote:
> > On Fri, May 22, 2026 at 12:43:23AM +0300, Jarkko Sakkinen wrote:
> > > Clean up can be side-effect but not a purpose.
> >
> > Oh, I disagree. Having code in a state where you can easily see what
> > happens helps to concentrate on the parts that are more complicated. So
> > it's a win for maintenance and lowering the entry bar for people who are
> > not used to Linux kernel code. There are parts in the kernel that are
> > complicated, and we won't get rid of them, because operating systems are
> > complicated. But my POV here is that making it easier where it's
> > possible is a good thing and a reason for itself. You might call that a
> > paper cut only, but these add up.
> >
> > Also with the union in i2c_device_id the compiler warns you if some code
> > is lacking a "const". So it becomes harder to make mistakes, this is
> > also a reason that in my book is good enough for itself.
>
> Actually what I said is more important than ever before given AI agents.
>
> If I start to accept pure cleanups from humans it's like invitiation for
> slop. This is actually an area where it would be advicable for any
> maintainer to tighten the acceptance criteria.
I also disagree here. If a patch improves something (be it security,
runtime behaviour or maintainability) that should be reason enough to
accept it. If it's created by AI (or a by a newbie with the help of AI)
that's a reason to make sure the patch has the intended effect, but
that's essentially the same for any patch.
I agree that AI might get problematic if it floods maintainers and
effectively becomes a DOS attack to maintainer resources. But that
doesn't necessarily makes the patches it proposes bad.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2026-05-25 7:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-18 13:40 [PATCH] tpm: Use named initializers for arrays of i2c_device_data Uwe Kleine-König (The Capable Hub)
2026-05-21 21:43 ` Jarkko Sakkinen
2026-05-22 8:16 ` Uwe Kleine-König (The Capable Hub)
2026-05-22 12:44 ` Jarkko Sakkinen
2026-05-25 7:26 ` Uwe Kleine-König (The Capable Hub) [this message]
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=ahP3V5viwMtnH9PC@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=jarkko@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=peterhuewe@gmx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.