[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5cca5126-60ba-d123-0f7d-47fdbac4c4db@kernel.org>
Date: Fri, 4 Dec 2020 08:22:41 +0100
From: Jiri Slaby <jirislaby@...nel.org>
To: Jann Horn <jannh@...gle.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] tty: Remove dead termiox code
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?
--
js
Powered by blists - more mailing lists