Skip to content

Commit af8bc2f

Browse files
Bryan Thompsongregkh
authored andcommitted
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>
1 parent c6bc82f commit af8bc2f

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

‎drivers/staging/unisys/visorbus/vmcallinterface.h‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,6 @@ enum vmcall_monitor_interface_method_tuple { /* VMCALL identification tuples */
9292
#define ISSUE_IO_VMCALL(method, param, result) \
9393
(result = unisys_vmcall(method, (param) & 0xFFFFFFFF, \
9494
(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)
10495

10596
/* Structures for IO VMCALLs */
10697

@@ -179,7 +170,8 @@ do { \
179170
((((u64)__LINE__) & 0xFFF) << 32) | \
180171
((((u64)pc16bit1) & 0xFFFF) << 16) | \
181172
(((u64)pc16bit2) & 0xFFFF); \
182-
ISSUE_IO_VMCALL_POSTCODE_SEVERITY(post_code_temp, severity); \
173+
unisys_extended_vmcall(VMCALL_POST_CODE_LOGEVENT, severity, \
174+
MDS_APPOS, post_code_temp); \
183175
} while (0)
184176

185177
#endif /* __IOMONINTF_H__ */

0 commit comments

Comments
 (0)