Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp189398pxu; Fri, 4 Dec 2020 00:20:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYQtNSOWkRVsK4Pq785ecN9sVSeD+tsIj/R3b/NKAmlXW5rKhQOFTXKAs/hjObymOyEGfs X-Received: by 2002:a50:e143:: with SMTP id i3mr6387567edl.340.1607070014992; Fri, 04 Dec 2020 00:20:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607070014; cv=none; d=google.com; s=arc-20160816; b=fo8U0F84nsviC/AQ1T5qA+wVbPKCAt6xZT85rDm8h2FnyJvUBvNXGSHw6/7HIf+4aJ HZGbIPk+v2xgIBVX7k50osGSRk2zmwoZSifRXZEOzqTpyzIOOVJafDkCrbY0Xyiihc3L PlZ6Bbdui2LH/w5StBi5cW+7QKRvaNY+THQzt7nBer26pbyV7Hc8YzhyJB+YrHPqm5RM YHJkQbHN6b2Zs4G6AYSxWYEAaS1HBBAkjnHcl34jv0NsK8RHxra7hLXz+ST4F2wAgOzc cOsTM4Zn0zXrcjhd8a5E7Z9kVVEsrZ2AjlHYG+PucUOSpjI/MkGzkZqTrh6qrCUl9uKn eIOg== 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:dkim-signature:date; bh=r8bcysL5QKYx3qBwIUsUy6XfDJxM/mEbOKU3A1vMNZs=; b=DLUOasfYh56qtXZmHzALrBuFpF6wlZdRD0NzgPpq4NRVqGYyslFn1U8nLOwxfyQRp+ 1o3vhzpp7kBGk8fKrmtlbH2toQMVzs+wtt+dQcyjiIOLIOioLDICXi5LGgY/217kOY6a TEgNF30bqajeZ09CYBNcIgLhvl84ieKfSI3uUJ2l1BzFVd8C8HbUQOQan4c6v1Xg+utL LmuiptwRynqpICOtTkrUasFge10p86wONl25udQSnRa/mElXvbHZorI+Tp3NcbJ8+2qe gPZ3kpt+PKAZWjocESmFXIKnzdsDvScnr+MtFp/mG045nrdn4SA2Zxq5rCDRbnrrgi5t 6THg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tVOcSkfC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si933625eja.593.2020.12.04.00.19.51; Fri, 04 Dec 2020 00:20:14 -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=@linuxfoundation.org header.s=korg header.b=tVOcSkfC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728831AbgLDIRJ (ORCPT + 99 others); Fri, 4 Dec 2020 03:17:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:33348 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbgLDIRI (ORCPT ); Fri, 4 Dec 2020 03:17:08 -0500 Date: Fri, 4 Dec 2020 09:17:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607069788; bh=nH8hYoVi+qYnG9o1LKOwLqM+yBq7lDyRPc4Frhyv9Ek=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=tVOcSkfCVxWnye88dEP2JLb8bDZ+B0AwPy5pfrkYuKMMr/aa4QXcTXN8JJ6ffjdEk HYM/QDK5tlrKR+MBmwI3MT6Dj4Cy2Abwd6S1oe3m/r6FY3alVY2iC24Ds/b5UrTYtx hx+qR95eVxkIBwSEGJj/bzZYA3qWQHK/PAAMRmgw= From: Greg Kroah-Hartman To: Jiri Slaby Cc: Jann Horn , linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: Remove dead termiox code Message-ID: References: <20201203020331.2394754-1-jannh@google.com> <5cca5126-60ba-d123-0f7d-47fdbac4c4db@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5cca5126-60ba-d123-0f7d-47fdbac4c4db@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 04, 2020 at 08:22:41AM +0100, Jiri Slaby wrote: > On 03. 12. 20, 3:03, Jann Horn wrote: > > set_termiox() and the TCGETX handler bail out with -EINVAL immediately > > if ->termiox is NULL, but there are no code paths that can set > > ->termiox to a non-NULL pointer; and no such code paths seem to have > > existed since the termiox mechanism was introduced back in > > commit 1d65b4a088de ("tty: Add termiox") in v2.6.28. > > Similarly, no driver actually implements .set_termiox; and it looks like > > no driver ever has. > > Nice! > > > 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? :)