ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: "Eric W. Biederman" <ebiederm@xmission.com>
To: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	 Rob Herring <robherring2@gmail.com>,
	 Jiri Kosina <jikos@kernel.org>,
	ksummit@lists.linux.dev
Subject: Re: [MAINTAINER SUMMIT] Enforcing API deprecation
Date: Wed, 03 Sep 2025 08:19:22 -0500	[thread overview]
Message-ID: <87ecsn3c85.fsf@email.froward.int.ebiederm.org> (raw)
In-Reply-To: <CACMJSevrym+yvkmNTXcavDG7Xi5wOrnYYunuMo4ZMP7ti-ve7Q@mail.gmail.com> (Bartosz Golaszewski's message of "Thu, 28 Aug 2025 17:11:09 +0200")

Bartosz Golaszewski <bartosz.golaszewski@linaro.org> writes:

> On Wed, 27 Aug 2025 at 18:58, Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
>>
>> All I'm saying is that people who do new API's should either just
>> accept that, or just convert between the two. None of this "deprecate"
>> garbage. None of this "blame other developers because they use the old
>> interface".
>>
>
> How about "let developers know, people are actively working to replace
> this old, bad* API with a better alternative so at least don't
> (unknowingly) sabotage their efforts"?

Perhaps the old API could be hidden in the header files unless
an appropriate macro is defined before including the headers.
Something like:

#define I_REALLY_REALLY_WANT_TO_USE_THIS_OLD_JANKY_API

Everything can be mass converted to that safely, and any random
stragglers can be updated quickly.

At which point any new uses will be at least give people a hint
that something else is going on.  There would still be a lot of
cat herding involved to get the conversion done.

Finding uses of the old api would be a simple as grepping for the
define, or changing the define in the header and doing a complete
kernel build.

Eric

  reply	other threads:[~2025-09-03 14:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-26 19:57 Bartosz Golaszewski
2025-08-26 20:12 ` Linus Torvalds
2025-08-26 20:28   ` Jiri Kosina
2025-08-26 22:44     ` Linus Torvalds
2025-08-26 23:25       ` Al Viro
2025-08-27 15:07       ` Bartosz Golaszewski
2025-08-27 16:42         ` Rob Herring
2025-08-27 16:57           ` Linus Torvalds
2025-08-28 15:11             ` Bartosz Golaszewski
2025-09-03 13:19               ` Eric W. Biederman [this message]
2025-08-27 14:47   ` Bartosz Golaszewski
2025-08-27 14:58     ` Julia Lawall
2025-08-27 15:31       ` Bartosz Golaszewski
2025-08-29  9:00     ` Krzysztof Kozlowski
2025-08-26 20:24 ` Johannes Berg
2025-08-26 21:02   ` Laurent Pinchart

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=87ecsn3c85.fsf@email.froward.int.ebiederm.org \
    --to=ebiederm@xmission.com \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=jikos@kernel.org \
    --cc=ksummit@lists.linux.dev \
    --cc=robherring2@gmail.com \
    --cc=torvalds@linux-foundation.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