]> git.baikalelectronics.ru Git - kernel.git/commit
hyperv: simplify and rename generate_guest_id
authorLi kunyu <kunyu@nfschina.com>
Wed, 28 Sep 2022 06:40:46 +0000 (14:40 +0800)
committerWei Liu <wei.liu@kernel.org>
Wed, 28 Sep 2022 13:36:56 +0000 (13:36 +0000)
commit670ace5630b435d97974cd6debfb616a08a4620b
treec458dd46f795936b97ec128a10264e11a0625f51
parent6284dbff33fb3eff05e07a2a04b525afbed8327d
hyperv: simplify and rename generate_guest_id

The generate_guest_id function is more suitable for use after the
following modifications.

1. The return value of the function is modified to u64.
2. Remove the d_info1 and d_info2 parameters from the function, keep the
   u64 type kernel_version parameter.
3. Rename the function to make it clearly a Hyper-V related function,
   and modify it to hv_generate_guest_id.

Signed-off-by: Li kunyu <kunyu@nfschina.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220928064046.3545-1-kunyu@nfschina.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/arm64/hyperv/mshyperv.c
arch/x86/hyperv/hv_init.c
include/asm-generic/mshyperv.h