x86/paravirt: Simplify paravirt macros
authorJuergen Gross <jgross@suse.com>
Thu, 11 Mar 2021 14:23:15 +0000 (15:23 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 11 Mar 2021 18:52:52 +0000 (19:52 +0100)
commit0b8d366a942fd48a83dfa728e9f8a8d8b20e735f
tree2d29f8d8a6872578026fca24ea56a17215e5a2e1
parent33634e42e38be61f320183dfc264b9caba292d4e
x86/paravirt: Simplify paravirt macros

The central pvops call macros ____PVOP_CALL() and ____PVOP_VCALL() are
looking very similar now.

The main differences are using PVOP_VCALL_ARGS or PVOP_CALL_ARGS, which
are identical, and the return value handling.

So drop PVOP_VCALL_ARGS and instead of ____PVOP_VCALL() just use
(void)____PVOP_CALL(long, ...).

Note that it isn't easily possible to just redefine ____PVOP_VCALL()
to use ____PVOP_CALL() instead, as this would require further hiding of
commas in macro parameters.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210311142319.4723-11-jgross@suse.com
arch/x86/include/asm/paravirt_types.h