]> git.baikalelectronics.ru Git - kernel.git/commit
um: fix and optimize xor select template for CONFIG64 and timetravel mode
authorBenjamin Beichler <benjamin.beichler@uni-rostock.de>
Tue, 11 Jan 2022 20:05:06 +0000 (20:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:58:59 +0000 (20:58 +0200)
commit68b6213bd130bf9b87436088339d5740ba3995e3
treeadc9739d4557844550b82b3246d873bb1b58175f
parentfc0e2a843343554d6f3180c38c15d2a5d8694311
um: fix and optimize xor select template for CONFIG64 and timetravel mode

[ Upstream commit 3f4b2c9bc00830a8d3d28572d4c03f9f1739a309 ]

Due to dropped inclusion of asm-generic/xor.h, xor_block_8regs symbol is
missing with CONFIG64 and break compilation, as the asm/xor_64.h also did
not include it. The patch recreate the logic from arch/x86, which check
whether AVX is available and add fallbacks for 32bit and 64bit config of
um.

A very minor additional "fix" is, the return of the macro parameter
instead of NULL, as this is the original intent of the macro, but
this does not change the actual behavior.

Fixes: fefec12ac6a1 ("um: enable the use of optimized xor routines in UML")
Signed-off-by: Benjamin Beichler <benjamin.beichler@uni-rostock.de>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/include/asm/xor.h