Re: [PATCH] driver core: mark remaining local bus_type variables as const

Greg Kroah-Hartman
2024-01-03T16:47:17Z

On Wed, Jan 03, 2024 at 02:24:05PM +0100, Ulf Hansson wrote:
> On Tue, 19 Dec 2023 at 16:35, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> >
> > Now that the driver core can properly handle constant struct bus_type,
> > change the local driver core bus_type variables to be a constant
> > structure as well, placing them into read-only memory which can not be
> > modified at runtime.
> >
> > Cc: Dave Ertman <david.m.ertman@intel.com>
> > Cc: Ira Weiny <ira.weiny@intel.com>
> > Cc: "Rafael J. Wysocki" <rafael@kernel.org>
> > Cc: William Breathitt Gray <william.gray@linaro.org>
> > Cc: David Hildenbrand <david@redhat.com>
> > Cc: Oscar Salvador <osalvador@suse.de>
> > Cc: Kevin Hilman <khilman@kernel.org>
> > Cc: Ulf Hansson <ulf.hansson@linaro.org>
> > Cc: Len Brown <len.brown@intel.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > ---
> > drivers/base/auxiliary.c | 2 +-
> > drivers/base/isa.c | 2 +-
> > drivers/base/memory.c | 2 +-
> > drivers/base/node.c | 2 +-
> > drivers/base/power/domain.c | 2 +-
>
> This above file has moved to drivers/pmdomain/core.c and I am carrying
> that patch in my pmdomain tree. If you have the time to send a
> separate patch for it, I can pick it up.

This is already in my tree and in linux-next, so all should be good.

thanks,

greg k-h