Messages in this thread | | | Date | Wed, 11 Jan 2023 16:09:52 +0100 | From | Greg Kroah-Hartman <> | Subject | Re: [PATCH] driver core: change to_subsys_private() to use container_of_const() |
| |
On Wed, Jan 11, 2023 at 10:50:49AM +0100, Rafael J. Wysocki wrote: > On Wed, Jan 11, 2023 at 10:33 AM Greg Kroah-Hartman > <gregkh@linuxfoundation.org> wrote: > > > > The macro to_subsys_private() needs to switch to using > > container_of_const() as it turned out to being incorrectly casting a > > const pointer to a non-const one. Make this change and fix up the one > > offending user to be correctly handling a const pointer properly. > > > > Cc: "Rafael J. Wysocki" <rafael@kernel.org> > > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> > > Reviewed-by: Rafael J. Wysocki <rafael@kernel.org>
Thanks for the review!
| |