On Wed, Jan 11, 2023 at 12:30:12PM +0100, Greg Kroah-Hartman wrote: > The driver core is changing to pass some pointers as const, so move > device_to_hv_device() to use container_of_const() to handle this change. > > device_to_hv_device() now properly keeps the const-ness of the pointer > passed into it, while as before it could be lost. > > Cc: "K. Y. Srinivasan" <kys@xxxxxxxxxxxxx> > Cc: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx> > Cc: Wei Liu <wei.liu@xxxxxxxxxx> > Cc: Dexuan Cui <decui@xxxxxxxxxxxxx> > Cc: linux-hyperv@xxxxxxxxxxxxxxx > Cc: linux-kernel@xxxxxxxxxxxxxxx > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Acked-by: Wei Liu <wei.liu@xxxxxxxxxx>