x86/alternatives: adjust alternative_vcall0()
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Dec 2021 10:36:46 +0000 (11:36 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Dec 2021 10:36:46 +0000 (11:36 +0100)
commit1f1179c619f6b82d3f193a9da7a24c359f79fb67
treed0975cec490c77741c34fe642baf69e89619e497
parent3950f2485bbc983c5c9f66ef9637395e975a2bec
x86/alternatives: adjust alternative_vcall0()

I'm puzzled about two inconsistencies with other alternative_vcall<N>()
here: There's a check missing that the supplied function pointer is
actually pointing to a function taking no args. And there's a pointless
pair of parentheses. Correct both.

Fixes: 67d01cdb5518 ("x86: infrastructure to allow converting certain indirect calls to direct ones")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Chen <Wei.Chen@arm.com>
xen/include/asm-x86/alternative.h