Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp433562lqp; Sat, 13 Apr 2024 03:42:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXOQcxJQo913gpLR+m9fph8UpSE+drse3u1cwkFyQgnxnzoakWtlQEntJpbrVUZVxjPEQqPDzS0OmthF257RzKaPilxThAPHUvFsjHZRQ== X-Google-Smtp-Source: AGHT+IEpkINgqP9iBHRf+GuOd8BB43vO1IJPn1rrtQpT83uIQ4ygsX7qMFj8dRusKViz865d22Rr X-Received: by 2002:a05:6214:a41:b0:69b:5780:3e95 with SMTP id ee1-20020a0562140a4100b0069b57803e95mr3786990qvb.18.1713004935305; Sat, 13 Apr 2024 03:42:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713004935; cv=pass; d=google.com; s=arc-20160816; b=T4DEeZ6lrjYVTxsfWNvRkfvGiwlWD5farZIa5iGL6KnSYMnwme1tEVEvdn21y+BLqY 4EhmTG8VBLpGUlk1+t/xQsQh37bnxNq05YSErOXHCZ4eoKdW0vcQ8K4FOK+3HwhMO7el OvNJsiv5+7pYQlCx5OCW2TEHVISH02xtTJVLQz8FR31EK0bVINlGu74BnHX7nG8xN32s o2zZvE4DmfimFcbv8puU65D8MqNwQUpx7vrbWFvKZvFl8vcbdHI1bxX7a34+3pWdBHkb syyTUlb5fGI/DkH+3YjjDZFaPOB5Imee+aLW6jmww6sk0RCtV8ZUNvagiQifa1EBTwgh aQbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Kg5p5r6xnvsFhsnT9YI3HlsF57nferJmnbQpodIkA9w=; fh=HEDJA/R138XgY+vEJURg0P1kcjv1t70FPQSeiCOq5Xw=; b=jgeAl4TRzD7WhMWWiFFYVYTHkRjvBa9awDCfpy4MdaObjxY44+xCYgiB5g24ukJDPp lvS9sjtaQ8sbH7CTWVdHztvNytXzYow7ov60Vg8OT566U6P0i5pOBCpDWbFMMIYJdVG7 FQ+vl5es2BYzZK0iXzgpEX7z3Yv1tYYZFxsUw8Eiu1q6Jpa3lJdaw3Axow54GUme24wq 3p8dVimThkRTa/v/f9eqvdZo2SkN8oPzYLn4tRHFC949etQUVYPYhEB9VCgODFjpHKP2 kQjDG0CY1q/ti5HqGskX9M066iuIT9V3omrAvZunwIrglQqoVUq9JRwL8n5byZJr1/4h PH3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dhs9733Q; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-143685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gg1-20020a056214252100b006992b0ddc76si6642963qvb.107.2024.04.13.03.42.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 03:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dhs9733Q; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-143685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0A7E11C20D9C for ; Sat, 13 Apr 2024 10:42:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67CA31E516; Sat, 13 Apr 2024 10:42:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Dhs9733Q" 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 57EAC1D688 for ; Sat, 13 Apr 2024 10:42:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713004931; cv=none; b=nsPWBZRAkhNBV+Jw5CVl/4wy7KGqEiKsynurgBgUtbHGhwTZNEpVHc5rt43uJybKFvJWCDFjE4UdiMoqr27Pw06ketlf3BEwy3Qtg2Vs7umzy0ISLEmroyKVc860JF3uaxwEQnymcfdGlByNt7H7CxT5hiOV18n3eVDliDnhTes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713004931; c=relaxed/simple; bh=rzoC/rjGvsejklgiGORB3oApd2mMQ8Jn1iazSLrhmzY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FuOiXPChjsNT4keTcIZS03q2BmNg5mVLNf9PIEM7L6G2E00LGF6OYc/QLp8L+J73S/InPgVyFDmHMvB0rmMaUg/6V0C3QFRHA19nU1xC8CZDh/7E4hLKvPoY/iSCI3R/7a2VMmpZ4TWNtMxKiyQQQNwHcW0cUe7Lq8x5DxMjOy4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Dhs9733Q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7808DC113CD; Sat, 13 Apr 2024 10:42:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713004930; bh=rzoC/rjGvsejklgiGORB3oApd2mMQ8Jn1iazSLrhmzY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dhs9733QPGI1lDZ4H1kFb5RJPB18vu/66BHJB2MGncwgX4tgPwv1TfpqZcEeES8yo WNjvbAIOszReLpjVCJLNY8a2uDGWIRLREj9F41+AqYJMjG/Xdf0AWhBXMXFiRv267Z SXC2Mxn1ACGXtNuu1VWSTSmB3Sa7q6ZNU7WwIpBE= Date: Sat, 13 Apr 2024 12:41:21 +0200 From: Greg Kroah-Hartman To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Rob Herring , Puneet Gupta , Nipun Gupta , linux-kernel@vger.kernel.org, Abhijit Gangurde , kernel@pengutronix.de, Pieter Jansen van Vuuren Subject: Re: [PATCH] cdx: Convert to platform remove callback returning void Message-ID: <2024041316-unwrapped-parchment-88d8@gregkh> References: <5d40f57e978bcce003133306712ec96439e93595.1709886922.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: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sat, Apr 13, 2024 at 12:12:56PM +0200, Uwe Kleine-K?nig wrote: > Hello Greg, > > On Fri, Mar 08, 2024 at 09:51:05AM +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(). > > > > Trivially convert this driver from always returning zero in the remove > > callback to the void returning variant. > > > > Signed-off-by: Uwe Kleine-K?nig > > we just talked in irc about this thread that might have fell through the > cracks on your side. > > Thanks for reconsidering to apply it for v6.10-rc1, Now applied, thanks. greg k-h