Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp217204lqb; Tue, 4 Jun 2024 09:16:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVyQEJzIWQAfqr366Kl8B98WTP+A1xxULsLbxe25hI8XiwUMi015kqVVF0KvqBEyzv92vch6jz4grBtgKE8UGKKnzIoarFBMbTVqdndHQ== X-Google-Smtp-Source: AGHT+IG11v1WkbSpvUNdkvFq4zxB29lKzM/4K6fzhNhOwdr1N1+VukqUD/prTtmWharOcl4fO/ce X-Received: by 2002:a17:906:e091:b0:a5a:81b1:6cab with SMTP id a640c23a62f3a-a6821f4dfa3mr722324366b.51.1717517768077; Tue, 04 Jun 2024 09:16:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717517768; cv=pass; d=google.com; s=arc-20160816; b=ThKjCLsUMAOm2+k/pJm8K77hyKci6UOu9zKRE/D60K8yzs3ni9LD85go64paBYuSq6 DiMjgyWoue+Nf9ZNLb7NgdPqYbD6zyjQXEcSzcjUsp/Ibfxab/pMlahNuaPK2eOOIZ1o BFh8V9DMS2p5APnrS8+qqgZs0NRndo+jEmSBounx0WHWD8GMS30Q9v4axqzvzfoRtuIy 4tjbwG5cgN+/BEmYWieyN0MpcbHRULkGFQiyim7DIfLQiuco8QJk3lPAT48bXfsKsFPz KZZMB/T/NIjxg8AEny5bTA/Jt2UuIo57iaWUzNmGf0GDwjTX5wsMRh9xC54Jatjv2fHj RwCg== 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=iENH+q5uPq37VR23MbzruTFH+M1icdqmp0HE7OIAz+o=; fh=c1uxQAGMkmx7x3eQC9WiUJxTAltoNyEn0E0ERt32mCg=; b=vQkUS4J3/c5AM6r+t4ziljn6TBlyktRELictoZVnuiweU5fwRoAlNFJtxhvZXME11b aKrxYI94xQdNMGoP0GXVr3T23pmWjsT3LzzvPyGDkJrCv7jlp6Z1obbPsI2s5AhU3UNw MpVqz+giUlEWvXYTrzBbSLB8hwSqCDzWCEtvvQR9fyDwRyseB+YXCR1VQBDKkX21QNqu 3TLXe//ECjN1frILG4UAK3ZaA3Pum3oojfvzaxF7I8+qqxbsl2KEQ857sHcy+P+du9OQ 4k4CMh05KNJx6eT/5y7csA5qN5WNk9yd5C8ZJkXSR6ibdKYHLID1cyW0m6zlk/cP7vS9 gIRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0o8vBLq6; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-201049-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201049-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a68f330c720si268716766b.667.2024.06.04.09.16.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 09:16:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201049-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0o8vBLq6; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-201049-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201049-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C87BB1F23984 for ; Tue, 4 Jun 2024 16:16:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 25B091474D4; Tue, 4 Jun 2024 16:16:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0o8vBLq6" 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 516E777A1E for ; Tue, 4 Jun 2024 16:16:00 +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=1717517761; cv=none; b=Hlsf2z1EO0BThM4nP93c0bU0m2oMjukTQm32k45D5QZsYBGmFmeezbwJNHT5qLHaXUHV8NgP/12m83vgswkjh4sPWgR0ZnvosPsvogKCTVNn4ggP7IIvdiRcd7fUo7UVBs6tgBfcv0dJ4zvQyERSqxiauIaga+MBP2VcGLwdvuU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717517761; c=relaxed/simple; bh=poT0v2FdUDfb3BEOAqGetdclur+49x8g5bWIztN0LU4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GtI65WJ5bp3C7cgEBTUtDVOzyO0Mz8bs0VXVzMBbV1wk0Eb51elyoNpM+YhYg0gpjaXOFUcT7IADPFdLspxb1Gsw2ElfX88hZXAqJz0XUUf7b9xwroglG2v760wK4GV9eLGxhrR/LvXM8PXbo/+PGyOI5SYVQPX96MCs/BOhzY4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0o8vBLq6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F231DC32786; Tue, 4 Jun 2024 16:15:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717517760; bh=poT0v2FdUDfb3BEOAqGetdclur+49x8g5bWIztN0LU4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0o8vBLq6b9jT2dTw/8TRrHwtEx7cy5f4s4c3Z6KC8n+G0PeaD8YBf45gqdGGXGTCQ o0v50dyzwENby5kmKFHD46jlzp6M8cjXT16Q9cKQdX2FYG6YckDBwTEvXJdo9pGFMt YT4awQeoVcQ5aSsyG7CCAXtMWIPbxokdCw3Nosf8= Date: Tue, 4 Jun 2024 18:13:54 +0200 From: Greg Kroah-Hartman To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: "Rafael J. Wysocki" , Mark Brown , Takashi Iwai , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , David Gow , linux-kernel@vger.kernel.org, kernel@pengutronix.de, Philipp Zabel , Nishanth Menon , Jeremy Kerr , Rodolfo Giometti , Thierry Reding , Matt Coster , Thomas Zimmermann , Dave Jiang , Dan Williams , Vishal Verma , Bjorn Andersson Subject: Re: [PATCH] platform: Make platform_driver::remove() return void Message-ID: <2024060432-relieving-yonder-85ae@gregkh> References: <20240527083416.1177106-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: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240527083416.1177106-2-u.kleine-koenig@pengutronix.de> On Mon, May 27, 2024 at 10:34:15AM +0200, Uwe Kleine-K?nig wrote: > struct platform_driver::remove returning an integer made driver authors > expect that returning an error code was proper error handling. However > the driver core ignores the error and continues to remove the device > because there is nothing the core could do anyhow and reentering the > remove callback again is only calling for trouble. > > To prevent such wrong assumptions, change the return type of the remove > callback to void. This was prepared by introducing an alternative remove > callback returning void and converting all drivers to that. So .remove() > can be changed without further changes in drivers. > > This corresponds to step b) of the plan outlined in commit > 5c5a7680e67b ("platform: Provide a remove callback that returns no value"). > > Signed-off-by: Uwe Kleine-K?nig > --- > Hello Greg, > > there are only very little platform drivers left in v6.10-rc1 that need > to be changed to .remove_new() before this patch can be applied. They > were all sent out to the respective maintainers, most of them suggested > to apply the patches together with this one. > > You can fetch this patch together with all necessary commits from: > > https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git platform-remove-void > > If you have no concerns, I can also provide you a signed tag for > pulling. I think that's easier than indiviually applying them, but I can > also send out the complete series if you prefer. A signed tag is good, I can just pull from that, thanks! greg k-h