Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp397182pxy; Wed, 5 May 2021 05:05:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTtVoR6UgNBRLAvD9iCaCKXrJMWpzL8q4IVyqzHJXgN/oDwOfo5I8KHF3c10I70FCV2cuU X-Received: by 2002:a63:8f17:: with SMTP id n23mr20387688pgd.82.1620216308335; Wed, 05 May 2021 05:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620216308; cv=none; d=google.com; s=arc-20160816; b=WZe2wpgRU3LsIlJFYcMKE6c2Rz/w5SoBqOIsCmogUKQuz2dNeTLdTBD43TaickIm5v 6Vrf0KfaPdMJtYElFINke0b/pQg+DobDVn+VZzWuuXm4TBtiXkEZoHQeAnvuZ2fpBFrz Hyyh66CEIeOrAvJsrAFOgW/c/Ap5BLhsLv7W8pYa/sx55vhuihHic0qm6YmCe8RsRBrM yN6JFVF/X2co9vifdge7wy3L6EqsGFK0yo9H37kckWj4ZKEZf0gSCn4OWkdMGxZiSgjX hRelC9rGvsDaV8yKg1NM50Hmg2J0qd4RGqUNyJf0GjdqnMD39oSbt1JXr93s4LySOMnD RGwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=o42A+9go5ED1c11kvPwFs6RQMzvFX9O6YKPvTT98hAA=; b=kslYXCf7r/gnDWCaiTos0lpq2tRilfj4oVVzWCsSMRXLLuVat+k9vwZwH/soIyt58V CkQid+MnJOHl+GhTRJPIiV3fUG+q1tgDS4qeQJ5lGdB5ku9BWEdKRsvb8R2zlOJitJJp 1ccq6fPV/3h/GlYVVRviTJtaM/nRyj0BwVO5Dyo2w2aD18wB3zECbg287WbVvmLX6Vmu c3Oumcwnutsz27qBlgptaEyyJ2cGy7p8bDKNCtjFq/QCDz0Kprr71RRa4/yZANd2j8LO ATpuKgqgCkDqoTnc3JVoaObt2seT+B1RxW+HjMRxmeaMyDCnFwMRgznEB8UJEFgT1o1w IM4w== 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 lx2si24968801pjb.53.2021.05.05.05.04.53; Wed, 05 May 2021 05:05:08 -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 S232597AbhEEKfI (ORCPT + 99 others); Wed, 5 May 2021 06:35:08 -0400 Received: from ivanoab7.miniserver.com ([37.128.132.42]:48566 "EHLO www.kot-begemot.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232592AbhEEKfE (ORCPT ); Wed, 5 May 2021 06:35:04 -0400 Received: from tun252.jain.kot-begemot.co.uk ([192.168.18.6] helo=jain.kot-begemot.co.uk) by www.kot-begemot.co.uk with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1leEqy-0000T9-JT; Wed, 05 May 2021 10:34:06 +0000 Received: from jain.kot-begemot.co.uk ([192.168.3.3]) by jain.kot-begemot.co.uk with esmtp (Exim 4.92) (envelope-from ) id 1leEqv-0001wt-BS; Wed, 05 May 2021 11:34:04 +0100 Subject: Re: [PATCH 31/35] tty: remove empty tty_operations::set_termios To: Jiri Slaby , gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jeff Dike , Richard Weinberger , Karsten Keil References: <20210505091928.22010-1-jslaby@suse.cz> <20210505091928.22010-32-jslaby@suse.cz> From: Anton Ivanov Message-ID: <6e21c5b1-68c8-9aaa-61e0-dba24cc8339c@cambridgegreys.com> Date: Wed, 5 May 2021 11:34:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210505091928.22010-32-jslaby@suse.cz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -1.0 X-Spam-Score: -1.0 X-Clacks-Overhead: GNU Terry Pratchett Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/05/2021 10:19, Jiri Slaby wrote: > tty_operations::set_termios is optional. If it doesn't exist, nothing is > called. So remove almost¹ empty set_termios implementations. > > ¹ capi had an useless pr_debug in it. > > Signed-off-by: Jiri Slaby > Cc: Jeff Dike > Cc: Richard Weinberger > Cc: Anton Ivanov > Cc: Karsten Keil > --- > arch/um/drivers/line.c | 5 ----- > arch/um/drivers/line.h | 1 - > arch/um/drivers/ssl.c | 1 - > arch/um/drivers/stdio_console.c | 1 - > drivers/isdn/capi/capi.c | 6 ------ > 5 files changed, 14 deletions(-) > > diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c > index 159434851417..fbc623d2cc07 100644 > --- a/arch/um/drivers/line.c > +++ b/arch/um/drivers/line.c > @@ -211,11 +211,6 @@ int line_write(struct tty_struct *tty, const unsigned char *buf, int len) > return ret; > } > > -void line_set_termios(struct tty_struct *tty, struct ktermios * old) > -{ > - /* nothing */ > -} > - > void line_throttle(struct tty_struct *tty) > { > struct line *line = tty->driver_data; > diff --git a/arch/um/drivers/line.h b/arch/um/drivers/line.h > index 3325e2bc64e4..bdb16b96e76f 100644 > --- a/arch/um/drivers/line.h > +++ b/arch/um/drivers/line.h > @@ -66,7 +66,6 @@ extern int line_setup(char **conf, unsigned nlines, char **def, > char *init, char *name); > extern int line_write(struct tty_struct *tty, const unsigned char *buf, > int len); > -extern void line_set_termios(struct tty_struct *tty, struct ktermios * old); > extern unsigned int line_chars_in_buffer(struct tty_struct *tty); > extern void line_flush_buffer(struct tty_struct *tty); > extern void line_flush_chars(struct tty_struct *tty); > diff --git a/arch/um/drivers/ssl.c b/arch/um/drivers/ssl.c > index 6476b28d7c5e..41eae2e8fb65 100644 > --- a/arch/um/drivers/ssl.c > +++ b/arch/um/drivers/ssl.c > @@ -99,7 +99,6 @@ static const struct tty_operations ssl_ops = { > .chars_in_buffer = line_chars_in_buffer, > .flush_buffer = line_flush_buffer, > .flush_chars = line_flush_chars, > - .set_termios = line_set_termios, > .throttle = line_throttle, > .unthrottle = line_unthrottle, > .install = ssl_install, > diff --git a/arch/um/drivers/stdio_console.c b/arch/um/drivers/stdio_console.c > index 37b127941e6f..e8b762f4d8c2 100644 > --- a/arch/um/drivers/stdio_console.c > +++ b/arch/um/drivers/stdio_console.c > @@ -106,7 +106,6 @@ static const struct tty_operations console_ops = { > .chars_in_buffer = line_chars_in_buffer, > .flush_buffer = line_flush_buffer, > .flush_chars = line_flush_chars, > - .set_termios = line_set_termios, > .throttle = line_throttle, > .unthrottle = line_unthrottle, > .hangup = line_hangup, > diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c > index 6d99b93bb09e..693b0bc31395 100644 > --- a/drivers/isdn/capi/capi.c > +++ b/drivers/isdn/capi/capi.c > @@ -1197,11 +1197,6 @@ static unsigned int capinc_tty_chars_in_buffer(struct tty_struct *tty) > return mp->outbytes; > } > > -static void capinc_tty_set_termios(struct tty_struct *tty, struct ktermios *old) > -{ > - pr_debug("capinc_tty_set_termios\n"); > -} > - > static void capinc_tty_throttle(struct tty_struct *tty) > { > struct capiminor *mp = tty->driver_data; > @@ -1267,7 +1262,6 @@ static const struct tty_operations capinc_ops = { > .flush_chars = capinc_tty_flush_chars, > .write_room = capinc_tty_write_room, > .chars_in_buffer = capinc_tty_chars_in_buffer, > - .set_termios = capinc_tty_set_termios, > .throttle = capinc_tty_throttle, > .unthrottle = capinc_tty_unthrottle, > .stop = capinc_tty_stop, > Acked-By: Anton Ivanov -- Anton R. Ivanov Cambridgegreys Limited. Registered in England. Company Number 10273661 https://www.cambridgegreys.com/