| Date | Thu, 12 Jan 2023 14:04:47 +0000 | From | Wei Liu <> | Subject | Re: [PATCH v2 10/16] drivers: hv: move device_to_hv_device to use container_of_const() |
| |
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@microsoft.com> > Cc: Haiyang Zhang <haiyangz@microsoft.com> > Cc: Wei Liu <wei.liu@kernel.org> > Cc: Dexuan Cui <decui@microsoft.com> > Cc: linux-hyperv@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Wei Liu <wei.liu@kernel.org>
|