diff options
author | Shrikanth Hegde <sshegde@linux.ibm.com> | 2024-04-12 11:20:47 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-04-29 15:51:15 +0200 |
commit | 6d4341638516bf97b9a34947e0bd95035a8230a5 (patch) | |
tree | 4aa7cce6c213b84becf0a842d78e80baa3d75c39 /arch/powerpc/include/asm/hvcall.h | |
parent | powerpc/pseries: Add pool idle time at LPAR boot (diff) | |
download | linux-6d4341638516bf97b9a34947e0bd95035a8230a5.tar.xz linux-6d4341638516bf97b9a34947e0bd95035a8230a5.zip |
powerpc/pseries: Add failure related checks for h_get_mpp and h_get_ppp
Couple of Minor fixes:
- hcall return values are long. Fix that for h_get_mpp, h_get_ppp and
parse_ppp_data
- If hcall fails, values set should be at-least zero. It shouldn't be
uninitialized values. Fix that for h_get_mpp and h_get_ppp
Signed-off-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240412092047.455483-3-sshegde@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include/asm/hvcall.h')
-rw-r--r-- | arch/powerpc/include/asm/hvcall.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h index a41e542ba94d..51172625fa3a 100644 --- a/arch/powerpc/include/asm/hvcall.h +++ b/arch/powerpc/include/asm/hvcall.h @@ -570,7 +570,7 @@ struct hvcall_mpp_data { unsigned long backing_mem; }; -int h_get_mpp(struct hvcall_mpp_data *); +long h_get_mpp(struct hvcall_mpp_data *mpp_data); struct hvcall_mpp_x_data { unsigned long coalesced_bytes; |