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 426A52230E for ; Tue, 31 Oct 2023 17:45:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="W6cS5PTm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57BD4C433B6; Tue, 31 Oct 2023 17:44:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698774299; bh=6K+arDBEUtDJE504Zx5IFbZ7Y6ip4GqpK60djqYfepM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W6cS5PTm0m/z9sWPOJ1DdXbG6RisSU+FwXac8qZY0fnOhRj2MyE0jJ7FLThPsbK5U d83PibaqtsoopaKwaTCJWoe/Tbc/PVOh2GKCwcPg2jkpv2D2Uz7BVh5NPZ/nIeT6Kq JCc83nc+DQYbNC7wy3FdpLlSKQNiFszL7HjjbZM8= Date: Tue, 31 Oct 2023 18:44:52 +0100 From: Greg Kroah-Hartman To: Mark Brown Cc: stable@vger.kernel.org, patches@lists.linux.dev, Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Takashi Iwai , Nicolas Ferre , Sasha Levin Subject: Re: [PATCH 6.1 05/86] ASoC: codecs: wcd938x: Convert to platform remove callback returning void Message-ID: <2023103133-skating-last-e2f6@gregkh> References: <20231031165918.608547597@linuxfoundation.org> <20231031165918.777236098@linuxfoundation.org> <958957ff-bbaa-4fbc-a796-30e2fdf61453@sirena.org.uk> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <958957ff-bbaa-4fbc-a796-30e2fdf61453@sirena.org.uk> On Tue, Oct 31, 2023 at 05:11:27PM +0000, Mark Brown wrote: > On Tue, Oct 31, 2023 at 06:00:30PM +0100, Greg Kroah-Hartman 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 (mostly) ignored > > 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. > > > > Trivially convert this driver from always returning zero in the remove > > callback to the void returning variant. > > This doesn't seem like obvious stable material - it's not fixing any > leaks or anything, just preparing for an API transition? It was taken to make the patch after this one apply cleanly, that's all. thanks, greg k-h