[PATCH 0/2] virt: Convert to platform remove callback returning void

From: Uwe Kleine-König
Date: Tue Dec 26 2023 - 08:28:58 EST


Hello,

this series converts the two platform drivers below drivers/virt 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. There doesn't seem to be a maintainer for
all of drivers/virt and I don't know how patch application works there
usally. The two patches are independent of each other so they can be
applied individually if necessary.

Best regards
Uwe

Uwe Kleine-König (2):
virt: efi_secret: Convert to platform remove callback returning void
virt: sev-guest: Convert to platform remove callback returning void

drivers/virt/coco/efi_secret/efi_secret.c | 5 ++---
drivers/virt/coco/sev-guest/sev-guest.c | 6 ++----
2 files changed, 4 insertions(+), 7 deletions(-)

base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86
--
2.43.0