Drivers: hv: vmbus: Move virt_to_hvpfn() to hyperv header
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 16 Sep 2020 03:48:11 +0000 (11:48 +0800)
committerWei Liu <wei.liu@kernel.org>
Mon, 28 Sep 2020 08:55:13 +0000 (08:55 +0000)
commitbca6b91dfdd4347d8fe0bb97377dda0cacd51d82
treed3ae396545293bc6f10334bb4cdd0c7f0684c651
parentef514d3e38edf36764e61fc11366410041598ad9
Drivers: hv: vmbus: Move virt_to_hvpfn() to hyperv header

There will be more places other than vmbus where we need to calculate
the Hyper-V page PFN from a virtual address, so move virt_to_hvpfn() to
hyperv generic header.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20200916034817.30282-6-boqun.feng@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/channel.c
include/linux/hyperv.h