linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] macintosh: Convert to platform remove callback returning void
@ 2024-01-10 15:42 Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 1/7] macintosh: therm_windtunnel: " Uwe Kleine-König
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2024-01-10 15:42 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: Rob Herring, Dmitry Torokhov, linuxppc-dev, linux-kernel, Jean Delvare

Hello,

this series converts all drivers below drivers/macintosh to use
.remove_new(). 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.

This is merge window material. All patches are pairwise independent of
each other so they can be applied individually. There isn't a maintainer
for drivers/macintosh, I'm still sending this as a series in the hope
Michael feels repsonsible and applies it completely.

Best regards
Uwe

Uwe Kleine-König (7):
  macintosh: therm_windtunnel: Convert to platform remove callback returning void
  macintosh: windfarm_pm112: Convert to platform remove callback returning void
  macintosh: windfarm_pm121: Convert to platform remove callback returning void
  macintosh: windfarm_pm72: Convert to platform remove callback returning void
  macintosh: windfarm_pm81: Convert to platform remove callback returning void
  macintosh: windfarm_pm91: Convert to platform remove callback returning void
  macintosh: windfarm_rm31: Convert to platform remove callback returning void

 drivers/macintosh/therm_windtunnel.c | 6 ++----
 drivers/macintosh/windfarm_pm112.c   | 6 ++----
 drivers/macintosh/windfarm_pm121.c   | 5 ++---
 drivers/macintosh/windfarm_pm72.c    | 7 ++-----
 drivers/macintosh/windfarm_pm81.c    | 8 +++-----
 drivers/macintosh/windfarm_pm91.c    | 8 +++-----
 drivers/macintosh/windfarm_rm31.c    | 7 ++-----
 7 files changed, 16 insertions(+), 31 deletions(-)

base-commit: 8cb47d7cd090a690c1785385b2f3d407d4a53ad0
-- 
2.43.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/7] macintosh: therm_windtunnel: Convert to platform remove callback returning void
  2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
@ 2024-01-10 15:42 ` Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 2/7] macintosh: windfarm_pm112: " Uwe Kleine-König
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2024-01-10 15:42 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: Rob Herring, Dmitry Torokhov, linuxppc-dev, linux-kernel, Jean Delvare

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 <u.kleine-koenig@pengutronix.de>
---
 drivers/macintosh/therm_windtunnel.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c
index 3c1b29476ce2..37cdc6931f6d 100644
--- a/drivers/macintosh/therm_windtunnel.c
+++ b/drivers/macintosh/therm_windtunnel.c
@@ -481,11 +481,9 @@ static int therm_of_probe(struct platform_device *dev)
 	return -ENODEV;
 }
 
-static int
-therm_of_remove( struct platform_device *dev )
+static void therm_of_remove(struct platform_device *dev)
 {
 	i2c_del_driver( &g4fan_driver );
-	return 0;
 }
 
 static const struct of_device_id therm_of_match[] = {{
@@ -501,7 +499,7 @@ static struct platform_driver therm_of_driver = {
 		.of_match_table = therm_of_match,
 	},
 	.probe		= therm_of_probe,
-	.remove		= therm_of_remove,
+	.remove_new	= therm_of_remove,
 };
 
 struct apple_thermal_info {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/7] macintosh: windfarm_pm112: Convert to platform remove callback returning void
  2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 1/7] macintosh: therm_windtunnel: " Uwe Kleine-König
@ 2024-01-10 15:42 ` Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 3/7] macintosh: windfarm_pm121: " Uwe Kleine-König
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2024-01-10 15:42 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, linux-kernel

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 <u.kleine-koenig@pengutronix.de>
---
 drivers/macintosh/windfarm_pm112.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/macintosh/windfarm_pm112.c b/drivers/macintosh/windfarm_pm112.c
index d1dec314ae30..876b4d8cbe37 100644
--- a/drivers/macintosh/windfarm_pm112.c
+++ b/drivers/macintosh/windfarm_pm112.c
@@ -662,16 +662,14 @@ static int wf_pm112_probe(struct platform_device *dev)
 	return 0;
 }
 
-static int wf_pm112_remove(struct platform_device *dev)
+static void wf_pm112_remove(struct platform_device *dev)
 {
 	wf_unregister_client(&pm112_events);
-	/* should release all sensors and controls */
-	return 0;
 }
 
 static struct platform_driver wf_pm112_driver = {
 	.probe = wf_pm112_probe,
-	.remove = wf_pm112_remove,
+	.remove_new = wf_pm112_remove,
 	.driver = {
 		.name = "windfarm",
 	},
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 3/7] macintosh: windfarm_pm121: Convert to platform remove callback returning void
  2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 1/7] macintosh: therm_windtunnel: " Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 2/7] macintosh: windfarm_pm112: " Uwe Kleine-König
@ 2024-01-10 15:42 ` Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 4/7] macintosh: windfarm_pm72: " Uwe Kleine-König
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2024-01-10 15:42 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, linux-kernel

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 <u.kleine-koenig@pengutronix.de>
---
 drivers/macintosh/windfarm_pm121.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/macintosh/windfarm_pm121.c b/drivers/macintosh/windfarm_pm121.c
index 82500417ebee..cd45fbc4fe1c 100644
--- a/drivers/macintosh/windfarm_pm121.c
+++ b/drivers/macintosh/windfarm_pm121.c
@@ -992,15 +992,14 @@ static int pm121_probe(struct platform_device *ddev)
 	return 0;
 }
 
-static int pm121_remove(struct platform_device *ddev)
+static void pm121_remove(struct platform_device *ddev)
 {
 	wf_unregister_client(&pm121_events);
-	return 0;
 }
 
 static struct platform_driver pm121_driver = {
 	.probe = pm121_probe,
-	.remove = pm121_remove,
+	.remove_new = pm121_remove,
 	.driver = {
 		.name = "windfarm",
 		.bus = &platform_bus_type,
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 4/7] macintosh: windfarm_pm72: Convert to platform remove callback returning void
  2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (2 preceding siblings ...)
  2024-01-10 15:42 ` [PATCH 3/7] macintosh: windfarm_pm121: " Uwe Kleine-König
@ 2024-01-10 15:42 ` Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 5/7] macintosh: windfarm_pm81: " Uwe Kleine-König
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2024-01-10 15:42 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, linux-kernel

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 <u.kleine-koenig@pengutronix.de>
---
 drivers/macintosh/windfarm_pm72.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/macintosh/windfarm_pm72.c b/drivers/macintosh/windfarm_pm72.c
index e21f973551cc..14fa1e9ac3e0 100644
--- a/drivers/macintosh/windfarm_pm72.c
+++ b/drivers/macintosh/windfarm_pm72.c
@@ -775,17 +775,14 @@ static int wf_pm72_probe(struct platform_device *dev)
 	return 0;
 }
 
-static int wf_pm72_remove(struct platform_device *dev)
+static void wf_pm72_remove(struct platform_device *dev)
 {
 	wf_unregister_client(&pm72_events);
-
-	/* should release all sensors and controls */
-	return 0;
 }
 
 static struct platform_driver wf_pm72_driver = {
 	.probe	= wf_pm72_probe,
-	.remove	= wf_pm72_remove,
+	.remove_new = wf_pm72_remove,
 	.driver	= {
 		.name = "windfarm",
 	},
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 5/7] macintosh: windfarm_pm81: Convert to platform remove callback returning void
  2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (3 preceding siblings ...)
  2024-01-10 15:42 ` [PATCH 4/7] macintosh: windfarm_pm72: " Uwe Kleine-König
@ 2024-01-10 15:42 ` Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 6/7] macintosh: windfarm_pm91: " Uwe Kleine-König
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2024-01-10 15:42 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, linux-kernel

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 <u.kleine-koenig@pengutronix.de>
---
 drivers/macintosh/windfarm_pm81.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/macintosh/windfarm_pm81.c b/drivers/macintosh/windfarm_pm81.c
index 257fb2c695c5..404d2454e33d 100644
--- a/drivers/macintosh/windfarm_pm81.c
+++ b/drivers/macintosh/windfarm_pm81.c
@@ -724,7 +724,7 @@ static int wf_smu_probe(struct platform_device *ddev)
 	return 0;
 }
 
-static int wf_smu_remove(struct platform_device *ddev)
+static void wf_smu_remove(struct platform_device *ddev)
 {
 	wf_unregister_client(&wf_smu_events);
 
@@ -761,13 +761,11 @@ static int wf_smu_remove(struct platform_device *ddev)
 	/* Destroy control loops state structures */
 	kfree(wf_smu_sys_fans);
 	kfree(wf_smu_cpu_fans);
-
-	return 0;
 }
 
 static struct platform_driver wf_smu_driver = {
-        .probe = wf_smu_probe,
-        .remove = wf_smu_remove,
+	.probe = wf_smu_probe,
+	.remove_new = wf_smu_remove,
 	.driver = {
 		.name = "windfarm",
 	},
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 6/7] macintosh: windfarm_pm91: Convert to platform remove callback returning void
  2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (4 preceding siblings ...)
  2024-01-10 15:42 ` [PATCH 5/7] macintosh: windfarm_pm81: " Uwe Kleine-König
@ 2024-01-10 15:42 ` Uwe Kleine-König
  2024-01-10 15:42 ` [PATCH 7/7] macintosh: windfarm_rm31: " Uwe Kleine-König
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2024-01-10 15:42 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, linux-kernel

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 <u.kleine-koenig@pengutronix.de>
---
 drivers/macintosh/windfarm_pm91.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/macintosh/windfarm_pm91.c b/drivers/macintosh/windfarm_pm91.c
index 120a9cfba0c5..fba02a375435 100644
--- a/drivers/macintosh/windfarm_pm91.c
+++ b/drivers/macintosh/windfarm_pm91.c
@@ -647,7 +647,7 @@ static int wf_smu_probe(struct platform_device *ddev)
 	return 0;
 }
 
-static int wf_smu_remove(struct platform_device *ddev)
+static void wf_smu_remove(struct platform_device *ddev)
 {
 	wf_unregister_client(&wf_smu_events);
 
@@ -691,13 +691,11 @@ static int wf_smu_remove(struct platform_device *ddev)
 	kfree(wf_smu_slots_fans);
 	kfree(wf_smu_drive_fans);
 	kfree(wf_smu_cpu_fans);
-
-	return 0;
 }
 
 static struct platform_driver wf_smu_driver = {
-        .probe = wf_smu_probe,
-        .remove = wf_smu_remove,
+	.probe = wf_smu_probe,
+	.remove_new = wf_smu_remove,
 	.driver = {
 		.name = "windfarm",
 	},
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 7/7] macintosh: windfarm_rm31: Convert to platform remove callback returning void
  2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (5 preceding siblings ...)
  2024-01-10 15:42 ` [PATCH 6/7] macintosh: windfarm_pm91: " Uwe Kleine-König
@ 2024-01-10 15:42 ` Uwe Kleine-König
  2024-02-15 20:55 ` [PATCH 0/7] macintosh: " Uwe Kleine-König
  2024-02-20 12:53 ` Michael Ellerman
  8 siblings, 0 replies; 11+ messages in thread
From: Uwe Kleine-König @ 2024-01-10 15:42 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, linux-kernel

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 <u.kleine-koenig@pengutronix.de>
---
 drivers/macintosh/windfarm_rm31.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/macintosh/windfarm_rm31.c b/drivers/macintosh/windfarm_rm31.c
index e9eb7fdde48c..dc8f2c7ef103 100644
--- a/drivers/macintosh/windfarm_rm31.c
+++ b/drivers/macintosh/windfarm_rm31.c
@@ -668,17 +668,14 @@ static int wf_rm31_probe(struct platform_device *dev)
 	return 0;
 }
 
-static int wf_rm31_remove(struct platform_device *dev)
+static void wf_rm31_remove(struct platform_device *dev)
 {
 	wf_unregister_client(&rm31_events);
-
-	/* should release all sensors and controls */
-	return 0;
 }
 
 static struct platform_driver wf_rm31_driver = {
 	.probe	= wf_rm31_probe,
-	.remove	= wf_rm31_remove,
+	.remove_new = wf_rm31_remove,
 	.driver	= {
 		.name = "windfarm",
 	},
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/7] macintosh: Convert to platform remove callback returning void
  2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (6 preceding siblings ...)
  2024-01-10 15:42 ` [PATCH 7/7] macintosh: windfarm_rm31: " Uwe Kleine-König
@ 2024-02-15 20:55 ` Uwe Kleine-König
  2024-02-15 22:27   ` Michael Ellerman
  2024-02-20 12:53 ` Michael Ellerman
  8 siblings, 1 reply; 11+ messages in thread
From: Uwe Kleine-König @ 2024-02-15 20:55 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: Rob Herring, Dmitry Torokhov, linuxppc-dev, linux-kernel, Jean Delvare

[-- Attachment #1: Type: text/plain, Size: 996 bytes --]

Hello,

On Wed, Jan 10, 2024 at 04:42:47PM +0100, Uwe Kleine-König wrote:
> Hello,
> 
> this series converts all drivers below drivers/macintosh to use
> .remove_new(). 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.
> 
> This is merge window material. All patches are pairwise independent of
> each other so they can be applied individually. There isn't a maintainer
> for drivers/macintosh, I'm still sending this as a series in the hope
> Michael feels repsonsible and applies it completely.

this didn't happen yet. Michael, is this still on your radar? Or is
there someone more suiteable to take these patches?

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/7] macintosh: Convert to platform remove callback returning void
  2024-02-15 20:55 ` [PATCH 0/7] macintosh: " Uwe Kleine-König
@ 2024-02-15 22:27   ` Michael Ellerman
  0 siblings, 0 replies; 11+ messages in thread
From: Michael Ellerman @ 2024-02-15 22:27 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Rob Herring, Dmitry Torokhov, linuxppc-dev, linux-kernel, Jean Delvare

Uwe Kleine-König <u.kleine-koenig@pengutronix.de> writes:
> Hello,
>
> On Wed, Jan 10, 2024 at 04:42:47PM +0100, Uwe Kleine-König wrote:
>> Hello,
>> 
>> this series converts all drivers below drivers/macintosh to use
>> .remove_new(). 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.
>> 
>> This is merge window material. All patches are pairwise independent of
>> each other so they can be applied individually. There isn't a maintainer
>> for drivers/macintosh, I'm still sending this as a series in the hope
>> Michael feels repsonsible and applies it completely.
>
> this didn't happen yet. Michael, is this still on your radar?

Yes, just behind as always. Thanks for the reminder.

cheers

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/7] macintosh: Convert to platform remove callback returning void
  2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
                   ` (7 preceding siblings ...)
  2024-02-15 20:55 ` [PATCH 0/7] macintosh: " Uwe Kleine-König
@ 2024-02-20 12:53 ` Michael Ellerman
  8 siblings, 0 replies; 11+ messages in thread
From: Michael Ellerman @ 2024-02-20 12:53 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: Rob Herring, Dmitry Torokhov, linuxppc-dev, linux-kernel, Jean Delvare

On Wed, 10 Jan 2024 16:42:47 +0100, Uwe Kleine-König wrote:
> this series converts all drivers below drivers/macintosh to use
> .remove_new(). 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.
> 
> This is merge window material. All patches are pairwise independent of
> each other so they can be applied individually. There isn't a maintainer
> for drivers/macintosh, I'm still sending this as a series in the hope
> Michael feels repsonsible and applies it completely.
> 
> [...]

Applied to powerpc/next.

[1/7] macintosh: therm_windtunnel: Convert to platform remove callback returning void
      https://git.kernel.org/powerpc/c/bd6d99b70b2ffa96119826f22e96a5b77e6f90d6
[2/7] macintosh: windfarm_pm112: Convert to platform remove callback returning void
      https://git.kernel.org/powerpc/c/839cf59b5596abcdfbcdc4278a7bd4f8da32e1b2
[3/7] macintosh: windfarm_pm121: Convert to platform remove callback returning void
      https://git.kernel.org/powerpc/c/2e7e64c8427c2385bf47456a612d908f827bbbbf
[4/7] macintosh: windfarm_pm72: Convert to platform remove callback returning void
      https://git.kernel.org/powerpc/c/057894a40e973c829baacce0b9de6bdf6c8ec1da
[5/7] macintosh: windfarm_pm81: Convert to platform remove callback returning void
      https://git.kernel.org/powerpc/c/fb0217d79d77f1092929bae1137ac0f586c29fec
[6/7] macintosh: windfarm_pm91: Convert to platform remove callback returning void
      https://git.kernel.org/powerpc/c/7cfe99872c711ffa727db85c608a0897955a2758
[7/7] macintosh: windfarm_rm31: Convert to platform remove callback returning void
      https://git.kernel.org/powerpc/c/4b26558415d628ad2c0d3d4ec65156a0c99eaf02

cheers

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-02-20 12:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-10 15:42 [PATCH 0/7] macintosh: Convert to platform remove callback returning void Uwe Kleine-König
2024-01-10 15:42 ` [PATCH 1/7] macintosh: therm_windtunnel: " Uwe Kleine-König
2024-01-10 15:42 ` [PATCH 2/7] macintosh: windfarm_pm112: " Uwe Kleine-König
2024-01-10 15:42 ` [PATCH 3/7] macintosh: windfarm_pm121: " Uwe Kleine-König
2024-01-10 15:42 ` [PATCH 4/7] macintosh: windfarm_pm72: " Uwe Kleine-König
2024-01-10 15:42 ` [PATCH 5/7] macintosh: windfarm_pm81: " Uwe Kleine-König
2024-01-10 15:42 ` [PATCH 6/7] macintosh: windfarm_pm91: " Uwe Kleine-König
2024-01-10 15:42 ` [PATCH 7/7] macintosh: windfarm_rm31: " Uwe Kleine-König
2024-02-15 20:55 ` [PATCH 0/7] macintosh: " Uwe Kleine-König
2024-02-15 22:27   ` Michael Ellerman
2024-02-20 12:53 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).