From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1873328F3; Thu, 28 Dec 2023 03:12:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="e1xoornL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68B95C433C8; Thu, 28 Dec 2023 03:12:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703733157; bh=fVTdWnjLmebCNA2sYZSqmo28sH1HWYsgYXc7oFuxyls=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e1xoornL38jDwUfawSEZ8mm0c17QXXu4qoLcCjWGe5Bbgx80x9hHqQy8MDXrBH5hr iJ8v73gHLVDzwYAz8wTmYBW4kLQiO6u88usM2BfKy2GSbGAI1bOnABoECroqusZBs7 1gGMtvgsyK4tgv9tstVB1LIU+LviFnIQ9V4NS7OU7/hPhjoHa4f8hTKa/iuOFAPb5+ +16pdvkdRKCYAYtmjTfrjOrsPu8rrikpZBsRDfGI13DYoNYZq2kTiGsVpP551hjeSp 83FCV6E7P/SqrfF6mpou31ONg2nwHCyMtBPqICU2nj+F9tFMR3dAnIvCLC9K/bhgSU 35rjt54KQyENQ== Date: Thu, 28 Dec 2023 11:12:34 +0800 From: Tzung-Bi Shih To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: kernel@pengutronix.de, Brian Norris , Julius Werner , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/11] firmware: coreboot_table: Convert to platform remove callback returning void Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Wed, Dec 27, 2023 at 05:26:27PM +0100, Uwe Kleine-König 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(). > > [...] Applied, thanks! [03/11] firmware: coreboot: Convert to platform remove callback returning void commit: 09aeaabebdafbcf4afd1c481beaff37ecbc6b023