[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJZ5v0jkm-7sVYyJj+t0Qe+4ZjTz_-aE-XGm-yjKsC4324=a4w@mail.gmail.com>
Date: Thu, 5 Feb 2026 14:39:38 +0100
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: rafael@...nel.org, dakr@...nel.org, driver-core@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] driver core: remove device_change_owner() export
On Thu, Feb 5, 2026 at 2:09 PM Greg Kroah-Hartman
<gregkh@...uxfoundation.org> wrote:
>
> 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@...uxfoundation.org>
Reviewed-by: Rafael J. Wysocki (Intel) <rafael@...nel.org>
> ---
> 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
>
Powered by blists - more mailing lists