Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp424082lqp; Sat, 13 Apr 2024 03:13:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsUDv9TOiTAajrGcpdEcc2dqTG8HO+gbliGwLbeQFFPcdAJ7UUslsxn2+vDGKi/SCqLH1bSIgRTBvKfU3hyB/7bHKHuF5ZIcxQ5BBEoQ== X-Google-Smtp-Source: AGHT+IFABd6gmCQ4WhcFA530Vnl7k8mGdgdX1Wtje5bmR+zABcdbcw/FDRRtqrLGuJngNMRVuPh3 X-Received: by 2002:a05:6808:3c6:b0:3c5:fd59:cfd2 with SMTP id o6-20020a05680803c600b003c5fd59cfd2mr5319169oie.37.1713003191686; Sat, 13 Apr 2024 03:13:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713003191; cv=pass; d=google.com; s=arc-20160816; b=te8okK9NhPjxznaSunLqydA2tlKPTzHdtLeMPGHg4CjEls17f8eoppuDVTESUoQ4i2 JdLs3g+6fxftiNTOBkJ7l+KhCTs52I2HmNO335HY2gVav75wsLU/Zgc+dkJ+KvNsTSp9 8XSv9p1Yk2pX4a+ck4UqruJBiIwkEAWB/WAknyjH+D10R8e3d8RI6pETWCVfRkU0mhWS /gD/clWhvUUH3qc/BHgJ0A5+kIDm4JwV7ypk9Gmwh3siddWCbTXkcvA6c9on//vfyjXv VlE+2BbTyMlJqREqSMEI0QV5hu3yPHnibXYmugBNdWk2zvc52Fgv4RtobOctbhKZ0NaB BWHw== 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=Wq3aUsQUibH0U+P846a2ZP/FrqkAsoNTpKFML3kyK+4=; fh=XSBejILMf6Sf14BbVSHhs8txJr59RgDoUlF1Q2FXFVQ=; b=yh8enhXKki0YPAG96lMP1L1ug9/MxAORIXDPCi2z4T0oMySoiW6uKMZHce8rt8ny9h 6kt+IEzCb25Llhq+WHK5UcQ3ZS91iT9dZaQ/9Il6dzZjQoMrWCP+1mvtkBLTsCagrO/T EXkKpDvKdmgulgwbpAGMQCPqDrUjnuI1t0EeG43qyZJLAyih/oRH7/3bgfMtugIdgFuv 1nGO5SEyAQ7rjXrmoz9sXoVOYtFnuitI3r4IKw2XvqL7af1U1D8xf0uCrF3WAuQmgf/A KvzdCphubHDtBQc9eqM3/7drQqo/VSFtSsUicUdkOCVKhMsSGkohJir1DPUrVfWYnJ9C ZX8A==; 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-143671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143671-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p10-20020a05622a048a00b004315e23ccd8si5690655qtx.197.2024.04.13.03.13.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 03:13:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-143671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143671-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6719E1C20CA0 for ; Sat, 13 Apr 2024 10:13:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 997C739FFD; Sat, 13 Apr 2024 10:13:06 +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 88491944F for ; Sat, 13 Apr 2024 10:13:03 +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=1713003186; cv=none; b=rX2tqJYzJ8k5EKN8X38eS2z1CpRnzi8omUQhmTOrDYCkbNpLqt/XALNXA7L2S1BWFB3iZQ17kBEC3dh9Pb6LGzGc/Nv7d1SgFY09gnCZaD2JZPaIaMWDi1lIhIC0/OF7noTaL75iLr+T4AZwqb5a/kvcqQsc/uXOP56e3v4J+LE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713003186; c=relaxed/simple; bh=z83jMz1ZVsAZkRW5PBfAK0WbIrqpcvbkOgy0dvBggvs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b6liaDKz4TIF7yKSRRd33rPY5L+pIgEh9cy6kNV6uJagVBFDvSkOxygk+iPcLhak1ABsk5nVQdw6dgobM4tfErglamkYQ0g3GxdGCgxr0zd6RoLaoxpu70SXsHRWDeLsujfSuGQStBpffm5Ix7Rpmoq+2UEr0Ule5T2KP2YSIIE= 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 1rvaNY-0006XS-N8; Sat, 13 Apr 2024 12:13:00 +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 1rvaNX-00C2qC-PY; Sat, 13 Apr 2024 12:12:59 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rvaNX-000ijd-2H; Sat, 13 Apr 2024 12:12:59 +0200 Date: Sat, 13 Apr 2024 12:12:56 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Greg Kroah-Hartman 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: 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="s3i7kmvt6klw55wa" Content-Disposition: inline In-Reply-To: <5d40f57e978bcce003133306712ec96439e93595.1709886922.git.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 --s3i7kmvt6klw55wa Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Greg, On Fri, Mar 08, 2024 at 09:51:05AM +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. >=20 > Signed-off-by: Uwe Kleine-K=F6nig 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, Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --s3i7kmvt6klw55wa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmYaWqcACgkQj4D7WH0S /k42XAf+L94X/O0zykfTHe+CVju3dQcPIDr2btWJmpUSedAQdec4cmTn1IL2O4PU UKS1sgvdO1Qid0qVJHrsEcZrFzeVOAxU9PEkKNl0G35iF3Ku3M8Rz1NJoSQrWjU7 J0m+4rbd8ZbWRcMMr4q+EOXa09QB508899blAXP+zV729MKnskvjhfWkuIlfPMFK eayd3cv6MF1LGnq0/XgoB99enlGH9DJeucdSC8F+zVMxRHkU/ni1UJNVSMWmxZ4x 3ri8rjDAsd9cKn7De4AOdkjoTcLuTyP3Q06D6e5eFzyeuO5JMNGd1LUhC5i2r/bD S1wLHuY50mgFlhRzEBZciME1rX6HLg== =tSsa -----END PGP SIGNATURE----- --s3i7kmvt6klw55wa--