]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Drivers: hv: Change hv_free_hyperv_page() to take void * argument
authorKameron Carr <kameroncarr@linux.microsoft.com>
Fri, 23 Jun 2023 22:09:49 +0000 (15:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 6 Jul 2025 08:57:58 +0000 (10:57 +0200)
commitc86078dd890dd1ec8c9aee31c269cfcd0f5e40d7
treeb8e35b00eba6ef2388e17da0821b7b223c746996
parentca9fc954e44b8088492d0eb5f480d789751b9a40
Drivers: hv: Change hv_free_hyperv_page() to take void * argument

[ Upstream commit a6fe043880820981f6e4918240f967ea79bb063e ]

Currently hv_free_hyperv_page() takes an unsigned long argument, which
is inconsistent with the void * return value from the corresponding
hv_alloc_hyperv_page() function and variants. This creates unnecessary
extra casting.

Change the hv_free_hyperv_page() argument type to void *.
Also remove redundant casts from invocations of
hv_alloc_hyperv_page() and variants.

Signed-off-by: Kameron Carr <kameroncarr@linux.microsoft.com>
Reviewed-by: Nuno Das Neves <nunodasneves@linux.microsoft.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Link: https://lore.kernel.org/r/1687558189-19734-1-git-send-email-kameroncarr@linux.microsoft.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Stable-dep-of: 09eea7ad0b8e ("Drivers: hv: Allocate interrupt and monitor pages aligned to system page boundary")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hv/connection.c
drivers/hv/hv_common.c
include/asm-generic/mshyperv.h