Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp962027lql; Tue, 12 Mar 2024 03:28:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNBxSUrsz9Lhvyz7LfSyn/gCI2M6i+1Co9pDp3ip3yHvqxXCa/KendLxZ8un2xZt2RcTw1FU86k3ZtvUq8SccrKzL8CEjfnsTn5LfDuA== X-Google-Smtp-Source: AGHT+IHdAtBZh2Q1RCEzfh2nKjIsYpvAkwvoUdxuPAnm8tKX7gOXR31aldEIameEIGVTDlsDeP+e X-Received: by 2002:a05:6a00:2e9d:b0:6e6:424c:b7eb with SMTP id fd29-20020a056a002e9d00b006e6424cb7ebmr14404864pfb.3.1710239312432; Tue, 12 Mar 2024 03:28:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710239312; cv=pass; d=google.com; s=arc-20160816; b=iYN18s3Szmme9I7bl71Ugt6Cxkm7RppCkBpM7QctlGATLe3BPlthZfoWjS1EVeGxU3 Jm4rUY1SyH3aM6tE/ll7LMGj6kMjsSLxFSHcbj2uABY8XSIU8F8KztRp/Wtzyth+oDBl xmk4PKBPYXIbk3cQ5ZmyNwEIZCtgXUpST6Eub10eB+2dJ+bChV0tfinm778jyWLKHiJZ bG9Cbpgo1oDmh0SnYABhDK/pHAHqoleL5jF6vmUr3cPO+lb2+b3SmHRvuW54J2UBVo3o LoFxj9d7HYdtBziUziuT0o2UCmGUTWsPlmJU7+P5r5SJcMdLxcdVWa5rQxdOz8+fEjEx cTCg== ARC-Message-Signature: i=2; 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=qVjA2ghlgFdqjbjF9f/KBdSi6N3mZ7rrcw/FzqudXhE=; fh=VNvo78Cz7ruWg+RVLgfreUGasVblWLJcKE5V8lJSLlg=; b=JkcIRmNBzms37ECsLVjTUhjmeYEtuTiHvRITnRN22ypq6iunyWjiZU2b6mBdmUrVQo XpipzT6TQf1Qkpn38izIPd2p0VMj+6w20XKNKGNscyBSaLNqU8Sk+Xfk3EmQEiwgVy0c 0m1pzd4XfgYuIyP/ubbcF9s6Q9dU1Ilf5ep38zVdWcDrpRG2+TGE5pMfdbt/cUxct8vH QNL788nSQfqYMA7NUIRoTQc3vadqTWgMmZ88UwXcdo9I7BT7G0Ilz5udhDAuhITVUMA4 3ZZC4lTqlzzoM3u8Fer2crkhzYULCzEgDayy2IkSK+vxYwEGkEJXa00ybsfto+TcZQCt Ij2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-100119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100119-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h8-20020a63c008000000b005dc7fe4a2a0si6944405pgg.584.2024.03.12.03.28.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 03:28:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-100119-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100119-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 02C162845EB for ; Tue, 12 Mar 2024 10:28:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 24FA478683; Tue, 12 Mar 2024 10:27:45 +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 29E797866D for ; Tue, 12 Mar 2024 10:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710239264; cv=none; b=aKjvtqGS9FpbwVmJGI03GyS439hxolcc/4vLsv1Uhyt96zFOaUQo8DPF0AiNbazevHDOY2NrmLWWiP0akjKITsM0cFgSlnjPHQj3sUK6/95iHtV28YxotcBANJG0pTcaH5vkc81fokPWB4hNR4Jjemdwqf0eFxvgDZDioyCs3ao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710239264; c=relaxed/simple; bh=xqfBhuI1lE+rVJm9vLfWs4M0RDKrnWkBLCkCDFOzCCQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QImyzvTKIG1L/w3ThUXNqNPwSaa/hwqiw4DLrwMA3bpqqihHDuu+tIPmVfXlfCW1uoFkIeUe0ROim9aSmsDT5qDkfllMkOeav0c+lsTETJ49Y2RZg9bFBuV8rIUoiSuRGP4JT1ASGQOs7oWt08PZH3b21vnaSbOuNZdQEVQU0zU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 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 1rjzMA-0001wu-Pv; Tue, 12 Mar 2024 11:27:38 +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 1rjzMA-005tcR-5H; Tue, 12 Mar 2024 11:27:38 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rjzMA-004gxr-0F; Tue, 12 Mar 2024 11:27:38 +0100 Date: Tue, 12 Mar 2024 11:27:37 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Geert Uytterhoeven , Andy Shevchenko Cc: kernel@pengutronix.de, linux-kernel@vger.kernel.org, Paul Burton Subject: Re: [PATCH 3/3] auxdisplay: img-ascii-lcd: Convert to platform remove callback returning void Message-ID: References: <44de2d4c1fed6fe96b68ba9ad768d297b8f392a5.1710194084.git.u.kleine-koenig@pengutronix.de> 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="fuiusb2rlhjutq6u" 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 --fuiusb2rlhjutq6u Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 12, 2024 at 09:17:54AM +0100, Geert Uytterhoeven wrote: > Hi Uwe, >=20 > On Mon, Mar 11, 2024 at 10:59=E2=80=AFPM Uwe Kleine-K=C3=B6nig > wrote: > > 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. > > > > 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(). > > > > Trivially convert this driver from always returning zero in the remove > > callback to the void returning variant. > > > > Signed-off-by: Uwe Kleine-K=C3=B6nig >=20 > Thanks for your patch! >=20 > > --- a/drivers/auxdisplay/img-ascii-lcd.c > > +++ b/drivers/auxdisplay/img-ascii-lcd.c > > @@ -279,13 +279,12 @@ static int img_ascii_lcd_probe(struct platform_de= vice *pdev) > > * > > * Return: 0 >=20 > Please remove this line. Good catch, thanks. @Andy: Should I resend this patch? Or the whole series? Or do you want to fixup while applying? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=C3=B6nig = | Industrial Linux Solutions | https://www.pengutronix.de/ | --fuiusb2rlhjutq6u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmXwLhkACgkQj4D7WH0S /k5WTAgAit22PIgRe2YUSFmwCR4+0SgXL8IxvwWIDEJRo/uWcxwB9Gj3m3Idb6KA pkRCNFdV4soD5xMNOve/DKy3uqxigYCpJAPo58yulrlHtyfEIWYhdBFCPyi4M4FG jf7mw/qu5Z8uO9x5WBaJK1ox2ysp6TxdP4m/bgjr1IbRwvpXC3hA2y3qEC9fp+6J rF+xQ+pz6SYL7wp/wNeK/4fpEnLUzByfq40HNPjRl/Gff+K43KnaXvdJtS7ahxFd 57qY/v6/s3T4jQj5JQUaWo6Gh39+bbX311x4FQeXCuLTwqSWcE0FyKq8zR0ZItOU K2V75WVRKetnK6aYX8M3/lQQFTp9Zw== =IZji -----END PGP SIGNATURE----- --fuiusb2rlhjutq6u--