lkml.org 
[lkml]   [2023]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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!

\
 
 \ /
  Last update: 2023-03-26 23:36    [W:0.037 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site