[PATCH 2/2] driver core: remove device_change_owner() export

From: Greg Kroah-Hartman

Date: Thu Feb 05 2026 - 08:09:58 EST


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.

Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
drivers/base/core.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/base/core.c b/drivers/base/core.c
index 40de2f51a1b1..f599a1384eec 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -4781,7 +4781,6 @@ int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid)
put_device(dev);
return error;
}
-EXPORT_SYMBOL_GPL(device_change_owner);

/**
* device_shutdown - call ->shutdown() on each device to shutdown.
--
2.53.0