From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 67C391118 for ; Thu, 6 Sep 2018 02:24:40 +0000 (UTC) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 11A0A8B for ; Thu, 6 Sep 2018 02:24:39 +0000 (UTC) Date: Wed, 5 Sep 2018 22:24:37 -0400 From: Steven Rostedt To: Stephen Rothwell Message-ID: <20180905222437.5d2a1730@vmware.local.home> In-Reply-To: <20180906094158.1eba4f50@canb.auug.org.au> References: <20180906094158.1eba4f50@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ksummit Subject: Re: [Ksummit-discuss] [MAINTAINERS SUMMIT] API replacement/deprecation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 6 Sep 2018 09:41:58 +1000 Stephen Rothwell wrote: > Hi all, > > On Wed, 5 Sep 2018 15:57:02 -0700 Kees Cook wrote: > > > > I'd like to discuss ways that we could deprecate APIs more sanely. At > > present I've seen (and used) two approaches, fast and slow: > > As the one who often has the "fun" of coping with API changes, I would > like to be involved in this discussion. > > My first point would be that (almost) every time someone has tried the > "ultra fast" method (i.e. add new interface, convert everyone in the > current kernel, remove the old interface all in one go) we have had new > users of the old interface introduced at the same time. (pain for the > linux-next bunny :-() Can this be solved with a script on kernel.org? Or a zero-day bot that checks new commits (and perhaps patches to LKML) that checks for deprecated functions being added by new code (like strcpy) and the author would then get a nasty email about adding deprecated interfaces. This would solve the issue of not everyone using the latest checkpatch, as this wouldn't be a voluntary self-check. It would also quickly educate developers on what code is not acceptable to be added. -- Steve