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)
committerWei Liu <wei.liu@kernel.org>
Wed, 28 Jun 2023 17:51:18 +0000 (17:51 +0000)
commita6fe043880820981f6e4918240f967ea79bb063e
tree1b9054f6220bdef8f12c3f91fdb30662c9dd9494
parent6995e2de6891c724bfeb2db33d7b87775f913ad1
Drivers: hv: Change hv_free_hyperv_page() to take void * argument

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>
drivers/hv/connection.c
drivers/hv/hv_common.c
include/asm-generic/mshyperv.h