Re: [PATCH] um: virtio_uml: switch to dynamic root device

From: Johan Hovold

Date: Fri Jun 12 2026 - 11:57:49 EST


On Fri, Apr 24, 2026 at 12:31:01PM +0200, Johan Hovold wrote:
> Driver core expects devices to be dynamically allocated and will, for
> example, complain loudly when no release function has been provided.
>
> Use __root_device_register() to allocate and register the root device
> instead of open coding using a static device.
>
> Note that root_device_register(), which also creates a link to the
> module, cannot be used as the device is registered when parsing the
> module parameters which happens before the module kobject has been
> set up.
>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---

Can this one be picked up now?

Johan