Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp229190lqg; Thu, 11 Apr 2024 00:23:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUa/h9KPoGKI9eRmTr6ZjRmergV+qekOFXEMP0TuzqVlequE4BdpJYg/taBmklRhqQSAgdC7IMxRwsBDAHFItPbltT4z2H4N2V9Lw9lcQ== X-Google-Smtp-Source: AGHT+IG1pjQ4TsA/aU23fuZ+x7tCLqktMtLmqat6gGQFeuN8iw5LwBlDMyfMJGLO03mAnj9/+2ei X-Received: by 2002:a50:c056:0:b0:56e:603:9ff2 with SMTP id u22-20020a50c056000000b0056e06039ff2mr3618423edd.11.1712820229399; Thu, 11 Apr 2024 00:23:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712820229; cv=pass; d=google.com; s=arc-20160816; b=0MKpvj11jTUg9oIY3vjovsxEKkaVj46btYxJAO3KcW8CXSvGvTabKxC02I50hE9deV CKTBhLfrhKTdm+4w1zcPrb4IYveavgGMQQQG4wnna49Vg3Gbv6gBL65wXMonmpy6aEAJ f/0PLUQjjdtsS9+rysnaSkcCgIzbGFLKTdgm4Wuq16aq1a8rcaKy2uOAWlfoud1cNJGq OrQUjvIV9SY3cj7Sp1k4NmYs8ihhiC7f6KBtHsPJnnxnlsLwehRWhXXbIEg97Q58yS0y BsQ7rd0gXXZKVE0pZnC0qtlbo7iOUFp8n8FBYSLtfiwm1igeqSSgX0Rh8sXPPc3zKXFH nzTg== 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=lRWtXEQccAeQoLc64B8Q7TawhTnBYySzdcu7H5+6n68=; fh=zxnxbZimq8wCuJvzrvegd07ZKoafoif8FHscmksLjLk=; b=prakC0qbBQ11fcyDTNcScljo4UZYyCRIDJDoKPbev+IkLR/orkZYUnTEAvx6hrCgTn Y3VptFD+O4mKR1SSBI5dC65TAdizdkjEwM9DVaSpop0BUwXHTt1IDinief/WlRLLvEzs bn+5yEi7kb0m1Df9KDbI93LNlrwmoGB8u+/jMULK3sXh8jvlVWc8AK8UYZQgh9kBEsjF PjsMqb+D+sI3bs8jGRFJRSTBH87QGDN9H03h6b3uehwEM9E6xT6P04W37ES/Wrmoe9Lb 8us390y5nYIobLlrdQPfH+i2C4qGJ8aEpUIvPpZPR7hoy+Z0j1tncLVBZ/B/poQb4rOm V3PQ==; 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-139958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139958-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id er6-20020a056402448600b0056e2a6603fdsi477362edb.403.2024.04.11.00.23.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 00:23:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-139958-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139958-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 269231F23F3F for ; Thu, 11 Apr 2024 07:23:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8E3913DDDD; Thu, 11 Apr 2024 07:23:22 +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 2786F13E3EF for ; Thu, 11 Apr 2024 07:23:19 +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=1712820202; cv=none; b=LekqMtXvk+qZ8wZRhe0tveAK32VhhP2O32umEngn27dvJaG1ND64Fyz2mA6gLNTu0a33Efw7ymTEYvHo6q+/+kqNglvRKkEf7XzYgrKSxUKAxdsmMPUxf43myiNUj6VttLkKXzjQjkRYj8akl0d9ao76fS++37z6niLS0U+T9NQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712820202; c=relaxed/simple; bh=Wt5if24Q2AzAFpiuYKmYw8tBn3IIAi/AUUMuWz8n4A4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Wo/jNaPlUJsiTQ7etD1r3VJ5oFHnCdDAsosi3nGXsPKP4k8GB8wxhXk+H31AxZHI6rWgHRxRHXT15VV8g5e1Ez/u+cV+sS6PViCMI7CBZRx4r4EiZuhqAKS55+DnZj8up8wbm1enISirILacJBurfw2F5oKsLFCZwIXDmWWOYfM= 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 1ruomD-0001jJ-TE; Thu, 11 Apr 2024 09:23:17 +0200 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 1ruomD-00Bdst-GI; Thu, 11 Apr 2024 09:23:17 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1ruomD-000Pf9-1K; Thu, 11 Apr 2024 09:23:17 +0200 Date: Thu, 11 Apr 2024 09:23:17 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Johannes Thumshirn Cc: linux-kernel@vger.kernel.org, kernel@pengutronix.de, Greg Kroah-Hartman Subject: Re: [PATCH] mcb: lpc: Convert to platform remove callback returning void Message-ID: References: <20240307175903.189283-2-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="wq7vd63prnpqrjal" Content-Disposition: inline In-Reply-To: <20240307175903.189283-2-u.kleine-koenig@pengutronix.de> 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 --wq7vd63prnpqrjal Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Thu, Mar 07, 2024 at 06:59:03PM +0100, Uwe Kleine-K=F6nig 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. >=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. I didn't get any feedback in reply to this patch. My quest to change the prototype of struct platform_driver::remove depends on that one, so it would be great if it could make it into the mainline during the next merge window. I added Greg to Cc: who's tree the last changes to this driver went in through. If I don't get feedback until v6.9, I'd ask him to take this patch without further maintainer feedback. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --wq7vd63prnpqrjal Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmYXj+QACgkQj4D7WH0S /k4TEAgAqZjPh6n78yTVmTKep+OdZns+WPVdXyg64mfhi5xyiPnq9UR60jCpd0KL mLz+w7I4UEWKcEzapFmVtIAM65GMCph2NTsemU7tYP4E4dzFSZi1CkncxSBeLCnv z9KwcnPN5v05c304rHpvQU/UY1cIBQmoNIZvz621P67pJTpusqUnjJo8p7vxsKLL kKxsaXBfuxHLQtdT7lWAoDnfdsoFlWswLQkagr8VL/Xq+hA5728ylggHkBBYG0VI 7kruUnBBf+CQZ6BH0sUWmDHufqV7mMwNqHLpynGyrJs7V+7a3H/tgx4ZhWdrz4I7 hHyw0X5CZ+JWxwneD4Z0A5oBjyRTlA== =PYdu -----END PGP SIGNATURE----- --wq7vd63prnpqrjal--