Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp602732rdd; Tue, 9 Jan 2024 13:50:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFfDaexOmr7Q2PD6KI/0LKc2RYWdG64sv7JdyIiO/0tSJlwjvuCTpFeEmsWQb8S2uc2XvJf X-Received: by 2002:a05:6402:31a2:b0:555:3b87:e44f with SMTP id dj2-20020a05640231a200b005553b87e44fmr26885edb.72.1704837042926; Tue, 09 Jan 2024 13:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704837042; cv=none; d=google.com; s=arc-20160816; b=GR5ZU+o4mgipf0tndyu8reRTuTaToOU++KwrTaNpOrQqDz473LdidBztCm/P2Xpwqu 80TfDLO7Nt5Ew8cMIInSWkZaq/ukJasZeiPHOxG/Ut/rZ89vrZCdjZCJRFBWU/iF1b58 0uQpUBrvqJOOtm3+Fb9Tj/COMGRfBzf3qAalc9mP24j6qcNr9c8mIHnft8XnaH0/vC7G JYVonLKwfkrU0OzNNi9vvW+i3xXE16bAmf6M8MYm+rWkXghk8bZRg+iNUy2152JeUuj/ Ux30oXiRgp3AGjDI0LVwLRkSmrEnPjY+UtRNzMX4orANPf6t/jjlNlhoR+fBd/HOss4R ECxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=qac+W9eRNInMebnT9tK0tLculLoc0Wi8fMaRsmbYl9s=; fh=5P9kEyR81NNeyUc52z/vBPfu+fncKTh11VKgG5ZVuIU=; b=Tq3EVcENFu9OWwcxywCdNDENERcV2xX8osfrQFOpKD9o4fAWmTcEHXuwFRJLzkCZuY ALC1q6SUd4ZUNoUtBJuHZXkPr4Am+B0rmdMVwvyiqz2JtGsgudIOg/eFIPa81W8WYEac FckEw1idOZViVokZDB9zcaUcNjulHoKAA9LHRe+cGIx2t6h+hGEJFavFFGFV0GuJFyte iy+b+WOoS9vwl1sMcuIod5NwB7nvkbUYPUz4ZDcP6m2a1kyRrAfV4Pkmi8uoLBF3knDq dEi3YShEXbK49+26RAyVGYdMna8o32AfYLiiX3eDI3pjo9yYpcD8yW6suNjye8tjF7Tg BPrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21447-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id h11-20020a0564020e0b00b00557fa766ad9si940724edh.104.2024.01.09.13.50.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 13:50:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21447-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21447-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id AA6C61F263A1 for ; Tue, 9 Jan 2024 21:50:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3AAD3E499; Tue, 9 Jan 2024 21:50:10 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 052F13E464 for ; Tue, 9 Jan 2024 21:50:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rNJz3-0001vm-5L; Tue, 09 Jan 2024 22:50:05 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rNJz2-001Z3k-Mt; Tue, 09 Jan 2024 22:50:04 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rNJz2-0066TS-1z; Tue, 09 Jan 2024 22:50:04 +0100 Date: Tue, 9 Jan 2024 22:50:04 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Pavel Machek Cc: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Dmitry Torokhov , linux-input@vger.kernel.org Subject: Re: [PATCH AUTOSEL 4.19 4/7] Input: amimouse - convert to platform remove callback returning void Message-ID: References: <20231226002649.7290-1-sashal@kernel.org> <20231226002649.7290-4-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="z4dqfcfoobhdzq6r" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --z4dqfcfoobhdzq6r Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 09, 2024 at 12:44:55PM +0100, Pavel Machek wrote: > Hi! >=20 > > From: Uwe Kleine-K=F6nig > >=20 > > [ Upstream commit 42b8ff47720258d1f6a4412e780a480c139773a0 ] > >=20 > > The .remove() callback for a platform driver returns an int which makes > > many driver authors wrongly assume it's possible to do error handling by > > returning an error code. However the value returned is ignored (apart > > from emitting a warning) and this typically results in resource leaks. > >=20 > > To improve here there is a quest to make the remove callback return > > void. In the first step of this quest all drivers are converted to > > .remove_new(), which already returns void. Eventually after all drivers > > are converted, .remove_new() will be renamed to .remove(). > >=20 > > Trivially convert this driver from always returning zero in the remove > > callback to the void returning variant. >=20 > We don't really need this for -stable. Agreed! These patches shouldn't get backported to stable. Even if they are a dependency (which isn't the case for this patch AFAICT), backporting of later patches isn't hard even when dropping these patches. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --z4dqfcfoobhdzq6r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmWdv4sACgkQj4D7WH0S /k7Ikgf9Ff56k8gPg9Rqm0wNd4bcxm3xlWSN6sjrtlYtZ7hUFMbbo9GjjHFzwMS8 HxZm3aP5BMJx4BwkCGd01taCgJmANyrw6ZWZ9Um66my+592guOUVdEerXalMm9Yx bI6UjPrHNcEm9LhVdBhuEM7vXI3pvIESsfgJX/gMpUCgCkFfqSJKRwsvfavZ5pnS 5SKkJ8LXgj9oMO7Kvehpyq71T6mLk7bhlz608Ns2euCY/plYxm8YYVtD0Y47wlhs N7LIUDpK42CgAbCpP1pI9gfkAdxR2IwX7x5cPT05lHj2UV+J9ofwo+hxvWPwlkzq ROZCoWdY52UhGFL4jRiZpnJ3VOnDjw== =FCqt -----END PGP SIGNATURE----- --z4dqfcfoobhdzq6r--