summaryrefslogtreecommitdiff
path: root/arch/s390/boot/uv.h
diff options
context:
space:
mode:
authorAlexander Gordeev <agordeev@linux.ibm.com>2022-05-26 08:57:36 +0300
committerAlexander Gordeev <agordeev@linux.ibm.com>2022-07-28 19:05:23 +0300
commit57ad19bcdefb1c65b0a90330b7b29ce658ef1a76 (patch)
tree9b0a352189585a61679366949595027dc6ad9dd8 /arch/s390/boot/uv.h
parent6f5c672d17f583b081e283927f5040f726c54598 (diff)
downloadlinux-57ad19bcdefb1c65b0a90330b7b29ce658ef1a76.tar.xz
s390/boot: cleanup adjust_to_uv_max() function
Uncouple input and output arguments by making the latter the function return value. Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot/uv.h')
-rw-r--r--arch/s390/boot/uv.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/s390/boot/uv.h b/arch/s390/boot/uv.h
index 690ce019af5a..0f3070856f8d 100644
--- a/arch/s390/boot/uv.h
+++ b/arch/s390/boot/uv.h
@@ -3,10 +3,13 @@
#define BOOT_UV_H
#if IS_ENABLED(CONFIG_KVM)
-void adjust_to_uv_max(unsigned long *vmax);
+unsigned long adjust_to_uv_max(unsigned long limit);
void sanitize_prot_virt_host(void);
#else
-static inline void adjust_to_uv_max(unsigned long *vmax) {}
+static inline unsigned long adjust_to_uv_max(unsigned long limit)
+{
+ return limit;
+}
static inline void sanitize_prot_virt_host(void) {}
#endif