From: Greg Kroah-Hartman Date: Thu, 5 Feb 2026 13:09:43 +0000 (+0100) Subject: driver core: remove device_change_owner() export X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f55ae0bfa00e446ea751d09f468daeafc303e03f;p=thirdparty%2Fkernel%2Flinux.git driver core: remove device_change_owner() export 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 Reviewed-by: Rafael J. Wysocki (Intel) Link: https://patch.msgid.link/2026020543-molar-childcare-af20@gregkh Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/core.c b/drivers/base/core.c index 40de2f51a1b1a..f599a1384eec9 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -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.