]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
driver core: remove device_change_owner() export
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Feb 2026 13:09:43 +0000 (14:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Feb 2026 15:49:43 +0000 (16:49 +0100)
The function, device_change_owner() is exported for modules to use,
but there are no in-kernel users of it, so remove the export to prevent
out-of-tree code from thinking this is a safe function to call.

Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
Link: https://patch.msgid.link/2026020543-molar-childcare-af20@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c

index 40de2f51a1b1abe6dce64b5c966b5f99e37e8392..f599a1384eec90c104601422b04dc2b4c19d4382 100644 (file)
@@ -4781,7 +4781,6 @@ out:
        put_device(dev);
        return error;
 }
-EXPORT_SYMBOL_GPL(device_change_owner);
 
 /**
  * device_shutdown - call ->shutdown() on each device to shutdown.