Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp261018pxb; Wed, 15 Sep 2021 01:08:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziZ1yJvJV95G+/RZqvr6QkYDDsdyNB9vXBGMEbaugqYhhdpEtuTVvXu2mOEVzVTrfWXocL X-Received: by 2002:a05:651c:490:: with SMTP id s16mr19562602ljc.214.1631693329713; Wed, 15 Sep 2021 01:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631693329; cv=none; d=google.com; s=arc-20160816; b=iNAu8LpcXh9VcNsuSrt9J5PhwKlyhNX7dGvWH2nxkZsByEUY8TpPWF2JkmgpVMKFCO 6xsh2XnruMrBIZ8W0bNX9Ie6MPdbM+8Q5UXhi7XFN3wzrpjXCJQyAPexT36qdgztlaeM do74AC+FA6kOhBoTiT7TgWeZoI4i9F6F/TmLfR/9wZQkaqYN287b3b78ydcT92VXgumD X/aSHl+QkTMrrUQ2wc0MBUzYPPTB0/Vq+zZZMEtQO1jf+Qo33SDKJgpZUbv+IAFhLiQx L3hl3DGLEnRBetbibn0qsBQnLC43wBP6WgrDcYh+gaGZvyJps0pK7YvdG6Aux5z2jOBU q7AA== 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=SAIIn17REabZORw3txxNIX5yY0FtAdqJ/OJsjqjLNA4=; b=LVxVjZckidm1a+fH5HQwEBeR71qqggrOgOrhUt7TvzNlOrlpSyNc5vDc4CS5LAye4b rNWUdc85cxKkVC5nkBMNt/u6cWj1uMC1003GpO96PEsL5Lb1bsQoaabZJ3sDlk9ydFAS QSHzRPxAmIHXEEYQ90RvGYDiDTreCrQvu01SFoh+qDtjvFIYVvcKIXpJsIwjwOQsZpxO QVwP1pZ5pkrV6Q7coY4EVWlS7r9VQgKoAL9Ag10RdzCk9BU4tFqtUbW7O+UClG80v7lH 2g9gxlMEoyLxK2Ic3HJO5W1a0G4Q9VpginEOaXUzprthVM1FalB5+H+ciM3FRmf5WW5M PSEg== 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 p7si19441164ljj.580.2021.09.15.01.07.50; Wed, 15 Sep 2021 01:08:49 -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 S236845AbhIOIGS (ORCPT + 99 others); Wed, 15 Sep 2021 04:06:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231728AbhIOIDn (ORCPT ); Wed, 15 Sep 2021 04:03:43 -0400 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 80932C061574 for ; Wed, 15 Sep 2021 01:02:22 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQPrt-0002Vm-AT; Wed, 15 Sep 2021 10:02:09 +0200 Received: from pengutronix.de (unknown [IPv6:2a0a:edc0:0:701:8a97:9358:ae:5dc8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id E740867E50E; Wed, 15 Sep 2021 08:02:03 +0000 (UTC) Date: Wed, 15 Sep 2021 10:02:02 +0200 From: Marc Kleine-Budde To: Jiri Slaby Cc: gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Dmitry Torokhov , Wolfgang Grandegger , "David S. Miller" , Jakub Kicinski , Andreas Koensgen , Paul Mackerras , Krzysztof Kozlowski Subject: Re: [PATCH 07/16] tty: remove file from tty_ldisc_ops::ioctl and compat_ioctl Message-ID: <20210915080202.ecgdt34lwas3s7df@pengutronix.de> References: <20210914091134.17426-1-jslaby@suse.cz> <20210914091134.17426-7-jslaby@suse.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="43j3xayf5qo5ebvb" Content-Disposition: inline In-Reply-To: <20210914091134.17426-7-jslaby@suse.cz> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@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 --43j3xayf5qo5ebvb Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 14.09.2021 11:11:25, Jiri Slaby wrote: > After the previous patches, noone needs 'file' parameter in neither > ioctl hook from tty_ldisc_ops. So remove 'file' from both of them. >=20 [...] > diff --git a/drivers/net/can/slcan.c b/drivers/net/can/slcan.c > index 9a4ebda30510..de2da1b09a79 100644 > --- a/drivers/net/can/slcan.c > +++ b/drivers/net/can/slcan.c > @@ -670,8 +670,8 @@ static void slcan_hangup(struct tty_struct *tty) > } > =20 > /* Perform I/O control on an active SLCAN channel. */ > -static int slcan_ioctl(struct tty_struct *tty, struct file *file, > - unsigned int cmd, unsigned long arg) > +static int slcan_ioctl(struct tty_struct *tty, unsigned int cmd, > + unsigned long arg) > { > struct slcan *sl =3D (struct slcan *) tty->disc_data; > unsigned int tmp; nitpick: Checkpatch complains about this: | CHECK: Alignment should match open parenthesis | #674: FILE: drivers/net/can/slcan.c:674: | +static int slcan_ioctl(struct tty_struct *tty, unsigned int cmd, | + unsigned long arg) Same for other hunks in this file. regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --43j3xayf5qo5ebvb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmFBqHcACgkQqclaivrt 76lOsQf+NcL3akVLazO267pyqBA8tvSCpRf29/7Z8wqJ5Z2oTi61D+CA/H68iXcg GgjwGBXOMJVTtJN7YvxclkONrchsZeOzq5KfgcLpFWQj0VUKAguY5K/LYrLi+wXd JPubokNx2N9QWNF4WGlP50Qe/l69HuL5qOJ9Izfim0E6lqKYmPebKInL6XoBP3FD lP7ZZf56yoJ91hBnjMEf0ulasx6Z1T94oyH0JOqv2lP5iOoF/rHUsHpsPHy+5IiR 57uatCwXcVt/vskseP7NnTC8wsl4FlcnCMxjiGvKrX8Y7gsWcvAx2J3ivty4D7tF dJK27i6HibLd1ATbLxnb4RFnxw1UEw== =SNmx -----END PGP SIGNATURE----- --43j3xayf5qo5ebvb--