Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1029895pxb; Thu, 4 Mar 2021 01:05:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrbN8W5LPVBZ8Dqiecn0DmsrZoaTJOx80m7i+vM1XOBiOYSms/5W1gaS2b0TcXAJmxmeft X-Received: by 2002:aa7:db41:: with SMTP id n1mr3263248edt.186.1614848756473; Thu, 04 Mar 2021 01:05:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614848756; cv=none; d=google.com; s=arc-20160816; b=Ys9tuwTI4Ts8Nm5AdL2kwBQQObU+qHGsO8vpl1mgWjkQ/56779fqEXTE8I5I7jHX24 rkaYoOMg/bCc7ijasqRbOg3hl+osx9XljQnsEgrXU0qE7i4XyO6k6bya3VExFsaFldjT OJiStiWFftaDL4oaaggYmRUoq8RnQRhBCMD3r58ttHJ3emS0O0GDyr27XaCblORGpGqi KdrRBxj4JOI9zAh3oLsLWaCNUzA+sysZcn2gVe0tjP1rTHPwKu17PJ8AnAhnroay0JUC OL3QHNy8QcUOcjIzDsbbjxBQnMaOxoYtc+aXIX31P4hkQniGVJ4hwirdxXV/dtM81gQC KBAw== 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:date; bh=c4A5Wa9CRAAXCU+LFIaDusbZ/AJ+YD+X7szNusJm/F8=; b=bZ2D0xyasEja9Khzw/zNK1Ds+MdDQmu1VQ6pHJl6I0vA4blbVrfuUnfOTltjwCuYMg 1YR2MFjHGTH1dgOpCyksxuzJC+4xo2KaRSVa6FEwKfyFbn0GYHvrsTZn+K5AuAqHvdg/ cAFRA+Bk3kIBeodJVuoyHF5OMQ8Sw15EhpbwizLN2ma3d0dDpLaHBEGb5En4Td7zXtC7 uGJaYqy1jOiiSaZjdJlgqUjjXliytEglTHPKYmcXpymfmJMkOmzs1KkRRmtLaGRwqg8B P0/fd4fbE4UPQGsCSK2ZhgKk9SXj0eQNaSBNgUhhjQbWKF8MFdGhPV99HmuTZ2IUDeIV bgag== 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 n13si1337978ejs.39.2021.03.04.01.05.33; Thu, 04 Mar 2021 01:05:56 -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; 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 S1442778AbhCCNbu (ORCPT + 99 others); Wed, 3 Mar 2021 08:31:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380097AbhCCIVQ (ORCPT ); Wed, 3 Mar 2021 03:21:16 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BBCBC0698C3 for ; Tue, 2 Mar 2021 23:44:45 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHMBU-0002s8-Rd; Wed, 03 Mar 2021 08:44:40 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lHMBQ-0006Qi-JT; Wed, 03 Mar 2021 08:44:36 +0100 Date: Wed, 3 Mar 2021 08:44:36 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Jiri Slaby , Michael Ellerman Cc: gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 40/44] tty: hvc, drop unneeded forward declarations Message-ID: <20210303074436.keguljsgyvan6d5g@pengutronix.de> References: <20210302062214.29627-1-jslaby@suse.cz> <20210302062214.29627-40-jslaby@suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="prjodd2hjuh6jp2h" Content-Disposition: inline In-Reply-To: <20210302062214.29627-40-jslaby@suse.cz> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --prjodd2hjuh6jp2h Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Jiri, On Tue, Mar 02, 2021 at 07:22:10AM +0100, Jiri Slaby wrote: > Forward declarations make the code larger and rewrites harder. Harder as > they are often omitted from global changes. Remove forward declarations > which are not really needed, i.e. the definition of the function is > before its first use. >=20 > Signed-off-by: Jiri Slaby > Cc: linuxppc-dev@lists.ozlabs.org > --- > drivers/tty/hvc/hvcs.c | 25 ------------------------- note this conflicts with commit 386a966f5ce71a0364b158c5d0a6971f4e418ea8 that currently sits in the powerpc tree. I think it's easy to resolve. Other than that: Acked-by: Uwe Kleine-K=F6nig Best regards Uwe > 1 file changed, 25 deletions(-) >=20 > diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c > index c90848919644..0b89d878a108 100644 > --- a/drivers/tty/hvc/hvcs.c > +++ b/drivers/tty/hvc/hvcs.c > @@ -290,36 +290,11 @@ static LIST_HEAD(hvcs_structs); > static DEFINE_SPINLOCK(hvcs_structs_lock); > static DEFINE_MUTEX(hvcs_init_mutex); > =20 > -static void hvcs_unthrottle(struct tty_struct *tty); > -static void hvcs_throttle(struct tty_struct *tty); > -static irqreturn_t hvcs_handle_interrupt(int irq, void *dev_instance); > - > -static int hvcs_write(struct tty_struct *tty, > - const unsigned char *buf, int count); > -static int hvcs_write_room(struct tty_struct *tty); > -static int hvcs_chars_in_buffer(struct tty_struct *tty); > - > -static int hvcs_has_pi(struct hvcs_struct *hvcsd); > -static void hvcs_set_pi(struct hvcs_partner_info *pi, > - struct hvcs_struct *hvcsd); > static int hvcs_get_pi(struct hvcs_struct *hvcsd); > static int hvcs_rescan_devices_list(void); > =20 > -static int hvcs_partner_connect(struct hvcs_struct *hvcsd); > static void hvcs_partner_free(struct hvcs_struct *hvcsd); > =20 > -static int hvcs_enable_device(struct hvcs_struct *hvcsd, > - uint32_t unit_address, unsigned int irq, struct vio_dev *dev); > - > -static int hvcs_open(struct tty_struct *tty, struct file *filp); > -static void hvcs_close(struct tty_struct *tty, struct file *filp); > -static void hvcs_hangup(struct tty_struct * tty); > - > -static int hvcs_probe(struct vio_dev *dev, > - const struct vio_device_id *id); > -static int hvcs_remove(struct vio_dev *dev); > -static int __init hvcs_module_init(void); > -static void __exit hvcs_module_exit(void); > static int hvcs_initialize(void); > =20 > #define HVCS_SCHED_READ 0x00000001 > --=20 > 2.30.1 >=20 >=20 --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --prjodd2hjuh6jp2h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmA/PmEACgkQwfwUeK3K 7Ak/+QgAoaMQF3clqadoCfC+pLPxWDoOB9ZNxnHO1dNcFLtQHZEAJNwMZw9h/mxr DY6thVwediWE2JI/e/c2XaF78mUy9KrMtd8TwTjKHCMhOzAlF9fRNra9eTLP+gBJ QOJOIQntpeiolTtZTuy4bphiJe09YuuEZSr4zx0HgaECI811eyG+qLZWmPKeK2Jl EYoZtx1uoKnlwrZOqbhkopk2U9st6Kt/oxzEjBF3NcMXDKjCfFvz9eCaklbwctPq 2e8MFy7Jg2dq2hrNIHBxRIAOu7H7Ba7oPMFnlJkoLdGdg3jyqMjjpQccJjZaSI+j d6/csnS/+InQyjvZWcGPMCrZSCxvjg== =/Ai0 -----END PGP SIGNATURE----- --prjodd2hjuh6jp2h--