Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp268971rdd; Tue, 9 Jan 2024 03:46:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IGn/z1IBnOAq4SRazuknCc+7dMo55AZ+zN8FRfmpMU8iDm5pp4oI6VphnCIspquD3i+eSnW X-Received: by 2002:a05:6358:61ce:b0:175:6fe2:751f with SMTP id x14-20020a05635861ce00b001756fe2751fmr4448734rwx.0.1704800807208; Tue, 09 Jan 2024 03:46:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704800807; cv=none; d=google.com; s=arc-20160816; b=NXXWU/AEWS/0bmblhFFY5yah73brkOxhhlQRanqxikWMKibYmFmSDt/88PSrb7Rtfx D8TNCu3RKITON7Np5ixLty95OEAYnjpEegIS5jILfv3mJ0yrow41PetWGcw8IlNsYcRV bW+1LerOHIodI4v/elOJaO4byKAyg7YgCIgokUFfI9CsMCSiYfhdk/aCw7XRRPTXNxon Ezhhg5xd6Twa1g/isUmCdHbCa1fqRQdh0/9ijpexXotelcQR62LeXbDLTHlAHVHiosge wLm+KaF9WkYHGIvidP6MWFifPlGw/jxlqlplpLpGEwasFdQLzQonnfhmLE9tYImc5t3m 73nw== 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:dkim-signature; bh=XOjrfD6J1wf36M9V10dI2vhgL32veMT6UVLvbaeKZQg=; fh=7JU/7lrKzPsEzvmaMuHByYv1aeLHOvANjcA1WACQf8A=; b=IQSCxrMJk+0LCfzy9mMcPDrc8BtZuxgml1e9PMCXC82Q5u6oG2KFult/T0ET1SI6O7 5KUzqk9J1Ib/cEFFkbZOCqeH+VgTP2PjOgNTZwPYGKviyQpC/JbbDLBJKMBg4RlINXzE VHak5gE90z4knEkVIgO//aaI0tpa5zEifFeMEKGaESsBz7OYjZPBB8Kam8nCmntmqOc6 qaXOgZFPTizoVzmOsBXJX6KGStda83IKvZ9Q7CJixlxQXlbztnlwtADSPuxJl+Exwspy iKdRniB6At86TRJS4DUQkJzO//E5CmvfPaeZHsPVvYKM6VIwzJ2JwDXTCYYGRWCaSHxS DNhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b="qKWCvr/+"; spf=pass (google.com: domain of linux-kernel+bounces-20799-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20799-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l130-20020a633e88000000b005ced2a6b89fsi1264953pga.74.2024.01.09.03.46.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 03:46:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20799-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b="qKWCvr/+"; spf=pass (google.com: domain of linux-kernel+bounces-20799-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20799-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id EB407B21905 for ; Tue, 9 Jan 2024 11:46:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93FA338DF2; Tue, 9 Jan 2024 11:45:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="qKWCvr/+" Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 7F91938DD5; Tue, 9 Jan 2024 11:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id B7F841C006B; Tue, 9 Jan 2024 12:44:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1704800695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XOjrfD6J1wf36M9V10dI2vhgL32veMT6UVLvbaeKZQg=; b=qKWCvr/+FrRHGwKgLxU1KFUtm5nCWJ6SMs0AaQ2MisUbtcBOgc8u++wpufwZPW5egaP1X+ GrGSFUJohxTlMgDkhHpMvwIgkwKhCrleB6mxSogTSgvY2PNddIb7BnQOvQXtCNT+6+MzfD jvSpALMH/z/31/ChYNG1g2cFJWpPP5I= Date: Tue, 9 Jan 2024 12:44:55 +0100 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , 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-sha1; protocol="application/pgp-signature"; boundary="ICWHDsvhgHsBMFXU" Content-Disposition: inline In-Reply-To: <20231226002649.7290-4-sashal@kernel.org> --ICWHDsvhgHsBMFXU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > 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. We don't really need this for -stable. Best regards, Pavel > Signed-off-by: Uwe Kleine-K=F6nig > Link: https://lore.kernel.org/r/20231201133747.1099286-2-u.kleine-koenig@= pengutronix.de > Signed-off-by: Dmitry Torokhov > Signed-off-by: Sasha Levin --=20 People of Russia, stop Putin before his war on Ukraine escalates. --ICWHDsvhgHsBMFXU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZZ0xtwAKCRAw5/Bqldv6 8lApAJ90gRzFv2cb+l/AmyogaG/yFFDLbQCeJVtEREvzO6XZuPRBE3RLj4L+nJ4= =Nhy4 -----END PGP SIGNATURE----- --ICWHDsvhgHsBMFXU--