Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp493889pxb; Tue, 14 Sep 2021 02:13:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnzCavOHDRoIx7qWUt3S8kLPIEWEFYBPsaB8YV9214v1c5MJG8qYyoJp4HCwdJy44us9WB X-Received: by 2002:a5d:9d01:: with SMTP id j1mr13071195ioj.27.1631610818896; Tue, 14 Sep 2021 02:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631610818; cv=none; d=google.com; s=arc-20160816; b=ASYDraWvNCUvPVmeJTvjM4Eby87k7f1eaW8JFIYsOs4NTi2HO2jGPJ3vZqetUY/zE1 DRXA8Ehq15b4//D1iQFFBfIIixS4dKZI6ImoptBOkJ2IVxYD07Y5KH2dTmuVnYch6OCq /ZtK7ALl+8n2K5Tf72RZpzN8frzO+lV+3avLTh+pt8f7BRSrB28p4V7bTsPIWw+3ky11 /P6jV9iAP6TL3Tj6KpTcARp3EMZR1xigNxaJ29FGFjeUvJ0YmcU/hqwCZ87ZsLBiEXLr IwU//AJ1XddP5OQtewCE1eAwJNbyfbWEsBHHKR+k8bK17qSMejmls9JESmUqSlvQX/To Fn7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=Afy0W5Ch0lQc/0H0xlqzCO70rTwo6T7/zH/NeO0NZWg=; b=L0WEXRTVNoQ1n4E/N981QFvKJg6UpXEVdt0qXt++Z3nnLlxW24Sv0pBQ9kWTarNhLN XzbiME7k0fqFzgtsXfJq246OKGqXkRq6boFvT+FA19J2exJjpeMydxS/oW2TYXj81kQN KNnnoMag88p4lL8yr7zhNqO4/08I+j2opfRe5/4vLx3KZHqagSj8OX7o/K62mgVZAfsh FSZs2biDCXo09oyFdXKlQlnUbIeMHFdwban96vESrWXbhdnCq0SYEDi8iQRSI4zcbMov JkzsrZu2zQJDwgMpFXLVFOim/Y/Ti1yFgjPW+UJf0EKPApUGQ+pCEDvsL3OuWWj19QK5 xIIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=2cNPdCLA; dkim=neutral (no key) header.i=@suse.cz; 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 n22si9564324ioo.36.2021.09.14.02.13.28; Tue, 14 Sep 2021 02:13:38 -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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=2cNPdCLA; dkim=neutral (no key) header.i=@suse.cz; 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 S230143AbhINJM7 (ORCPT + 99 others); Tue, 14 Sep 2021 05:12:59 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:43304 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229526AbhINJMx (ORCPT ); Tue, 14 Sep 2021 05:12:53 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 627811FDD8; Tue, 14 Sep 2021 09:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1631610695; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Afy0W5Ch0lQc/0H0xlqzCO70rTwo6T7/zH/NeO0NZWg=; b=2cNPdCLAtMVIAkKoq0FDgNFwn4ZmVm1gWTGTRs+XObz68PyTXIiqa7jExCtfLRe+8mes9F BhDKlHxT0e0iMMcuvLepHcrIHOgb6dK3aBdjVWndB58eB47hdV2Z1vzSuJzYrFFcrqqoeu ekP3H96ovbeHBsZ8o5KRylb98dm/hSw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1631610695; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Afy0W5Ch0lQc/0H0xlqzCO70rTwo6T7/zH/NeO0NZWg=; b=6Kk8lUvZjStigNV41t9A2eHz9fqTrTGEbBWNj6T4EvFXDg2khEPIgjrps7WZFo26THs+P+ U3ovA/jZEYAoK+Bg== Received: from localhost.localdomain (unknown [10.100.201.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 4667DA3B8E; Tue, 14 Sep 2021 09:11:35 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 02/16] tty: remove flags from struct tty_ldisc_ops Date: Tue, 14 Sep 2021 11:11:20 +0200 Message-Id: <20210914091134.17426-2-jslaby@suse.cz> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210914091134.17426-1-jslaby@suse.cz> References: <20210914091134.17426-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The last user was apparently removed by commit a352def21a64 (tty: Ldisc revamp) in 2008. So remove the field completely, the only setter (n_tty_inherit_ops) and also its only possible value (LDISC_FLAG_DEFINED). Signed-off-by: Jiri Slaby --- drivers/tty/n_tty.c | 1 - include/linux/tty_ldisc.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 0965793dfe4f..dcb5e6ef8747 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -2450,7 +2450,6 @@ void n_tty_inherit_ops(struct tty_ldisc_ops *ops) { *ops = n_tty_ops; ops->owner = NULL; - ops->flags = 0; } EXPORT_SYMBOL_GPL(n_tty_inherit_ops); diff --git a/include/linux/tty_ldisc.h b/include/linux/tty_ldisc.h index b1d812e902aa..1f37184eee63 100644 --- a/include/linux/tty_ldisc.h +++ b/include/linux/tty_ldisc.h @@ -180,7 +180,6 @@ extern int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass, struct tty_ldisc_ops { char *name; int num; - int flags; /* * The following routines are called from above. @@ -220,8 +219,6 @@ struct tty_ldisc { struct tty_struct *tty; }; -#define LDISC_FLAG_DEFINED 0x00000001 - #define MODULE_ALIAS_LDISC(ldisc) \ MODULE_ALIAS("tty-ldisc-" __stringify(ldisc)) -- 2.33.0