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

Johan Hovold johan at kernel.org
Fri Jun 12 08:57:39 PDT 2026


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 at kernel.org>
> ---

Can this one be picked up now?

Johan



More information about the linux-um mailing list