Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3087680pxu; Tue, 8 Dec 2020 03:17:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJzU/6P/rsBo+5s54Lhccv1mrQ/QMca7p8FgWEl//6Pz+f4PCihlZiZd6Le7urRyus9es7oK X-Received: by 2002:a17:906:2850:: with SMTP id s16mr22064114ejc.276.1607426254681; Tue, 08 Dec 2020 03:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607426254; cv=none; d=google.com; s=arc-20160816; b=NaaRX/D4FQ0x0Fhz+UD5S0bJ8uC+eNYXXd8aCJ6gyj8M+NT9xTL8I+LkJsn/+iwdGH cm7CZlxwNB4hUUlt6SWQ5Zo30NascOCZ19Ucq0qdPRjDUfl3MXQU8sIjg8Nm3rZ6BQJ3 3rLmiHj3xRrR8Us1HsRqs/Szb9DUF93Yn0c3SwIur9eoS89G7piF0ZKlip0jN7yjC1ou kHnujePclbA7gSRamV1vAIGpTLbSEPo3lhB0JO78gHpuvLfIII9Ujk5UZkUQ4DzxlPF4 EogSzLCRIPf1Lc6GOYOktMPbalwKI/vY3VtKtovx/TP7lfGrqExAKpZG3sNqj1bOHJyj J3bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=k/YWMVCp8Xvx3iJ8GfgpbtQhrzfSCoGjWFcSc3nBKTw=; b=ALWVPZIYG1XMJkZkG2B+VGiAB3kspZ3H9eS1fM3tv/dGU6YgpjNj9SKm6a+ZbUyclW sUCj+LefAWjkmE0Aomtl7b2J/ukfD9XqtW3xKO+Tw4KvgDzn8nPn2Fgy/BVPqmXbrVE9 S1R2gveNpydwWYn7hNzpMFbntUaOk7DEuVqspU9K89Q2AWtlD9hWnlnUGnCQSclrCi+X SbDWmAJiiSnf8IiDUvZY67Ibh42Ql3WruMey18asnd3PWKodhE/6oF3F+Z5eLLMQ9hBg ZL2XQ5J55DsOYQTsblDZba94+qBU9p3k7R8LbsbezzP+aLjGnXVRkVWK5GCkGNBGiGf8 n7sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="q/8ZULrv"; 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 y12si7909364ejm.210.2020.12.08.03.17.11; Tue, 08 Dec 2020 03:17:34 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="q/8ZULrv"; 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 S1728983AbgLHLN4 (ORCPT + 99 others); Tue, 8 Dec 2020 06:13:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726993AbgLHLN4 (ORCPT ); Tue, 8 Dec 2020 06:13:56 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 080B4C061749 for ; Tue, 8 Dec 2020 03:13:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=k/YWMVCp8Xvx3iJ8GfgpbtQhrzfSCoGjWFcSc3nBKTw=; b=q/8ZULrvyCLiDe1nwkRE9hnW+2 n8njRcSwHSp1sMYWUaAzH6oKAPVpyzWV1shY2OieTVPGKyYAJLYa0QvsPXUPqoTX3K7W82wuKzcU7 casDcHJdE7hjdPaF3MMsVyXWt5t99jHMsaAfgBxyFz1jfunwQcVtrKjM8IkWIhbePbBaauncIQfRP Ck8CzSlj9ZVu+c7cI86Yz6ANnsIOA/rdvTBJP23FeDr0Cfnr2CkYgDr0tONhhpns7DZ4mHXTHpFDj kyRKcCjVDmsXHYDxfmS2Jh8EM9SLRE8gWtHN6GTIedKod1001ojr3MWkJ80ZfQ8nVmlRgeI9mAJuN XuvUSEwg==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmavg-0007Mn-E1; Tue, 08 Dec 2020 11:13:12 +0000 Date: Tue, 8 Dec 2020 11:13:12 +0000 From: Christoph Hellwig To: Jiri Slaby Cc: Greg Kroah-Hartman , Jann Horn , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: Remove dead termiox code Message-ID: <20201208111312.GA27425@infradead.org> References: <20201203020331.2394754-1-jannh@google.com> <5cca5126-60ba-d123-0f7d-47fdbac4c4db@kernel.org> <93834a92-b342-aaee-c400-2883d5df0cdc@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <93834a92-b342-aaee-c400-2883d5df0cdc@kernel.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2020 at 09:20:39AM +0100, Jiri Slaby wrote: > > > > Delete this dead code; but leave the definition of struct termiox in the > > > > UAPI headers intact. > > > > > > I am thinking -- can/should we mark the structure as deprecated so that > > > userspace stops using it eventually? > > > > If it doesn't do anything, how can userspace even use it today? :) > > Well, right. I am in favor to remove it, BUT: what if someone tries that > ioctl and bails out if EINVAL is returned. I mean: if they define a local > var of that struct type and pass it to the ioctl, we would break the build > by removing the struct completely. Even if the code didn't do anything > useful, it still could be built. So is this very potential breakage OK? Um, we do guarantee a stable ABI. We have never guaranteed that all old crappy code will continue to compile, although we avoid gratious breakage. And assuming there ever was code using termiox (which I'm not sure about to start with) it will surely have some form of feature check, and I think we are better off with that feature check not detecting the presence as that would be completely pointless. Or in short: by keeping the uapi definition we do userspace software a disfavor.