x86/alternatives: Fixup alternative_call_2
authorAlexey Dobriyan <adobriyan@gmail.com>
Sun, 14 Jan 2018 12:05:04 +0000 (15:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:20 +0000 (07:52 +0200)
commit25801736ca4818040b184c5547e6f5a14eaf4847
treeb684515ab90f7fe2ad7c7614bed202d59e6a6390
parent06956ca1aab3f12ba71b213f0142d5a233314806
x86/alternatives: Fixup alternative_call_2

[ Upstream commit bd6271039ee6f0c9b468148fc2d73e0584af6b4f ]

The following pattern fails to compile while the same pattern
with alternative_call() does:

if (...)
alternative_call_2(...);
else
alternative_call_2(...);

as it expands into

if (...)
{
}; <===
else
{
};

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20180114120504.GA11368@avx2
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/alternative.h