Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: unisys: visorbus: Remove two passthrough postcode macros

Remove two passthrough macros that are only called from a single
location and make the resultant vmcall directly.

Signed-off-by: Bryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bryan Thompson and committed by
Greg Kroah-Hartman
af8bc2fb c6bc82f1

+2 -10
+2 -10
drivers/staging/unisys/visorbus/vmcallinterface.h
··· 92 92 #define ISSUE_IO_VMCALL(method, param, result) \ 93 93 (result = unisys_vmcall(method, (param) & 0xFFFFFFFF, \ 94 94 (param) >> 32)) 95 - #define ISSUE_IO_EXTENDED_VMCALL(method, param1, param2, param3) \ 96 - unisys_extended_vmcall(method, param1, param2, param3) 97 - 98 - /* The following uses VMCALL_POST_CODE_LOGEVENT interface but is currently 99 - * not used much 100 - */ 101 - #define ISSUE_IO_VMCALL_POSTCODE_SEVERITY(postcode, severity) \ 102 - ISSUE_IO_EXTENDED_VMCALL(VMCALL_POST_CODE_LOGEVENT, severity, \ 103 - MDS_APPOS, postcode) 104 95 105 96 /* Structures for IO VMCALLs */ 106 97 ··· 170 179 ((((u64)__LINE__) & 0xFFF) << 32) | \ 171 180 ((((u64)pc16bit1) & 0xFFFF) << 16) | \ 172 181 (((u64)pc16bit2) & 0xFFFF); \ 173 - ISSUE_IO_VMCALL_POSTCODE_SEVERITY(post_code_temp, severity); \ 182 + unisys_extended_vmcall(VMCALL_POST_CODE_LOGEVENT, severity, \ 183 + MDS_APPOS, post_code_temp); \ 174 184 } while (0) 175 185 176 186 #endif /* __IOMONINTF_H__ */