Patch "driver core: platform: Emit a warning if a remove callback returned non-zero" has been added to the 5.10-stable tree
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Sasha,
Quoted 34 lines · Sasha Levin
This is a note to let you know that I've just added the patch titled
driver core: platform: Emit a warning if a remove callback returned non-zero
to the 5.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
driver-core-platform-emit-a-warning-if-a-remove-call.patch
and it can be found in the queue-5.10 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
commit
2f1ac60bc9668567f021c314312563951039f77bAuthor: Uwe Kleine-König <[email protected]> Date: Sun Feb 7 22:15:37 2021 +0100driver core: platform: Emit a warning if a remove callback returned non-zero
[ Upstream commit
e5e1c209788138f33ca6558bf9f572f6904f486d]The driver core ignores the return value of a bus' remove callback. However a driver returning an error code is a hint that there is a problem, probably a driver author who expects that returning e.g.
-EBUSYhas any effect.The right thing to do would be to make struct
platform_driver::remove()return void. With the immense number of platform drivers this is however a big quest and I hope to prevent at least a few new drivers that return an error code here.
Quoted 5 lines
Signed-off-by Uwe Kleine-König <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Stable-dep-of:
55c421b36448("mmc: davinci: Don't strip remove function when driver is builtin")Signed-off-by Sasha Levin <[email protected]>
That looks wrong. If this patch should be included in stable, it shouldn't be because it's a dependency. 55c421b36448 works without this patch for sure.
Either backport e5e1c2097881 because you think that warning should be in 5.10.x, or don't backport it.
Best regards
Uwe
Greg Kroah-Hartman
maintainerQuoted 39 lines · Uwe Kleine-König
Hello Sasha,
Quoted 30 lines · Sasha Levin
This is a note to let you know that I've just added the patch titled
driver core: platform: Emit a warning if a remove callback returned non-zero
to the 5.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
driver-core-platform-emit-a-warning-if-a-remove-call.patch
and it can be found in the queue-5.10 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
commit
2f1ac60bc9668567f021c314312563951039f77bAuthor: Uwe Kleine-König <[email protected]> Date: Sun Feb 7 22:15:37 2021 +0100driver core: platform: Emit a warning if a remove callback returned non-zero [ Upstream commit
e5e1c209788138f33ca6558bf9f572f6904f486d] The driver core ignores the return value of a bus' remove callback. However a driver returning an error code is a hint that there is a problem, probably a driver author who expects that returning e.g.-EBUSYhas any effect.
The right thing to do would be to make structplatform_driver::remove()return void. With the immense number of platform drivers this is however a big quest and I hope to prevent at least a few new drivers that return an error code here.Quoted 5 lines
Signed-off-by Uwe Kleine-König <[email protected]>Signed-off-by Greg Kroah-Hartman <[email protected]>Stable-dep-of:
55c421b36448("mmc: davinci: Don't strip remove function when driver is builtin")Signed-off-by Sasha Levin <[email protected]>
Quoted 6 lines
That looks wrong. If this patch should be included in stable, it shouldn't be because it's a dependency.
55c421b36448works without this patch for sure.Either backport
e5e1c2097881because you think that warning should be in 5.10.x, or don't backport it.
I've fixed this up by hand and dropped all of the platform patches now, thanks for the review!
greg k-h