Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp369961pxa; Fri, 31 Jul 2020 14:30:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7hzjYivetRez/XV6hapuG2nJTtL3oIgX2cvhAQD8uMez2DNOMD5kJnWB48PO9OTAMMbJb X-Received: by 2002:a17:906:6408:: with SMTP id d8mr5908605ejm.345.1596231001957; Fri, 31 Jul 2020 14:30:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596231001; cv=none; d=google.com; s=arc-20160816; b=j6PjE8dPhxnal+KJlygqD3XTZojldxrncDXCupn0Fuc31Wfy7b/HGeY6d1kT20iJdS 5G2EIajowq2NCXJsWlORTqVMfr+mq9oYq4lgT1RJJcc3bhq/HtCdRdVjR82BCQgriYU+ j+B4fGQcpe1HJYczEFHr7KaHNByJxccRwilyCIH5jGw7CbrqZkJ9WOICBHCdhzLNz7ua q+impHXdp6OozMRccSSs/JSiq2UfGTPd9B0cVI6kSwR8s55y9p5cAXFJ6Z35+7/POkBS 96EHbc7tP65xjzDu+L7DYbceuMSS7BUND6PeTEapsJMJT51tkgATcRKiKz4IAL8FDFED +WJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=C47Vi+HHrK7Cue2jH8xY8RGPTw6qiTRkU5GQoC52bkE=; b=mu3KqnRrkoId5GJIs5yWwMqDjl4C7smEKwX6B04COeVaKP97EA7SbUYdQS/H5Fd9MY NpN0cLqe0Z4bvqY+7lQXc1C0iAaYIBweJCkPpHT+DI335wJp2HCUE/p2zl2ekMWXGnaU noq3uN+zwM/1u+3G2TJWR1gGbwcQQN9aF+w9gmznQy9F9nTLQQaJ+ApS6wE4wFYzmxFM JuRbtwoFXv9ZVir/tHaTzyOvjkN4s9PzzenLbbbQlBsBW8435nDwhn7NemCC/9nChomC S/A4v/paq7dDhvvNVY8fzf4M5ZRatLOdXmN0wqQda+1YTdCmZuh7hJ3il8IlaOoBX+LH ithQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 18si7431447edv.191.2020.07.31.14.29.39; Fri, 31 Jul 2020 14:30:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728573AbgGaV1a (ORCPT + 99 others); Fri, 31 Jul 2020 17:27:30 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:39629 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727888AbgGaV1a (ORCPT ); Fri, 31 Jul 2020 17:27:30 -0400 X-Originating-IP: 50.39.163.217 Received: from localhost (50-39-163-217.bvtn.or.frontiernet.net [50.39.163.217]) (Authenticated sender: josh@joshtriplett.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id BAB531C0002; Fri, 31 Jul 2020 21:27:24 +0000 (UTC) Date: Fri, 31 Jul 2020 14:27:21 -0700 From: josh@joshtriplett.org To: Arnd Bergmann Cc: ksummit , Mike Rapoport , linux-arch , Linux Kernel Mailing List Subject: Re: [Ksummit-discuss] [TECH TOPIC] Planning code obsolescence Message-ID: <20200731212721.GC32670@localhost> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 31, 2020 at 05:00:12PM +0200, Arnd Bergmann wrote: > The majority of the code in the kernel deals with hardware that was made > a long time ago, and we are regularly discussing which of those bits are > still needed. In some cases (e.g. 20+ year old RISC workstation support), > there are hobbyists that take care of maintainership despite there being > no commercial interest. In other cases (e.g. x.25 networking) it turned > out that there are very long-lived products that are actively supported > on new kernels. > > When I removed support for eight instruction set architectures in 2018, > those were the ones that no longer had any users of mainline kernels, > and removing them allowed later cleanup of cross-architecture code that > would have been much harder before. > > I propose adding a Documentation file that keeps track of any notable > kernel feature that could be classified as "obsolete", and listing > e.g. following properties: > > * Kconfig symbol controlling the feature > > * How long we expect to keep it as a minimum > > * Known use cases, or other reasons this needs to stay > > * Latest kernel in which it was known to have worked > > * Contact information for known users (mailing list, personal email) > > * Other features that may depend on this > > * Possible benefits of eventually removing it We had this once, in the form of feature-removal-schedule.txt. It was, itself, removed in commit 9c0ece069b32e8e122aea71aa47181c10eb85ba7. I *do* think there'd be value in having policies and processes for "how do we carefully remove a driver/architecture/etc we think nobody cares about". That's separate from having an actual in-kernel list of "things we think we can remove".