Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3607258rdb; Wed, 27 Dec 2023 13:05:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+MTbvnA5Q6j4Z7YXAt1LUyT/JZo2J7Y8dH/Knn2f0spAN2Kc0h63rcYqX3lVLFf6MCS8i X-Received: by 2002:a05:6870:d208:b0:203:c872:12d with SMTP id g8-20020a056870d20800b00203c872012dmr10995517oac.73.1703711145552; Wed, 27 Dec 2023 13:05:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703711145; cv=none; d=google.com; s=arc-20160816; b=MODCRu8uTEu5TZKpug4TvmkRxePyP2ywdzkE3WMb7GvAUtpdAQErG/gnZ1L65nY9Fn zOw8ceU07zUK6sqe0WEDB97U6XuAlA/CCP5sG1trKLEFagNJjlEFPBMcZjdEqqYf1hIb ZDRY/ysX+JYO+W7WLHst5ZI37repL5p6yEDV48zep4dnn7ZMBQDKPf2mq3Ur20uWepSB jdQZyIl7EcWcYD4DQLbeUqIW+7tZjr9HT2yxHPbfu2zwDKPpotzTax/cNgKTAv/qWoht BoLggh/GRRCELgINDvIaN84ZtJeY9OdGBGv54/Jd7ZHPXeTGrsUN2OkYvSgwEsZ3FXsg Uxlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=8ucazntuoRNgnVSvJ3raA82ExnonuL+zH/wvYr1CwMc=; fh=208hlb8xja+s06W7iROWcm4/p/0VG6nsKHRrCniwUyY=; b=gKFhd0NzcPYOaJLBEJ6czAT2YkIYWDBNO7MGcLsIx7D7OLMlhi3X3kREVTtJjayKdT Y/sxgBG7raXfCRjT19J5vQuU8uHIMZi4aiY30dByMapVZ+9O10ocUM78T7+Zf0sv8It2 8fu0LFk9KtIxqSqC6YebsWbN4uvc1hgodNm4Mj6iEDTjCLHROl5B59E0npJx3rtTegu9 elQb/3WyE3A/ulH+IwAR4pI2sAFdGHz0njV1ZiBBzKwUBA0deWVlX0FG1V4tw6rn/1L3 53ScUPPfIHYB8x0ycJYX/Iu7QGu5H8htCrevquW9h8vLLFAHeaCHn2Ab1bAnNbucb1Bn 00lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-12271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12271-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 g24-20020a67ea18000000b004668aa46e40si1460536vso.0.2023.12.27.13.05.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 13:05:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12271-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; spf=pass (google.com: domain of linux-kernel+bounces-12271-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12271-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 2EEA91C20AB0 for ; Wed, 27 Dec 2023 21:05:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3303A481C0; Wed, 27 Dec 2023 21:03:20 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org 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 4561E47F7C for ; Wed, 27 Dec 2023 21:03:18 +0000 (UTC) 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 1rIb3M-0000le-3j; Wed, 27 Dec 2023 22:03:00 +0100 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 1rIb3H-001wEi-AR; Wed, 27 Dec 2023 22:02:56 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rIb3I-001ZVE-0o; Wed, 27 Dec 2023 22:02:56 +0100 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= To: Jassi Brar Cc: linux-kernel@vger.kernel.org, Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, Matthias Brugger , AngeloGioacchino Del Regno , linux-mediatek@lists.infradead.org, Bjorn Andersson , Konrad Dybcio , linux-arm-msm@vger.kernel.org, Manivannan Sadhasivam , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-sunxi@lists.linux.dev, Thierry Reding , Jonathan Hunter , linux-tegra@vger.kernel.org, Michal Simek , kernel@pengutronix.de Subject: [PATCH 00/12] mailbox: Convert to platform remove callback returning void Date: Wed, 27 Dec 2023 22:02:28 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 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=UTF-8 X-Developer-Signature: v=1; a=openpgp-sha256; l=2241; i=u.kleine-koenig@pengutronix.de; h=from:subject:message-id; bh=TnloZYpKIYRmaOM4Vyp6tR8nMUztNxQOKpyjV0rpvQ4=; b=owEBbQGS/pANAwAKAY+A+1h9Ev5OAcsmYgBljJDlF5RcQbsMo+jn9Hk4Fn0DGB3DTp1LZRoam 4uXEKKoj2GJATMEAAEKAB0WIQQ/gaxpOnoeWYmt/tOPgPtYfRL+TgUCZYyQ5QAKCRCPgPtYfRL+ TmefCACxCqozxo0GnqWmhu00tf7kElJNTysNznKKdidgf7fo9mcsJuA7Ck125Ja84llYdplJCvv Dsdgd+ignUqSSvOgP0rhHT1pxzc3t9CgKIvLUZMIwaiFUxnPuGs0iLILF0hhUoUb6JLwyAFJw/W pPtgJ/owxsaEcqXJEcIL+CMDaCWvE8mUTxuY4pmJCm6WMPBEM3f8affobB2FMtJ7qI2crJx7ojl xgvXdsuX9EtOecBbxd/N706v8sAbPO2cSehuoXojKHPV81zg+QhoTYPjdqW75nODS26hacjnboO xL/0decenMphAvdsq/GieTqJqbXlITNBQapQQbyLQwxG+KFY X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 Content-Transfer-Encoding: 8bit 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 Hello, this series converts all platform drivers below drivers/mailbox that make use of .remove() to use .remove_new() instead. See commit 5c5a7680e67b ("platform: Provide a remove callback that returns no value") for an extended explanation and the eventual goal. The TL;DR; is to make it harder for driver authors to leak resources without noticing. The drivers here get it right though and so can be converted trivially. This is merge window material. All patches are pairwise independent, so they can be applied individually. Best regards Uwe Uwe Kleine-König (12): mailbox: bcm-flexrm: Convert to platform remove callback returning void mailbox: bcm-pdc: Convert to platform remove callback returning void mailbox: imx: Convert to platform remove callback returning void mailbox: mailbox-test: Convert to platform remove callback returning void mailbox: mtk-cmdq: Convert to platform remove callback returning void mailbox: omap: Convert to platform remove callback returning void mailbox: qcom-apcs-ipc: Convert to platform remove callback returning void mailbox: qcom-ipcc: Convert to platform remove callback returning void mailbox: stm32-ipcc: Convert to platform remove callback returning void mailbox: sun6i-msgbox: Convert to platform remove callback returning void mailbox: tegra-hsp: Convert to platform remove callback returning void mailbox: zynqmp-ipi: Convert to platform remove callback returning void drivers/mailbox/bcm-flexrm-mailbox.c | 6 ++---- drivers/mailbox/bcm-pdc-mailbox.c | 5 ++--- drivers/mailbox/imx-mailbox.c | 6 ++---- drivers/mailbox/mailbox-test.c | 6 ++---- drivers/mailbox/mtk-cmdq-mailbox.c | 5 ++--- drivers/mailbox/omap-mailbox.c | 6 ++---- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 6 ++---- drivers/mailbox/qcom-ipcc.c | 6 ++---- drivers/mailbox/stm32-ipcc.c | 6 ++---- drivers/mailbox/sun6i-msgbox.c | 6 ++---- drivers/mailbox/tegra-hsp.c | 6 ++---- drivers/mailbox/zynqmp-ipi-mailbox.c | 6 ++---- 12 files changed, 24 insertions(+), 46 deletions(-) base-commit: 39676dfe52331dba909c617f213fdb21015c8d10 -- 2.43.0