Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp865573rwl; Thu, 10 Aug 2023 02:54:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiXMH+cOKkzjQ45KWA8BE2lZHEslft1GxFzBhmZDiL6gLraKJNAGoxORUGp+ZJU466/NjU X-Received: by 2002:a17:907:7788:b0:99c:bcb1:3a67 with SMTP id ky8-20020a170907778800b0099cbcb13a67mr1676496ejc.30.1691661293631; Thu, 10 Aug 2023 02:54:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691661293; cv=none; d=google.com; s=arc-20160816; b=PN3aoOT/HDsc0szX+G8HXXBCLEUhku6u+9G1o7U0XAQz9YtvhPpbTFzh0IH8ifaMB8 VQbwt2L+K/r4x/OELlC1eZ8rY+F2EZp7ejSqRdVV6L+O0yGUVzDDKB849N4hxW4h+LHm /dfOzFD9SD7glcH10CBAxSbVpFX4vegdUwAqK9oYa/1vPQBfEx8k2uhDupKITrt0+CbN it0zsfZ5OdDyNaxwvSgrjWooBO9LiGOcrYtbMw709ZB0XrgWWMuF0MSPK3QTvhxZ12c1 u+G+PSIkH0d/cZ93N5etk2WHqfC60ODEWG6KWNkc4w02+DFjHnKNVEobimUOXCluZFvH j2uw== 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; bh=nrUvdGwC9UU/nmJYejF9E73Rv/zvbZA/kQW39a3IqUo=; fh=k7XzfpyqnKqnwxpqVF0NftrWa2FIpeAcHVbykF5xarA=; b=WM422WVJk9R42PDIuh3QAMfWWeO4hhSydfB/NdJN597CO/ZszUrQDxb73/Xb9Yln+O +EMUwOpINXYkwWkaHaSolzL9X6Oi5VTJZM2M0ewAHFl68WinM3m0FpYc8vWzV2xLXd2D +jxMV8vukMG7tvL8DdhKV145WIcumRs7sR9LGzhVW60yy+l+H76TfYoP5CQjA4k8HBU3 KYC7psckMafVynTDTwb9RPiITcqcDs5xpOz8eIH6fo4rjYF1pB1fGUz6pf8IVg4utn8X KfkdOIcS9iHzrw1vIcczqPKV/WxEi6l11f6DQxsOcCggrymcMiWxvk2nL1x1Y8koIsTU GnPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X4JDTjbZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a1709064dc800b0099329a3a8d0si1228124ejw.999.2023.08.10.02.54.29; Thu, 10 Aug 2023 02:54:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X4JDTjbZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234746AbjHJJP4 (ORCPT + 99 others); Thu, 10 Aug 2023 05:15:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234460AbjHJJP2 (ORCPT ); Thu, 10 Aug 2023 05:15:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 768C52700; Thu, 10 Aug 2023 02:15:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 14D20612F0; Thu, 10 Aug 2023 09:15:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68C2BC433C8; Thu, 10 Aug 2023 09:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691658926; bh=zHa3PXKIEH54GgY+R1eXwduesS3j83ceqDEy55gq1po=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X4JDTjbZIY8YtcSnD9vNlkljLsDKWJ5A6kwyvYl92XcbxQvPUpsYwXdA/KhnGvU31 V9guFzglx2loNINCMRk9Yso+4v1OUUZ6mD8l6p8vn2C3jaeIlhu8GSTUN/4O/Fp4sB 9KNmlXfCszfwp7v/h1du1xYEBC9L45Pe5XcZqHjD+JRaGjQdjvMbmN8DdDzhTLCVlL VYM94cYNf2nJLaMW7iHT2c7TrYl3NkJX0iNiXwFRo684B7RhcmX1KGLr+k5P+7jxe+ j5ywTTBeuUwR3KXAw4MHYss+JX8gXWyoLIReYR3o1Bppa88jr2kfu4e3KmxLhR/nKH uZr3ElcZlvJ5w== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" Subject: [PATCH 07/36] tty: drop tty_debug_wait_until_sent() Date: Thu, 10 Aug 2023 11:14:41 +0200 Message-ID: <20230810091510.13006-8-jirislaby@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230810091510.13006-1-jirislaby@kernel.org> References: <20230810091510.13006-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's a nop for everyone as TTY_DEBUG_WAIT_UNTIL_SENT is never set. Provided, we have better debugging/printout mechanisms nowadays, remove this mechanism. Signed-off-by: Jiri Slaby (SUSE) --- drivers/tty/tty_ioctl.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index e3e1318f53fd..f63e8b1b9e40 100644 --- a/drivers/tty/tty_ioctl.c +++ b/drivers/tty/tty_ioctl.c @@ -28,14 +28,6 @@ #include #include -#undef TTY_DEBUG_WAIT_UNTIL_SENT - -#ifdef TTY_DEBUG_WAIT_UNTIL_SENT -# define tty_debug_wait_until_sent(tty, f, args...) tty_debug(tty, f, ##args) -#else -# define tty_debug_wait_until_sent(tty, f, args...) do {} while (0) -#endif - #undef DEBUG /* @@ -198,8 +190,6 @@ int tty_unthrottle_safe(struct tty_struct *tty) void tty_wait_until_sent(struct tty_struct *tty, long timeout) { - tty_debug_wait_until_sent(tty, "wait until sent, timeout=%ld\n", timeout); - if (!timeout) timeout = MAX_SCHEDULE_TIMEOUT; -- 2.41.0